:root {
    --hawx-primary-color1: #637675; /* Dark Teal/Grey */
    --hawx-primary-color1-hover: #546463;
    --hawx-primary-color1-light: #74868560; /* Semi-transparent version for overlays */
    --hawx-primary-color2: #EAB749; /* Gold */
    --hawx-primary-color2-hover: #DFAA3A;
    --hawx-primary-color2-active: #C99A2E; /* Darker gold for active/pressed state */
    --san-serif-font: 'Roboto', sans-serif;
    --serif-font: 'Roboto Slab', serif;
    /* Background colors */
    --bg-light: #f0f2f5; 
    --white: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    
    /* Status Colors */
    --success: #57c95a;
    --success-light: #c6efc7; /* Lighter green for dark backgrounds */
    --error: #e96666;
    --error-light: #fad2d2; /* Lighter red for dark backgrounds */

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.5;
}

.header {
    background: linear-gradient(135deg, #45585b, #637675 65%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.25);
    color: var(--bg-light);
}

#hawx-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

#hawx-logo {
    height: 54px;
}

.header-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    margin-left: 8px;
}

.header-title h1 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #f4f7fa;
    margin: 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    margin: 0;
    margin-left: 10px;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .header {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
    }

    .header-body {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--hawx-primary-color1);
    color: white;
}

.header .btn-primary {
    border: 1px solid var(--bg-light);
    box-sizing: border-box;
}

.btn-primary:hover {
    background: var(--hawx-primary-color1-hover);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    color: var(--gray-500);
}

.btn-icon:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: var(--radius);
    width: fit-content;
    align-items: center;
}

.tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab:hover {
    color: var(--gray-900);
}

.tab.active {
    background: white;
    color: var(--gray-900);
    box-shadow: var(--shadow);
}

.questions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.question-card:hover {
    box-shadow: var(--shadow-lg);
}

.question-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 16px;
}

.question-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.question-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 12px;
    margin-left: 12px;
}

.question-meta span {
    margin-right: 1rem;
}

.ai-limit-badge {
    margin: 0 1.25rem 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #ede9fe;
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: #7c3aed;
    width: fit-content;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success);
}

.status-active::before {
    background: #10b981;
}

