body {
    background: linear-gradient(to bottom, #000000, #000033);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000000;
    padding: 20px 0;
    z-index: 1000;
}

/* Update existing logo class */
.logo {
    max-width: 300px;
    height: auto;
}

/* Update existing main-title class */
.main-title {
    color: white;
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.translator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Overall container width */
    margin: 250px auto 0; /* Keep top margin for header space */
    padding: 0 20px; /* Add padding for smaller screens */
}

.language-selectors {
    color: white;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative; /* Add this */
    z-index: 1; /* Add this */
}
.language-select {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-size: 18px;
    border-radius: 25px;
    width: 200px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.language-select option {
    background-color: #000033;
    color: white;
    padding: 10px;
}

.translation-input,
.translation-output,
.romanized-output {
    width: 100%;
    box-sizing: border-box; /* Ensure padding is included in width */
    border-radius: 15px;
    padding: 20px;
    margin: 0; /* Remove any default margins */
}

.language-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.language-label {
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Add these new styles */
.text-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Increased from 600px */
    margin: 30px auto; /* Changed from margin-top only to center horizontally */
}


.translation-input {
    width: 100%;
    height: 150px;
    background: transparent;
    border: 2px solid white;
    border-radius: 15px;
    padding: 20px;
    color: white;
    font-size: 18px;
    resize: none;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.translation-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.translation-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.translate-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.translate-button:hover {
    background: white;
    color: #000033;
}

/* Add these new styles */
.translation-output-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Increased from 600px */
    margin: 30px auto; /* Changed to center horizontally */
}

.output-label {
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.translation-output {
    width: 100%;
    min-height: 100px;
    background: transparent;
    border: 2px solid white;
    border-radius: 15px;
    padding: 20px;
    color: white;
    font-size: 18px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.speak-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.speak-button:hover {
    background: white;
    color: #000033;
}

/* Add these new styles */
.input-toggle-container {
    margin-top: 20px;
}

.toggle-button {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.toggle-button:hover {
    background: #007bff;
    color: white;
}

.audio-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.record-button {
    background-color: #ff4444;
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
    position: relative;
}

.record-button::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
}


.record-button:hover {
    background-color: #ff2222;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.record-button.recording {
    animation: pulse 1.5s infinite;
}
.record-button.recording::before {
    animation: blink 1s infinite;
}

.recording-status {
    color: white;
    font-size: 14px;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

/* Tab Styles */
.tabs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-button.active {
    background: white;
    color: #000033;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Table Styles */
.table-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    overflow-x: auto;
}

.translations-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: white;
}

.translations-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.translations-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.translations-table tbody tr {
    transition: background-color 0.3s ease;
}

.translations-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}


/* Certainty cell */
.certainty-value {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.certainty-high {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.certainty-medium {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.certainty-low {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Verification Toggle */
.verify-toggle {
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.verify-toggle.verified {
    background: #4CAF50;
}

.verify-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.verify-toggle.verified::after {
    transform: translateX(20px);
}

/* Controls */
.history-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: white;
    color: #000033;
}

.refresh-icon {
    font-size: 16px;
}

.language-cell {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* Text columns with ellipsis */
.text-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Add these styles to your existing CSS */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: linear-gradient(to bottom, #000033, #000066);
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.translation-detail {
    margin-bottom: 20px;
}

.translation-detail h3 {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.translation-detail p {
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    white-space: pre-wrap;
}

.translation-edit {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-family: inherit;
    resize: vertical;
}

.verification-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

/* Update table styles to show truncated text */
.translations-table td {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.translations-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 2000;
}

.status-bar.active {
    transform: translateY(0);
}

.transcription-box {
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
}

.transcription-label {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.transcription-text {
    width: 100%;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 15px;
    padding: 20px;
    color: white;
    font-size: 18px;
    font-family: inherit;
    margin-bottom: 10px;
}

.romanized-text {
    width: 100%;
    min-height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-style: italic;
}
.transcription-box {
   width: 100%;
   max-width: 600px;
   margin: 20px auto;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.transcription-text, .romanized-text {
   width: 100%;
   box-sizing: border-box;  /* Add this to include padding in width calculation */
}

/* Login Styles - Add to your existing CSS */
.login-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 200px; /* Account for fixed logo */
}

.login-container {
    background: transparent;
    border: 2px solid white;
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 0 20px;
    position: relative;
}

.login-title {
    color: white;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: white;
    font-size: 16px;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid white;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 10px;
}

.login-button:hover {
    background: white;
    color: #000033;
}

.login-error {
    color: #ff4444;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    background: rgba(255, 68, 68, 0.1);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logout-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.logout-button:hover {
    background: white;
    color: #000033;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.navigation-header {
    position: fixed;
    top: 150px; /* Adjust based on your logo container height */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-button.active {
    background: white;
    color: #000033;
}


.content-section {
    display: none;
    padding-top: 220px; /* Adjust based on your header heights */
}

.content-section.active {
    display: block;
}

.history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.history-header h2 {
    color: white;
    font-size: 24px;
    margin: 0;
}

.history-table-container {
    background: rgba(0, 0, 33, 0.4);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add to your existing CSS */

.icon-button {
    background: transparent;
    border: 1.5px solid white;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 12px;
    bottom: 12px;
}

.icon-button:hover {
    background: white;
    color: #000033;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.icon-button:active {
    transform: scale(0.95);
}

.speaker-icon {
    width: 16px;
    height: 16px;
}

/* Update translation output container for better alignment */
.translation-output-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
    position: relative;
}

/* Position the button */
#processAudioButton {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

/* Add to your existing CSS */

.translation-box {
    width: 100%;
    position: relative;
}


.translation-output {
    width: 100%;
    min-height: 100px;
    background: transparent;
    border: 2px solid white;
    border-radius: 15px;
    padding: 20px;
    padding-right: 60px; /* Space for the speaker icon */
    color: white;
    font-size: 18px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    padding-bottom: 45px;
}

.romanized-container {
    width: 100%;
    max-width: 800px; /* Match other containers */
    margin: 10px auto; /* Center horizontally */
}


.romanized-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.romanized-output {
    width: 100%;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-style: italic;
}



/* Hide romanized container when empty */
.romanized-container:empty {
    display: none;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px 0;
}

.page-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-button:hover:not([disabled]) {
    background: white;
    color: #000033;
}

.page-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: white;
    font-size: 14px;
}

/* Add to your existing CSS */
.form-toggle {
    color: white;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-toggle:hover {
    color: #007bff;
}

.register-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.forgot-password-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.success-message {
    color: #4CAF50;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    background: rgba(76, 175, 80, 0.1);
}

.reset-code-container,
.new-password-container {
    opacity: 0;
    height: 0;
    transition: opacity 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.reset-code-container.active,
.new-password-container.active {
    opacity: 1;
    height: auto;
}

.form-toggle {
    margin-top: 20px;
    text-align: center;
}

#backToLoginText {
    cursor: pointer;
    color: white;
    text-decoration: underline;
}

#backToLoginText:hover {
    color: #007bff;
}

#forgotPasswordForm .login-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

#forgotPasswordForm .login-button:hover {
    background: white;
    color: #000033;
}

/* Space between buttons when both are visible */
#forgotPasswordForm .login-button + .login-button {
    margin-top: 15px;
}

.realtime-link-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}

.realtime-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.realtime-link:hover {
    background: #007bff;
    color: white;
}

.realtime-icon {
    width: 20px;
    height: 20px;
}

/* Add at the end of your existing CSS */
.realtime-content {
    max-width: 1200px;
    margin: 220px auto 0;
    padding: 20px;
}

.realtime-controls {
    margin-bottom: 30px;
}

.session-setup {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 33, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.transcription-containers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.transcription-box {
    background: rgba(0, 0, 33, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.transcription-box.active {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.transcription-box h2 {
    color: white;
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    display: none;
}

.active .active-indicator {
    display: inline-block;
}

.message-block {
    margin: 16px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #007bff;
    border-radius: 4px;
    color: white;
}

.message-block p {
    margin: 8px 0;
}

.translation {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.status-message {
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.audio-button {
    background: transparent;
    border: 1.5px solid white;
    color: white;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-button:hover {
    background: white;
    color: #000033;
}

.switch-active-button {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: auto;
}

.switch-active-button:hover {
    background: #007bff;
    color: white;
}

.switch-active-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

#processing-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  z-index: 1000;
}

.animate-spin {
  animation: spin 1s linear infinite;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* Timeout Select Styles */
.timeout-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timeout-label {
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

select#timeout {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-size: 18px;
    border-radius: 25px;
    width: 200px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
    transition: all 0.3s ease;
}

select#timeout:hover {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

select#timeout option {
    background-color: #000033;
    color: white;
    padding: 10px;
}

/* PII Protection Toggle Styles */
.pii-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pii-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

.pii-label input[type="checkbox"] {
    display: none;
}

.slider {
    position: relative;
    width: 60px;
    height: 34px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 34px;
    transition: all 0.3s ease;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

input:checked + .slider {
    background-color: #007bff;
    border-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider:hover {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.microphone-select-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 300px;
}

.mic-label {
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.microphone-select {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-size: 16px;
    border-radius: 25px;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
    transition: all 0.3s ease;
}

.microphone-select:hover {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.microphone-select:focus {
    outline: none;
    border-color: #007bff;
}

.microphone-select option {
    background-color: #000033;
    color: white;
    padding: 10px;
}

/* Space between buttons when both are visible */
#forgotPasswordForm .login-button + .login-button {
    margin-top: 15px;
}

/* Message Box Styles */
.message-box-container {
    margin-top: 30px;
    background: rgba(0, 0, 33, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.message-box-title {
    color: white;
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.message-box {
    max-height: 200px;
    overflow-y: auto;
    color: white;
}

.message-box-item {
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
}

.message-box-item.info {
    background: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff;
}

.message-box-item.error {
    background: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
}

.message-box-item.success {
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

/* Controls row container */
.controls-row {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
}

/* Shared styles for microphone and speaker containers */
.microphone-select-container,
.speaker-select-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 300px;
}

/* Label styles - reusing mic-label for consistency */
.mic-label {
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Select dropdown styles - reusing microphone-select for consistency */
.microphone-select {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    font-size: 16px;
    border-radius: 25px;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
    transition: all 0.3s ease;
}

/* Hover state for select dropdowns */
.microphone-select:hover {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* Focus state for select dropdowns */
.microphone-select:focus {
    outline: none;
    border-color: #007bff;
}

/* Dropdown options styling */
.microphone-select option {
    background-color: #000033;
    color: white;
    padding: 10px;
}

.action-button.paused {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
}

.action-button.paused:hover {
    background: #ff2222;
    border-color: #ff2222;
}