.fancy-title {
    font-family: 'Audiowide', cursive;
    font-weight: 400;
}

body {
    background: linear-gradient(to bottom, #ffffff, #dbe4ff);
    overflow-x: hidden;  /* prevent side-scroll */
}

h3 {
	font-weight: bold;
    font-size: 15px; /* Uniform size */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;  /* Centers content */
    flex-wrap: wrap; /* Allows wrapping on small screens */
    gap: 5px; /* Adds spacing between logo and text */
    text-align: center; /* Ensures text stays centered */
    padding: 10px 20px;
}

.header-container img {
    width: 100px; /* Adjust logo size */
    height: auto;
}

.header-container h1 {
    margin: 0;
    font-size: 30px;
    font-weight: bold;
}

#dropzone.bg-light {
  border-style: dashed;
  background: #e9f5ff !important;
}

/* 🌟 Example Buttons Section */
.example-section {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0, 40, 85, 0.1);
    border-radius: 8px;
}

/* 🌟 Example Button Styling */
.example-button {
    background: #0057b7;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px; /* Increased for visibility */
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    white-space: nowrap;
    width: auto;
}

.example-button:hover {
    background: #004494;
}

/* Increase Select Dropdown Font Size */
select {
    font-size: 12px; /* Increased from default */
    padding: 8px; /* Adds spacing inside */
}

label.form-label {
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-check.form-switch {
  display: flex;
  align-items: center;
  height: 38px; /* Same as Bootstrap input height */
}

/* 🌟 Submit & Clear Buttons */
.button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
}

.button-container input[type="submit"],
.button-container button {
    background: #004494;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 16px; /* Now consistent with example buttons */
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    flex: 1;
    margin: 5px;
}

.button-container input[type="submit"]:hover,
.button-container button:hover {
    background: #002855;
}

#clearButton {
  background-color: rgba(0, 87, 183, 0.08); /* Very light blue tint */
  color: #004494;
  border: 1px solid #cce0ff;
  font-weight: normal;
  transition: background 0.2s ease;
}

#clearButton:hover {
  background-color: rgba(0, 87, 183, 0.15); /* Slightly more blue on hover */
  color: #003377;
}

/* 🌟 Waveform and Transcription Styles */
#waveform {
    display: none;
    width: 100%;
    height: 120px;
    margin-top: 20px;
    background: #efefef;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#play-pause-button {
  background-color: #e6f0ff; /* same as Clear */
  color: #003d99;
  border: 1px solid #cfe2ff;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease-in-out;
}

#play-pause-button:hover {
  background-color: #d0e5ff;
  color: #002855;
  border-color: #b6d4fe;
}

#transcription {
  max-height: 700px; 
  overflow-y: auto;
  white-space: pre-wrap;
  background-color: #fff;
  border: none;
  padding: 10px;
  color: #0011ff;
  font-size: 14px;
}

#transcription-output-wrapper {
  width: 100%;
}

.description-section {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background-color: #f8f9fa;
  padding: 30px;
  margin-top: 40px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.description-section h3, 
.description-section h4 {
  margin-top: 30px;
  font-weight: 600;
  color: #222;
}

.description-section pre {
  background-color: #eee;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
}

/* 🌟 Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    border-top: #77aaff 3px solid;
    font-size: 14px;
}

/* Make the switch bigger and bolder */
#diarization-toggle.form-check-input,
#speakerid-toggle.form-check-input {
  width: 3rem;
  height: 1.6rem;
}

#diarization-toggle.form-check-input:checked,
#speakerid-toggle.form-check-input:checked {
  background-color: #0057b7; /* Optional: your LuxASR blue */
  border-color: #0057b7;
}

/* Move the circle/thumb to match the bigger switch */
#diarization-toggle.form-check-input:checked::before,
#speakerid-toggle.form-check-input:checked::before {
  transform: translateX(1.3rem);
}

/* 📱 Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* Stack logo and text */
        text-align: center;
    }

    .header-container h1 {
        font-size: 22px; /* Reduce size for smaller screens */
    }

    .example-section {
        justify-content: center;
        flex-wrap: wrap;
    }

  .button-container {
    flex-direction: row; /* 🔄 Keep side-by-side layout */
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .button-container input,
  .button-container button {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 200px;
  }
  
  .row > [class*='col-'] {
    margin-bottom: 4px !important;
  }

  label.form-label {
    margin-bottom: 2px;
  }

  .form-select, .form-control, .form-check-input {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .form-check.form-switch {
    margin-bottom: 4px;
  }
}

.status-info {
  font-size: 0.9rem;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.load-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #444;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

/* Status colors */
.load-light.green { background-color: #28a745; }     /* OK */
.load-light.yellow { background-color: #ffc107; }    /* Warning */
.load-light.red { background-color: #dc3545; }        /* heavy load */

.form-select {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  transition: all 0.2s ease-in-out;
}

.form-select:focus {
  box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.3);
  border-color: #0057b7;
}

/* Colored Text Output Styles */
.colored-text {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0px;   /* Reduce top padding */
    padding-bottom: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.speaker-segment {
    margin-bottom: 10px;
}

.speaker {
    font-weight: bold;
    color: #666;
    margin-right: 10px;
}

.word {
    display: inline-block;
    padding: 0 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.word:hover {
    opacity: 0.8;
}

.low-confidence {
    background-color: #ffcdd2;
    color: #c62828;
}

.medium-confidence {
    background-color: #fff9c4;
    color: #bfa100;
}

.default-text {
    color: #888;
    background: none;
}

/* Legend for confidence levels */
.confidence-legend {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-low {
    background-color: #ffcdd2;
}

.legend-medium {
    background-color: #fff9c4;
}

.legend-default {
    background-color: #888;
}

.text-row {
    color: #888;
    font-size: 1.1em;
    font-weight: normal;   /* Ensure normal weight */
    margin-bottom: 0px;
    padding-top: 0px;      /* Remove extra space above */
}

.speaker-break {
    height: 10px;
}

.sentence-group {
    display: inline;
    transition: background 0.2s;
    cursor: pointer;
}

.sentence-group.playing {
    background-color: #e3f0ff !important;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.15);
    border-radius: 4px;
    transition: background 0.2s, box-shadow 0.2s;
}

.word.playing-word {
  background-color: #b8e1ff !important;
  color: #003366 !important;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.10);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