.status-paused {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-paused::before {
    background: #f59e0b;
}

.status-archived {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.status-archived::before {
    background: var(--gray-400);
}

.answer-distribution {
    padding: 1rem 1.25rem;
}

.answer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.answer-row:last-child {
    margin-bottom: 0;
}

.answer-label {
    width: 180px;
    font-size: 0.8125rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    justify-content: space-between;
}

.answer-source {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    background: var(--gray-100);
    color: var(--gray-500);
}

.answer-source.ai {
    background: #ede9fe;
    color: #7c3aed;
}

.answer-bar-container {
    flex: 1;
    height: 20px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.answer-bar {
    height: 100%;
    background: var(--hawx-primary-color1);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.answer-count {
    width: 80px;
    text-align: right;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.answer-percentage {
    font-weight: 600;
    color: var(--gray-800);
}

.ai-suggestions-alert {
    margin: 0 1.25rem 1rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-suggestions-text {
    font-size: 0.8125rem;
    color: #92400e;
}

.ai-suggestions-text strong {
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--hawx-primary-color1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

/* ============================================================================
   AI QUESTION VALIDATION & IMPROVEMENT
   ============================================================================ */

.question-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.question-input-row .form-input {
    flex: 1;
}

.question-ai-buttons {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.btn-ai-validate,
.btn-ai-improve {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-ai-validate {
    background: white;
    color: var(--hawx-primary-color1);
    border-color: var(--hawx-primary-color1);
}

.btn-ai-validate:hover {
    background: var(--hawx-primary-color1);
    color: white;
}

.btn-ai-improve {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.btn-ai-improve:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-ai-validate.loading,
.btn-ai-improve.loading,
.btn-ai-suggest-answers.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-ai-validate.loading .btn-icon-text,
.btn-ai-improve.loading .btn-icon-text,
.btn-ai-suggest-answers.loading .btn-icon-text {
    display: none;
}

.btn-ai-validate.loading::after,
.btn-ai-improve.loading::after,
.btn-ai-suggest-answers.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Form Label Row - for label + button alignment */
.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

/* Suggest Answers Button */
.btn-ai-suggest-answers {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-ai-suggest-answers:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

/* Suggested answer item with checkbox */
.suggested-answer-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.15s ease;
}

.suggested-answer-checkbox:last-child {
    border-bottom: none;
}

.suggested-answer-checkbox:hover {
    background: var(--gray-50);
}

.suggested-answer-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--hawx-primary-color1);
    cursor: pointer;
}

.suggested-answer-checkbox .answer-content {
    flex: 1;
}

.suggested-answer-checkbox .answer-name {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 0.875rem;
}

.suggested-answer-checkbox .answer-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.125rem;
}

/* Apply Selected Answers Button */
.btn-apply-answers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.75rem;
}

.btn-apply-answers:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-apply-answers:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Select All / Deselect All link */
.suggestion-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.suggestion-actions .select-toggle {
    font-size: 0.75rem;
    color: var(--hawx-primary-color1);
    cursor: pointer;
    text-decoration: underline;
}

.suggestion-actions .select-toggle:hover {
    color: var(--hawx-primary-color1-hover);
}

.suggestion-actions .selected-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* AI Feedback Panel */
.ai-feedback-panel {
    margin-top: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.ai-feedback-panel.hidden {
    display: none;
}

.ai-feedback-panel.validation-success {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.ai-feedback-panel.validation-warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.ai-feedback-panel.validation-error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.ai-feedback-panel.improvement {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.ai-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-feedback-title {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close-feedback {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.btn-close-feedback:hover {
    color: var(--gray-700);
}

.ai-feedback-body {
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.ai-feedback-body h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ai-feedback-body ul {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
}

.ai-feedback-body li {
    margin-bottom: 0.375rem;
    color: var(--gray-600);
}

.ai-feedback-body .feedback-section {
    margin-bottom: 1rem;
}

.ai-feedback-body .feedback-section:last-child {
    margin-bottom: 0;
}

.ai-feedback-score {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.ai-feedback-score.score-high {
    background: #d1fae5;
    color: #065f46;
}

.ai-feedback-score.score-medium {
    background: #fef3c7;
    color: #92400e;
}

.ai-feedback-score.score-low {
    background: #fee2e2;
    color: #991b1b;
}

/* Improved Question Preview */
.improved-question-preview {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.improved-question-preview .preview-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.375rem;
}

.improved-question-preview .preview-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.improved-question-preview .preview-description {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Suggested Answers */
.suggested-answers-list {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.suggested-answer-item {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
}

.suggested-answer-item:last-child {
    border-bottom: none;
}

.suggested-answer-item .answer-name {
    font-weight: 500;
    color: var(--gray-800);
}

.suggested-answer-item .answer-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.125rem;
}

/* Apply Improvement Button */
.btn-apply-improvement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apply-improvement:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Split Questions Suggestion */
.split-questions-container {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.split-questions-container h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.split-question-item {
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
    border: 1px solid #fcd34d;
}

.split-question-item:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .question-input-row {
        flex-direction: column;
    }
    
    .question-ai-buttons {
        justify-content: flex-end;
    }
}

/* Flash highlight animation for applied improvements */
.flash-highlight {
    animation: flashHighlight 1s ease;
}

@keyframes flashHighlight {
    0% {
        background-color: rgba(102, 126, 234, 0.3);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
    100% {
        background-color: white;
        box-shadow: none;
    }
}

.answers-list {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.answer-item:last-child {
    border-bottom: none;
}

.answer-item input.answer-text {
    flex: 1;
    border: none;
    font-size: 0.875rem;
    outline: none;
    padding: 0.25rem 0;
}

.answer-item input.answer-desc {
    background: var(--gray-50);
}

.answer-item input.answer-desc:focus {
    background: white;
    border-style: solid;
    border-color: var(--hawx-primary-color1);
}

.answer-item .btn-icon {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.answer-item:hover .btn-icon {
    opacity: 1;
}

.add-answer-btn {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    color: var(--hawx-primary-color1);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--gray-50);
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.add-answer-btn:hover {
    background: var(--gray-100);
}

.filters-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

#question-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.date-filter-presets {
    display: flex;
    gap: 0.5rem;
}

.date-filter-picker, .date-filter-presets {
    margin: 4px 0;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.toggle.active {
    background: var(--hawx-primary-color1);
}

.toggle.active::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.loading {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--hawx-primary-color1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* Select2 customization to match our design */
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    min-height: 42px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--hawx-primary-color1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--hawx-primary-color1);
    border: none;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fee2e2;
    background: transparent;
}

.select2-dropdown {
    border-color: var(--gray-300);
    border-radius: var(--radius);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--hawx-primary-color1);
}

/* Disabled Select2 styling */
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.7;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
    background-color: var(--gray-400);
}

/* Office filter group styling */
#office-filter-group .form-label {
    display: flex;
    align-items: baseline;
}

#office-disabled-hint {
    color: var(--gray-400);
    font-size: 0.75rem;
}


/* ============================================================================
   TREND ANALYSIS STYLES
   Add these styles to styles.css
   ============================================================================ */

/* Trend Analysis Section */
.trend-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.trend-chart-container {
    padding: 1.5rem;
    min-height: 320px;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.chart-wrapper {
    width: 75%;
    height: 320px;
    position: relative;
}

#trend-chart {
    width: 100% !important;
    height: 100% !important;
}

.legend-container {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Custom Legend */
.legend-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.legend-header-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.legend-sort-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--gray-600);
    user-select: none;
}

.legend-sort-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--hawx-primary-color1);
}

.legend-sort-label {
    cursor: pointer;
}

.legend-sort-toggle:hover .legend-sort-label {
    color: var(--gray-800);
}

.trend-custom-legend {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0 0.5rem;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 275px;

}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    width: 100%;
}

.legend-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.legend-item-hidden {
    opacity: 0.5;
    background: var(--gray-50);
}

.legend-item-hidden .legend-label {
    text-decoration: line-through;
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-label {
    font-weight: 500;
    color: var(--gray-700);
    flex-shrink: 0;
    max-width: 60%;
}

.legend-value {
    font-weight: 600;
    color: var(--hawx-primary-color1);
    margin-left: 0.25rem;
    min-width: 60px;
    text-align: right;
    font-size: 0.8125rem;
}

.legend-item-hidden .legend-value {
    color: var(--gray-400);
}


/* Chart Type and View Mode Toggles */
.chart-type-toggle,
.chart-view-toggle {
    display: inline-flex;
    gap: 0.25rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: var(--radius);
}

.chart-type-toggle .btn,
.chart-view-toggle .btn {
    background: transparent;
    color: var(--gray-600);
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.chart-type-toggle .btn:hover,
.chart-view-toggle .btn:hover {
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.5);
}

.chart-type-toggle .btn.toggle-active,
.chart-view-toggle .btn.toggle-active {
    background: white;
    color: var(--gray-900);
    box-shadow: var(--shadow);
    font-weight: 600;
}

/* Trend Info Footer */
.trend-info {
    width: 100%;
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.trend-info .form-hint {
    text-align: center;
    margin: 0;
    color: var(--gray-600);
    font-size: 0.75rem;
}

.trend-info .form-hint span {
    font-weight: 500;
    color: var(--gray-700);
}

/* Loading State for Trends */
#trend-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

#trend-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--hawx-primary-color1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#trend-loading p {
    margin-top: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Empty State in Trend Container */
.trend-chart-container .empty-state {
    padding: 2rem;
    text-align: center;
}

.trend-chart-container .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.trend-chart-container .empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.trend-chart-container .empty-state p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .trend-section .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .trend-section .question-header > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }
    
    .chart-type-toggle,
    .chart-view-toggle {
        flex-wrap: wrap;
    }
    
    .trend-chart-container {
        padding: 1rem;
        min-height: 280px;
    }
    
    #trend-chart {
        max-height: 250px;
        height: 250px !important;
    }
    
    .legend-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .legend-sort-toggle {
        font-size: 0.75rem;
    }
    
    .trend-custom-legend {
        gap: 0.5rem;
        padding: 0.75rem 0 0.25rem;
    }
    
    .legend-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.8125rem;
    }
    
    .legend-value {
        min-width: 50px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .chart-type-toggle .btn,
    .chart-view-toggle .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .trend-info .form-hint {
        font-size: 0.7rem;
    }
}

/* Animation for loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ensure header controls don't overflow */
.trend-section .question-header > div:last-child {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Add spacing between toggle groups */
.chart-type-toggle + .chart-view-toggle {
    margin-left: 0.25rem;
}

/* Hover effects for refresh button */
.trend-section .btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* Canvas sizing is handled by .chart-wrapper */


/* ============================================================================
   BI CALLS PANEL - Audio playback for BI question categories
   ============================================================================ */

.bi-calls-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bi-calls-panel.hidden {
    display: none;
}

.bi-calls-panel-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.bi-calls-panel-content {
    position: relative;
    width: 600px;
    max-width: 90vw;
    height: 100%;
    background: var(--white, #ffffff);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 2;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.bi-calls-panel-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.bi-calls-panel-title h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    line-height: 1.3;
}

.bi-calls-count {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
}

.bi-calls-panel-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bi-calls-panel-close:hover {
    background: var(--gray-100, #f3f4f6);
    color: var(--text-primary, #1f2937);
}

.bi-calls-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px 24px;
}

.bi-calls-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Call Item */
.bi-call-item {
    background: var(--white, #ffffff);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.bi-call-item:hover {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.bi-call-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bi-call-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bi-call-id {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    font-size: 14px;
}

.bi-call-date {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
}

.bi-call-confidence {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--success-light, #d1fae5);
    color: var(--success, #059669);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Audio Button */
.bi-call-audio-btn {
    background: var(--primary, #3b82f6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bi-call-audio-btn:hover {
    background: var(--primary-dark, #2563eb);
    transform: scale(1.05);
}

.bi-call-audio-btn.loading {
    opacity: 0.6;
    cursor: wait;
}

.bi-call-audio-btn.playing {
    background: var(--success, #059669);
}

.bi-call-audio-btn.playing svg {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Call Details */
.bi-call-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bi-call-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.bi-call-agent {
    font-weight: 500;
    color: var(--text-primary, #1f2937);
}

.bi-call-campaign,
.bi-call-duration,
.bi-call-disposition {
    color: var(--text-secondary, #6b7280);
}

.bi-call-campaign::before {
    content: "•";
    margin-right: 12px;
    color: var(--gray-300, #d1d5db);
}

.bi-call-duration::before,
.bi-call-disposition::before {
    content: "•";
    margin-right: 12px;
    color: var(--gray-300, #d1d5db);
}

.bi-call-summary {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary, #6b7280);
}

/* Load More Button */
.bi-calls-load-more-container {
    margin-top: 16px;
    text-align: center;
}

.bi-calls-load-more-container.hidden {
    display: none;
}

#bi-calls-load-more {
    padding: 10px 24px;
    background: var(--gray-100, #f3f4f6);
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 6px;
    color: var(--text-primary, #1f2937);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

#bi-calls-load-more:hover {
    background: var(--gray-200, #e5e7eb);
}

/* Empty State */
.bi-calls-list .empty-state {
    padding: 48px 24px;
    text-align: center;
}

.bi-calls-list .empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.bi-calls-list .empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.bi-calls-list .empty-state p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
}

/* Loading State */
.bi-calls-list .loading-container {
    padding: 48px 24px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bi-calls-panel-content {
        width: 100%;
        max-width: 100%;
    }
    
    .bi-calls-panel-header {
        padding: 16px;
    }
    
    .bi-calls-panel-body {
        padding: 0 16px 16px 16px;
    }
    
    .bi-call-item {
        padding: 12px;
    }
    
    .bi-call-meta {
        font-size: 12px;
    }
}

/* Integration with existing audio player */
/* Ensure audio player appears above the BI calls panel overlay */
#audio-player-container {
    z-index: 10001;
}

/* Clickable category hint - add this class to category elements that should be clickable */
.bi-category-clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.bi-category-clickable:hover {
    transform: translateX(2px);
    opacity: 0.8;
}


/* ============================================================================
   ADDITIONAL CSS FOR CLICKABLE ANSWER ROWS
   Add this to your existing styles.css or create a new file
   ============================================================================ */

/* Clickable answer row styles */
.answer-row.bi-category-clickable {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 -0.5rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.answer-row.bi-category-clickable:hover {
    background-color: #f9fafb !important;
    transform: translateX(2px);
}

.answer-row.bi-category-clickable.active {
    background-color: #eff6ff !important;
    border-left: 3px solid var(--primary, #3b82f6);
    padding-left: calc(0.5rem - 3px) !important;
}

/* Make sure action buttons don't inherit the click behavior */
.answer-row .answer-actions {
    position: relative;
    z-index: 2;
}

/* Add a subtle indicator that the row is clickable */
.answer-row.bi-category-clickable::before {
    content: '▶';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: opacity 0.2s, left 0.2s;
    color: var(--primary, #3b82f6);
    font-size: 0.75rem;
}

.answer-row.bi-category-clickable:hover::before {
    opacity: 0.6;
    left: -0.75rem;
}

.answer-row.bi-category-clickable.active::before {
    opacity: 1;
}

/* Ensure the answer row has relative positioning for the ::before indicator */
.answer-row {
    position: relative;
}

/* ============================================================================
   AUDIO PLAYER - Fixed Bar at Bottom of Screen
   Add this to your styles.css or include as a separate stylesheet
   ============================================================================ */

.audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(to right, #1e293b 0%, #334155 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.audio-player-container:not(.hidden) {
    transform: translateY(0);
}

.audio-player-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

/* Close Button */
.audio-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.audio-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Audio Info */
.audio-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
    flex-shrink: 0;
}

.audio-call-id {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.audio-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.audio-control-btn {
    background: var(--primary, #3b82f6);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.audio-control-btn:hover {
    background: var(--primary-hover, #2563eb);
    transform: scale(1.05);
}

.audio-control-btn:active {
    transform: scale(0.95);
}

.audio-control-btn .play-icon,
.audio-control-btn .pause-icon {
    transition: opacity 0.2s;
}

/* Progress Container */
.audio-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.audio-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.audio-progress-bar:hover {
    height: 8px;
    margin-top: -1px;
}

.audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #3b82f6) 0%, #60a5fa 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

.audio-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.audio-progress-bar:hover .audio-progress-fill::after {
    opacity: 1;
}

/* Time Display */
.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

.audio-current-time,
.audio-duration {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .audio-player-content {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .audio-info {
        min-width: 100px;
    }
    
    .audio-call-id {
        font-size: 13px;
    }
    
    .audio-status {
        font-size: 11px;
    }
    
    .audio-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .audio-close-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .audio-player-content {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .audio-info {
        width: 100%;
        min-width: 0;
        order: -1;
    }
    
    .audio-progress-container {
        width: 100%;
        order: 1;
    }
    
    .audio-control-btn {
        order: 0;
    }
    
    .audio-close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* Animation for showing/hiding */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

/* Loading State */
.audio-player-container.loading .audio-progress-fill {
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.3) 0%,
        rgba(59, 130, 246, 0.6) 50%,
        rgba(59, 130, 246, 0.3) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Playing State - Pulse Animation */
.audio-player-container.playing .audio-control-btn {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulse-audio 2s infinite;
}

@keyframes pulse-audio {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Ensure BI calls panel doesn't overlap with audio player */
.bi-calls-panel-content {
    padding-bottom: 100px; /* Space for audio player */
}

/* Adjust body padding when audio player is visible */
body.audio-player-visible {
    padding-bottom: 80px;
}