/* Custom Color Scheme */
:root {
    --primary-dark: #000e2d;
    --primary-medium: #274198;
    --primary-bright: #005dad;
    --primary-light: #10b8dd;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

/* Body and Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

/* Custom Background Classes */
.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-primary-medium {
    background-color: var(--primary-medium) !important;
}

.bg-primary-bright {
    background-color: var(--primary-bright) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

/* Custom Button Classes */
.btn-primary-dark {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-primary-dark:hover {
    background-color: var(--primary-medium);
    border-color: var(--primary-medium);
    color: var(--white);
}

.btn-primary-medium {
    background-color: var(--primary-medium);
    border-color: var(--primary-medium);
    color: var(--white);
}

.btn-primary-medium:hover {
    background-color: var(--primary-bright);
    border-color: var(--primary-bright);
    color: var(--white);
}

.btn-primary-bright {
    background-color: var(--primary-bright);
    border-color: var(--primary-bright);
    color: var(--white);
}

.btn-primary-bright:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.btn-primary-light {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.btn-primary-light:hover {
    background-color: var(--primary-bright);
    border-color: var(--primary-bright);
    color: var(--white);
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary-light);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-light) !important;
}

.navbar-nav .dropdown-menu {
    background-color: var(--white);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar-nav .dropdown-item {
    color: var(--dark-gray);
    font-weight: 500;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
    padding-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-bright) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card-header {
    background-color: var(--primary-medium);
    color: var(--white);
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Form Styles */
.form-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin: 2rem 0;
}

.form-label {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(16, 184, 221, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-valid {
    border-color: var(--success);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background-color: #cce7f0;
    color: #0c5460;
    border-left: 4px solid var(--info);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

/* Progress Bar */
.progress {
    height: 20px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-bright), var(--primary-light));
    transition: width 0.6s ease;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
}

.badge-primary {
    background-color: var(--primary-bright);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--medium-gray);
    color: var(--white);
}

/* Dashboard Stats */
.stats-card {
    background: linear-gradient(135deg, var(--primary-bright), var(--primary-light));
    color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* File Upload Styles */
.file-upload-zone {
    border: 3px dashed var(--primary-light);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background-color: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-zone:hover {
    border-color: var(--primary-bright);
    background-color: #f8f9fa;
}

.file-upload-zone.dragover {
    border-color: var(--primary-bright);
    background-color: rgba(16, 184, 221, 0.1);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Audio Player Styles */
.audio-player {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-play-btn {
    background-color: var(--primary-bright);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-play-btn:hover {
    background-color: var(--primary-light);
    transform: scale(1.05);
}

/* Speaker Assignment */
.speaker-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-light);
}

.speaker-id {
    color: var(--primary-bright);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.speaker-text {
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 3px solid var(--primary-light);
}

.footer h5, .footer h6 {
    color: var(--white);
    font-weight: 600;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light);
}

.social-links a {
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .file-upload-zone {
        padding: 2rem;
    }
    
    .file-upload-icon {
        font-size: 2.5rem;
    }
}

/* Loading Animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-bright);
}

/* Upload Interface Styles */
.upload-drop-zone {
    position: relative;
    border: 3px dashed var(--primary-light);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 184, 221, 0.05) 0%, rgba(0, 93, 173, 0.05) 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-drop-zone:hover {
    border-color: var(--primary-bright);
    background: linear-gradient(135deg, rgba(16, 184, 221, 0.1) 0%, rgba(0, 93, 173, 0.1) 100%);
    transform: translateY(-2px);
}

.upload-drop-zone.drag-over {
    border-color: var(--primary-bright);
    background: linear-gradient(135deg, rgba(16, 184, 221, 0.15) 0%, rgba(0, 93, 173, 0.15) 100%);
    transform: scale(1.02);
}

.upload-drop-content {
    position: relative;
    z-index: 2;
}

.upload-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 93, 173, 0.9);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 12px;
    z-index: 3;
}

.upload-drop-zone.drag-over .upload-drop-overlay {
    display: flex;
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-bright);
    margin-bottom: 20px;
    animation: uploadPulse 2s infinite;
}

@keyframes uploadPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.file-info-section {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-bright);
}

.file-detail {
    padding: 8px 0;
    font-size: 0.95rem;
}

.file-detail i {
    width: 20px;
    text-align: center;
}

.upload-progress-section {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-light);
}

.progress-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary-bright);
}

