body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: #1a253c;
    font-weight: 600;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dbe1e6;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #a0c7e4;
    cursor: not-allowed;
}

#status-message {
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress {
    width: 100%;
    height: 10px;
    background-color: #007bff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

audio {
    width: 100%;
    margin-bottom: 1.5rem;
}

.transcript-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.utterance {
    display: flex;
    margin-bottom: 1rem;
}

.utterance.customer {
    justify-content: flex-start;
}

.utterance.agent {
    justify-content: flex-end;
}

.bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.bubble.customer {
    background-color: #e9ecef;
}

.bubble.agent {
    background-color: #d1e7ff;
}

.word.highlight {
    background-color: #ffc107;
    border-radius: 3px;
}

/* --- New Styles for Advanced Options --- */
.advanced-options {
    margin-top: 1.5rem;   
    margin-bottom: 1.5rem; 
    padding: 1rem;
    border: 1px solid #dbe1e6;
    border-radius: 8px;
    background-color: #fafbfc;
}

.advanced-options summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
    margin-bottom: 0.5rem;
    color: #000000;
}

.advanced-options .form-group {
    margin-top: 1rem;
    margin-bottom: 0;
}

select, input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dbe1e6;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}


/* --- Token Field Formatting --- */
.token-input-container {
    display: flex;
    gap: 0.5rem;
}

#update-token-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background-color: #6c757d;
    white-space: nowrap;
}

#update-token-btn:hover {
    background-color: #5a6268;
}

/* Gray out the input when disabled */
input:disabled {
    background-color: #e9ecef;
    color: #495057;
    cursor: not-allowed;
}