.progress {
    height: 12px;
    background-color: rgba(0, 93, 173, 0.1);
    border-radius: 6px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-bright) 0%, var(--primary-light) 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.upload-actions button {
    min-width: 140px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.upload-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 93, 173, 0.3);
}

/* File Requirements Styling */
.file-requirements {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.file-requirements h6 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.file-requirements ul li {
    padding: 5px 0;
    color: var(--dark-gray);
}

/* Recent Uploads Styling */
.recent-upload-item {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    transition: background-color 0.3s ease;
}

.recent-upload-item:hover {
    background-color: rgba(16, 184, 221, 0.05);
}

.recent-upload-item:last-child {
    border-bottom: none;
}

.upload-status-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.status-uploaded {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info);
}

.status-processing {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.status-completed {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.status-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-light);
    border-top: 2px solid var(--primary-bright);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .upload-drop-zone {
        padding: 40px 20px;
        min-height: 250px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .file-info-section {
        padding: 15px;
    }
    
    .upload-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upload-actions button {
        min-width: 100%;
        margin-bottom: 8px;
    }
}

/* ================================================
   SINGLE-PAGE EXPERIENCE STYLES
   ================================================ */

/* Main Layout */
.single-page-experience {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Vertical Progress Sidebar */
.vertical-progress-sidebar {
    position: fixed;
    /* top: -4px; - Removed: Now handled dynamically by JavaScript */
    left: 0;
    width: 280px;
    height: calc(100vh + 4px);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    z-index: 1000;
    padding: 2rem 1.5rem;
    color: var(--white);
    box-shadow: 3px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.progress-milestone-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    padding-top: 1rem;
}

/* Individual Milestones */
.milestone {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 2.5rem;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.milestone.active {
    opacity: 1;
    transform: scale(1.05);
}

.milestone.completed {
    opacity: 1;
}

.milestone.completed .milestone-icon {
    background: var(--success);
    border-color: var(--success);
}

.milestone.completed .milestone-icon i {
    color: var(--white);
}

.milestone.active .milestone-icon {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(16, 184, 221, 0.5);
    animation: pulse-glow 2s infinite;
}

.milestone.active .milestone-content {
    color: var(--white);
}

/* Milestone Icon */
.milestone-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.milestone-icon i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Milestone Content */
.milestone-content {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s ease;
}

.milestone-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.milestone-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Milestone Connector */
.milestone-connector {
    position: absolute;
    top: 50px;
    left: 23px;
    width: 4px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.milestone:last-child .milestone-connector {
    display: none;
}

.milestone.completed .milestone-connector {
    background: var(--success);
}

.milestone.active .milestone-connector {
    background: var(--primary-light);
    box-shadow: 0 0 8px rgba(16, 184, 221, 0.5);
}

/* Main Content Area */
.main-content-area {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    background: var(--light-gray);
    min-height: 100vh;
}

/* Processing Sections */
.processing-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.processing-section.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.processing-section.completed {
    opacity: 0.7;
    transform: translateY(-10px) scale(0.98);
    pointer-events: all; /* Keep interactions enabled for completed sections */
}

.processing-section.collapsed {
    opacity: 0.5;
    transform: translateY(-20px) scale(0.95);
    max-height: 200px;
    overflow: hidden;
    pointer-events: none;
}

/* Section Animation Delays */
.processing-section:nth-child(1) { transition-delay: 0ms; }
.processing-section:nth-child(2) { transition-delay: 100ms; }
.processing-section:nth-child(3) { transition-delay: 200ms; }
.processing-section:nth-child(4) { transition-delay: 300ms; }
.processing-section:nth-child(5) { transition-delay: 400ms; }

/* Enhanced Card Styles for Single-Page */
.processing-section .card {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
}

.processing-section.active .card {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.processing-section.completed .card {
    border-left: 4px solid var(--success);
}

/* Progress Bar Enhancements */
.progress {
    height: 8px;
    border-radius: 10px;
    background: rgba(0, 93, 173, 0.1);
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Transcription Progress Specific */
.transcription-progress-section .fa-microphone {
    animation: transcribe-pulse 2s infinite;
}

@keyframes transcribe-pulse {
    0%, 100% { 
        transform: scale(1);
        color: var(--primary-bright);
    }
    50% { 
        transform: scale(1.1);
        color: var(--primary-light);
    }
}

/* AI Processing Animation */
.fa-brain.fa-spin {
    animation: ai-think 3s infinite;
}

@keyframes ai-think {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        color: var(--success);
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        color: var(--primary-light);
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        color: var(--primary-bright);
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        color: var(--primary-medium);
    }
}

/* Milestone Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 184, 221, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 184, 221, 0.8);
        transform: scale(1.05);
    }
}

/* Document Preview Enhancements */
.document-preview {
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 93, 173, 0.05) 0%, rgba(16, 184, 221, 0.05) 100%);
    transition: all 0.4s ease;
}

.document-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Button Enhancements */
.processing-section .btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.processing-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Error Section Styling */
#section-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* File Requirements Collapse */
#fileRequirements.collapsed {
    max-height: 80px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.5s ease;
}

#fileRequirements.collapsed .card-body {
    transform: scale(0.95);
}

/* Credit Display Enhancement */
#userCreditsDisplay {
    transition: all 0.3s ease;
}

#userCreditsDisplay.updated {
    animation: credit-update 0.6s ease;
}

@keyframes credit-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: var(--success); }
    100% { transform: scale(1); }
}

/* Smooth Section Transitions */
.section-enter {
    opacity: 0;
    transform: translateY(50px);
}

.section-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-exit {
    opacity: 1;
    transform: translateY(0);
}

.section-exit-active {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.4s ease;
}

/* COMPLETE TRANSCRIPT AND SPEAKER STYLING (from session_status.html) */
.formatted-transcript {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.speaker-label {
    color: var(--primary-bright);
    font-weight: 600;
    margin-right: 0.5rem;
    display: inline-block;
    min-width: 80px;
}

.transcript-text {
    color: var(--dark-gray);
    line-height: 1.6;
}

.speaker-sample {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.speaker-sample:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sample-text {
    font-style: italic;
    color: #495057;
    margin: 10px 0;
}

.speaker-name-input {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-in-out;
}

.sample-preview {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
}

.speaker-name-input .form-control {
    border: 1px solid #ced4da;
}

.speaker-name-input .form-control:focus {
    border-color: var(--primary-bright);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#speakerNameAssignment {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.audio-play-btn {
    min-width: 80px;
    transition: all 0.3s ease;
    border-radius: 20px;
    font-size: 0.85rem;
}

.audio-play-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.audio-play-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.audio-play-btn .audio-play-icon {
    margin-right: 0.3rem;
    font-size: 0.8rem;
}

.audio-play-btn .audio-play-text {
    font-weight: 500;
}

.speaker-sample .d-flex {
    align-items: center;
}

.speaker-sample h6 {
    color: var(--primary-bright);
    font-weight: 600;
}

.file-detail {
    padding: 8px 0;
    font-size: 0.95rem;
}

.file-detail i {
    width: 20px;
    text-align: center;
}

/* Form Styling Enhancements */
.form-label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(16, 184, 221, 0.25);
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 93, 173, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-bright);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success States */
.success-checkmark {
    color: var(--success);
    animation: success-pop 0.6s ease;
}

@keyframes success-pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Design for Single-Page Experience */
@media (max-width: 1200px) {
    .vertical-progress-sidebar {
        width: 240px;
    }
    
    .main-content-area {
        margin-left: 240px;
    }
}

@media (max-width: 992px) {
    .vertical-progress-sidebar {
        width: 200px;
        padding: 1.5rem 1rem;
    }
    
    .main-content-area {
        margin-left: 200px;
        padding: 1.5rem;
    }
    
    .milestone-title {
        font-size: 1rem;
    }
    
    .milestone-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .single-page-experience {
        flex-direction: column;
    }
    
    .vertical-progress-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        padding: 1rem;
    }
    
    .progress-milestone-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        overflow-x: auto;
    }
    
    .milestone {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        margin-right: 1rem;
        min-width: 80px;
    }
    
    .milestone-connector {
        display: none;
    }
    
    .milestone-content {
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .milestone-title {
        font-size: 0.8rem;
    }
    
    .milestone-subtitle {
        font-size: 0.7rem;
    }
    
    .main-content-area {
        margin-left: 0;
        padding: 1rem;
    }
} 