/* Syrix Labelling - Mobile-First Styles */

:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Collection Selector */
.collection-selector {
    position: sticky;
    top: 56px;
    z-index: 101;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.collection-selector .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.collection-selector .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Mode Selector */
.mode-selector {
    position: sticky;
    top: 96px;
    z-index: 100;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mode-selector .btn-group {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

/* Desktop: horizontal layout (icon + text) */
@media (min-width: 768px) {
    .mode-selector label {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.3s ease;
        background: white;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mode-selector label i {
        font-size: 1.25rem;
        margin: 0;
    }
}

/* Mobile: vertical layout (icon on top, text below) */
@media (max-width: 767px) {
    .mode-selector label {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.3s ease;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mode-selector label i {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
}

.mode-selector label:hover {
    background: #f8fafc;
}

.mode-selector .btn-check:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Mode Content */
.mode-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.mode-content.active {
    display: block;
}

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

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* Recording Card */
.recording-card {
    background: white;
    color: #1f2937;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.recording-status {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.status-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.status-indicator.recording {
    background: var(--danger-color);
    animation: pulse 1.5s infinite;
}

.status-indicator.playing {
    background: var(--success-color);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.status-text {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Record Button */
.btn-record {
    min-width: 200px;
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-record::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-record:hover::before {
    left: 100%;
}

.btn-record:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.5);
}

.btn-record:active {
    transform: scale(0.98);
}

.btn-record.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: recordingPulse 1.5s infinite;
}

@keyframes recordingPulse {
    0%, 100% {
        box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.6);
    }
}

/* Recording Timer */
.recording-timer {
    animation: fadeIn 0.3s ease-in;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Quality Stars */
.quality-stars {
    font-size: 2rem;
    text-align: center;
    padding: 0.5rem 0;
}

.quality-star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.quality-star:hover,
.quality-star.active {
    color: var(--warning-color);
    transform: scale(1.2);
}

.quality-star.active {
    animation: starPop 0.3s ease;
}

@keyframes starPop {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

/* Prompt Card */
.prompt-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 16px rgba(240, 147, 251, 0.3);
    border-radius: 20px;
}

.prompt-text {
    font-size: 1.35rem;
    line-height: 1.7;
    padding: 2rem;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.prompt-text-content {
    width: 100%;
}

.prompt-text .alert {
    text-align: left;
    margin: 0;
}

/* Upload Area */
.upload-area {
    padding: 3rem 1rem;
    border: 3px dashed var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

/* Segments List */
.segment-item {
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.segment-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(4px);
}

/* Recording Item */
.recording-item {
    transition: all 0.2s ease;
}

.recording-item:hover {
    background-color: rgba(0,0,0,0.02);
    transform: translateX(4px);
}

.recording-item.validated {
    border-left: 4px solid var(--success-color);
}

.recording-item.rejected {
    border-left: 4px solid var(--danger-color);
    background-color: rgba(220, 53, 69, 0.05);
}

/* Admin filters */
#adminFilters {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Alert styles */
.alert-sm {
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
}

/* Audio Player */
audio {
    border-radius: 0.5rem;
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    /* Override for meeting labelling and tasks mode on desktop */
    #meetingLabellingInterface > .container,
    #uploadMode #uploadModeContent,
    #tasksMode .container {
        max-width: none !important;
    }
    
    .mode-selector label {
        padding: 1rem;
    }
    
    .mode-selector label i {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 70px;
    right: 1rem;
    z-index: 1050;
}

/* Animations */
.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Force Light Mode - Override System Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #f8fafc !important;
        color: #1f2937 !important;
    }
    
    .card {
        background-color: white !important;
        color: #1f2937 !important;
    }
    
    .form-control,
    .form-select {
        background-color: white !important;
        border-color: #e2e8f0 !important;
        color: #1f2937 !important;
    }
    
    .text-muted {
        color: #6b7280 !important;
    }
    
    .small {
        color: #6b7280 !important;
    }
    
    textarea {
        background-color: white !important;
        color: #1f2937 !important;
    }
}


/* Enhanced Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Enhanced Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Container Improvements - Mobile first */
.container {
    max-width: 600px;
    padding: 1.5rem;
}

/* Desktop: Remove max-width constraint for meeting labelling and tasks mode */
@media (min-width: 992px) {
    #meetingLabellingInterface .container {
        max-width: none !important;
    }
    
    /* Tasks mode needs full width to display task cards properly */
    #tasksMode .container {
        max-width: none !important;
    }
}

/* Navbar Enhancement */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Badge Improvements */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

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

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Audio Player Enhancement */
audio {
    width: 100%;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}


/* Recent Uploads Styles */
.upload-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.upload-item.completed {
    border-left: 4px solid #198754;
}

.upload-item:active {
    transform: scale(0.98);
}

/* Meeting Labelling Styles */
.segment-mini {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 200px;
    float: left;
    margin: 3px;
}

.segment-mini:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
}

.segment-mini.current {
    border-color: #0d6efd;
    background: #e7f1ff;
    font-weight: bold;
}

.segment-mini.completed {
    border-color: #198754;
    background: #d1e7dd;
}

.segment-mini.pending {
    border-color: #6c757d;
    background: #f8f9fa;
}

.seg-num {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.seg-info {
    display: block;
    font-size: 10px;
    color: #6c757d;
}

.seg-text {
    display: block;
    font-size: 9px;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Segment Dots - Using symbols: ⭐ current, ● completed, ○ pending */
.dot {
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    line-height: 1;
    margin: 0 2px;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.current {
    color: #ffc107;
    filter: drop-shadow(0 0 2px rgba(255, 193, 7, 0.5));
}

.dot.completed {
    color: #198754;
}

.dot.pending {
    color: #6c757d;
}

/* Segment dots container - allow wrapping */
#meetingSegmentDots {
    flex-wrap: wrap !important;
    max-width: 100%;
    justify-content: center;
}

/* Timeline Segment */
.timeline-segment {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.timeline-segment:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.timeline-segment.current {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.timeline-segment.completed {
    border-left: 4px solid #198754;
}

/* Smooth transitions for segment changes */
#meetingSegmentView {
    animation: fadeIn 0.3s ease-in;
}

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

/* Navigation buttons styling */
#prevSegmentBtn, #nextSegmentBtn {
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

#prevSegmentBtn:not(:disabled):hover,
#nextSegmentBtn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#prevSegmentBtn:disabled,
#nextSegmentBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#nextSegmentBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

#nextSegmentBtn:not(:disabled):hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* Current segment card header */
.card-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Enhancement button */
#enhanceToggleBtn {
    transition: all 0.3s ease;
}

#enhanceToggleBtn.btn-success {
    animation: enhancePulse 2s infinite;
}

@keyframes enhancePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(25, 135, 84, 0);
    }
}

/* Enhancement status */
#enhancementStatus {
    animation: fadeIn 0.3s ease-in;
}

#enhancementActive .badge {
    animation: slideIn 0.3s ease-out;
}

/* Context play buttons */
.btn-info, .btn-warning {
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-info:hover, .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Meeting Labelling Layout - Desktop 3 columns */
@media (min-width: 768px) {
    /* Override container max-width for desktop - target the specific container inside meeting interface */
    #meetingLabellingInterface > .container {
        max-width: none !important;
        padding: 1rem;
    }
    
    /* Also override for uploadModeContent when in meeting mode */
    #uploadModeContent {
        max-width: none !important;
    }
    
    /* Create 3-column grid for segment view - equal columns */
    #meetingSegmentView {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 1rem;
    }

    /* Column 1: Full Audio + AI Generation */
    .full-audio-column {
        grid-column: span 1;
        min-width: 0; /* Prevent overflow */
    }

    /* Column 2: Current Segment - takes 2fr */
    .current-segment-column {
        grid-column: span 1;
        min-width: 0; /* Prevent overflow */
        overflow: hidden;
    }

    /* Column 3: Navigation + Overview */
    .navigation-column {
        grid-column: span 1;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
        min-width: 0; /* Prevent overflow */
    }

    /* Speaker buttons container - prevent overflow */
    .speaker-buttons-container {
        overflow: hidden;
        max-width: 100%;
    }

    .speaker-buttons-container .btn-group {
        flex-wrap: nowrap;
    }
    
    /* Remove bottom margin from cards in grid */
    #meetingSegmentView > .card,
    #meetingSegmentView > .d-flex {
        margin-bottom: 0;
    }

    /* AI Transcription Controls - responsive layout */
    .ai-transcription-controls {
        display: flex;
        gap: 0.5rem;
        align-items: flex-end;
    }

    .ai-input-group {
        flex: 1;
        min-width: 0;
    }

    .ai-btn-group {
        flex-shrink: 0;
    }

    .ai-btn-group .btn {
        padding: 0.375rem 0.75rem;
    }

    .ai-hint {
        font-size: 0.65rem;
        display: block;
    }

    /* Segment Controls - responsive row */
    .segment-controls-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }

    .segment-ctrl-btn {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        padding: 0.25rem 0.5rem;
    }

    .segment-ctrl-btn .btn-text {
        margin-left: 0.25rem;
    }

    /* Timeline view - segments list spans full width */
    #meetingTimelineView {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #meetingTimelineView > .card {
        margin-bottom: 0;
    }
}

/* Mobile: Vertical stack (<768px) */
@media (max-width: 767px) {
    #meetingSegmentView {
        display: flex;
        flex-direction: column;
    }

    /* Stack order: Full Audio → AI Generation → Current Segment → Dots Navigation → Overview Grid */
    .full-audio-column {
        order: 1;
    }

    .current-segment-column {
        order: 2;
    }

    .navigation-column {
        order: 3;
        max-height: none;
    }
    #meetingLabellingInterface .container {
        padding: 0.5rem;
    }

    /* AI Transcription - stack vertically on mobile */
    .ai-transcription-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-input-group {
        width: 100%;
    }

    .ai-btn-group {
        width: 100%;
    }

    .ai-btn-group .btn {
        width: 100%;
    }

    /* Segment controls - icon only on very small screens */
    .segment-ctrl-btn .btn-text {
        display: none;
    }

    .segment-ctrl-btn {
        padding: 0.5rem;
    }
}

/* Very narrow screens - compact mode */
@media (max-width: 400px) {
    .ai-hint {
        display: none;
    }

    .segment-controls-row {
        gap: 0.15rem;
    }

    .segment-ctrl-btn {
        padding: 0.375rem;
        font-size: 0.875rem;
    }
}


/* ============================================================================
   My Tasks Mode Styles
   ============================================================================ */

/* Priority Sections */
.priority-section {
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.priority-section.priority-top {
    border-left-color: var(--danger-color);
}

.priority-section.priority-normal {
    border-left-color: var(--warning-color);
}

.priority-section.priority-low {
    border-left-color: var(--success-color);
}

.priority-section .card-header {
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* Task Cards */
.task-card {
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.task-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
}

.task-card .card-body {
    padding: 1rem;
}

.task-card h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Progress Bars */
.task-card .progress {
    background-color: #e2e8f0;
    border-radius: 4px;
}

.task-card .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
}

/* Status Badges */
.task-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
}

/* Empty State */
#tasksEmptyState {
    border: 2px dashed var(--border-color);
    background: var(--light-bg);
}

#tasksEmptyState .bi-inbox {
    font-size: 4rem;
    opacity: 0.3;
}

/* Receive More Tasks Button */
#receiveMoreTasksBtn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

#receiveMoreTasksBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

#receiveMoreTasksBtn:active {
    transform: translateY(0);
}

/* Summary Badges */
#tasksSummary .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .priority-section .card-header {
        font-size: 0.875rem;
    }
    
    .task-card h6 {
        font-size: 0.875rem;
    }
    
    .task-card .small {
        font-size: 0.75rem;
    }
    
    #receiveMoreTasksBtn {
        font-size: 0.875rem;
        padding: 0.625rem;
    }
}


/* ============================================================================
 * My Tasks Tab Styles
 * Requirements: 3.1-3.4, 7.3-7.8
 * ============================================================================ */

/* Tasks Mode Container - Center content with max-width */
#tasksMode .container > .card,
#tasksListContainer {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Priority Section Headers */
.priority-section {
    margin-bottom: 2rem;
}

.priority-header {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1400px; /* Prevent cards from stretching too wide on large screens */
    margin: 0 auto; /* Center the grid */
}

@media (min-width: 768px) {
    .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .tasks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Task Card */
.task-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.task-icon {
    font-size: 2rem;
    line-height: 1;
}

/* Progress Bar */
.task-card .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e5e7eb;
}

.task-card .progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Status Badges */
.task-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Start Task Button */
.start-task-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.start-task-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Receive More Tasks Button */
#receiveMoreTasksBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

#receiveMoreTasksBtn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

#receiveMoreTasksBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tasks Summary */
#tasksSummary {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

/* Empty State */
.task-card .bi-inbox {
    color: #9ca3af;
}


/* AI Transcription Progress Dots */
.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    transition: background-color 0.3s ease;
}

.progress-dot.completed {
    background-color: #198754;
}

.progress-dot.current {
    background-color: #0d6efd;
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-dot.pending {
    background-color: #dee2e6;
}

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

/* AI Processing Card */
#aiProcessingCard {
    border-left: 4px solid #0d6efd;
}

#aiProcessingCard .progress {
    height: 8px;
}

/* Block Duration Input */
#blockDurationInput {
    font-size: 1.1rem;
    font-weight: 500;
}

#blockDurationInput:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}


/* ============================================================================
   Collection Info Panel - Modern Redesign
   ============================================================================ */

.collection-info-panel {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

/* Info Cards - Shared Styles */
.info-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.info-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f4f8;
}

.info-card-body {
    padding: 16px 18px;
}

/* Collection Identity (Icon + Name + Badge) */
.collection-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.collection-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.collection-icon {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.collection-title-group {
    flex: 1;
}

.collection-name {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.collection-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Category-specific badge colors */
.collection-badge.category-domain-specific {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.collection-badge.category-production {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.collection-badge.category-testing {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Info Sections */
.info-section {
    margin-bottom: 16px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-label i {
    font-size: 0.9rem;
    color: #667eea;
}

.info-value {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.info-description {
    max-height: 60px;
    overflow-y: auto;
}

/* Guidelines Section */
.guidelines-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
}

.guidelines-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.7;
}

.guidelines-list li {
    margin-bottom: 4px;
    position: relative;
}

.guidelines-list li::marker {
    color: #667eea;
}

.guidelines-list li:last-child {
    margin-bottom: 0;
}

/* Progress Card Header */
.progress-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: none;
}

.progress-header i {
    font-size: 1.1rem;
}

/* Progress Stats Grid */
.progress-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    border-radius: 12px;
    border: 1px solid #e8eef4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-stat-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Circular Progress */
.progress-circle {
    width: 64px;
    height: 64px;
    position: relative;
    flex-shrink: 0;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle .progress-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.progress-circle .progress-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-circle .hours-fill {
    stroke: url(#hoursGradient);
    stroke: #10b981;
}

.progress-circle .speakers-fill {
    stroke: url(#speakersGradient);
    stroke: #3b82f6;
}

.progress-circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hours-circle .progress-circle-content i {
    font-size: 1.3rem;
    color: #10b981;
}

.speakers-circle .progress-circle-content i {
    font-size: 1.3rem;
    color: #3b82f6;
}

/* Progress Stat Info */
.progress-stat-info {
    flex: 1;
    min-width: 0;
}

.progress-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.progress-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

/* Thin Progress Bar */
.progress-thin {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-thin .progress-bar {
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-gradient-hours {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.bg-gradient-speakers {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

/* Enhanced Stats Grid */
.enhanced-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8eef4;
}

.enhanced-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.enhanced-stat-item i {
    font-size: 1.2rem;
}

.enhanced-stat-content {
    display: flex;
    flex-direction: column;
}

.enhanced-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.enhanced-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stt-progress-item .enhanced-stat-content {
    flex: 1;
}

.progress-xs {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-xs .progress-bar {
    border-radius: 2px;
}

/* Speaker Analysis Section */
.speaker-analysis-section {
    padding-top: 12px;
    border-top: 1px solid #e8eef4;
}

.speaker-analysis-section .btn {
    font-size: 0.85rem;
}

/* ============================================================================
   Admin Collection Statistics Cards
   ============================================================================ */

.collection-stats-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.collection-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.collection-stats-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid #e2e8f0;
}

.collection-stats-card .card-body .bg-light {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
}

.collection-stats-card .fw-semibold {
    min-width: 45px;
}

.collection-stats-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.collection-stats-card .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
}

/* Responsive: Mobile */
@media (max-width: 991px) {
    .collection-info-panel {
        padding: 12px 14px;
    }

    .info-card {
        border-radius: 12px;
    }

    .info-card-header {
        padding: 12px 14px;
    }

    .info-card-body {
        padding: 14px;
    }

    .collection-icon-wrapper {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .collection-icon {
        font-size: 22px;
    }

    .collection-name {
        font-size: 1rem;
    }

    .progress-stats-grid {
        gap: 12px;
    }

    .progress-stat-item {
        padding: 10px;
        gap: 12px;
    }

    .progress-circle {
        width: 52px;
        height: 52px;
    }

    .hours-circle .progress-circle-content i,
    .speakers-circle .progress-circle-content i {
        font-size: 1.1rem;
    }

    .progress-stat-value {
        font-size: 1rem;
    }

    .enhanced-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .enhanced-stat-item {
        padding: 8px;
        gap: 8px;
    }

    .enhanced-stat-value {
        font-size: 0.9rem;
    }

    .enhanced-stat-label {
        font-size: 0.65rem;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 575px) {
    .collection-info-panel {
        padding: 10px 12px;
    }

    .collection-identity {
        gap: 10px;
    }

    .collection-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .collection-icon {
        font-size: 20px;
    }

    .info-section {
        margin-bottom: 12px;
    }

    .guidelines-section {
        padding: 10px 12px;
    }

    .progress-stat-item {
        flex-direction: row;
        align-items: center;
    }

    .progress-circle {
        width: 48px;
        height: 48px;
    }

    .enhanced-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .enhanced-stat-item {
        padding: 10px;
    }

    .speaker-analysis-section .btn {
        font-size: 0.8rem;
    }
}

/* ===========================================
   Segment Editing Modals (Merge, Split, Adjust)
   Unified Dark Theme Design
   =========================================== */

/* Modal Container */
.segment-edit-modal .modal-dialog {
    max-width: 600px;
}

.segment-edit-modal .modal-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Modal Header */
.segment-edit-modal .modal-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
}

.segment-edit-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.segment-edit-modal .modal-title i {
    font-size: 1.25rem;
    color: #0A84FF;
}

.segment-edit-modal .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.segment-edit-modal .btn-close-white:hover {
    opacity: 1;
}

/* Modal Body */
.segment-edit-modal .modal-body {
    padding: 1.5rem;
    background: #0d1117;
}

/* Segment Info Card */
.segment-edit-modal .segment-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.segment-edit-modal .segment-info-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.segment-edit-modal .segment-info-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Waveform Container */
.segment-edit-modal .waveform-container {
    background: #000;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    min-height: 140px;
    position: relative;
    margin-bottom: 1rem;
}

/* Playback Controls */
.segment-edit-modal .playback-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 0;
}

.segment-edit-modal .playback-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.8;
}

.segment-edit-modal .playback-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.segment-edit-modal .playback-btn.play-btn {
    font-size: 3rem;
}

.segment-edit-modal .playback-btn.skip-btn {
    font-size: 1.75rem;
}

/* Time Display */
.segment-edit-modal .time-display {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0;
    font-variant-numeric: tabular-nums;
}

/* Info Grid (for Split/Adjust info) */
.segment-edit-modal .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.segment-edit-modal .info-item {
    text-align: center;
}

.segment-edit-modal .info-item-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.segment-edit-modal .info-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.segment-edit-modal .info-item-delta {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.segment-edit-modal .info-item-delta.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.segment-edit-modal .info-item-delta.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.segment-edit-modal .info-item-delta.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Merge Direction Buttons */
.segment-edit-modal .merge-direction-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.segment-edit-modal .merge-direction-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    text-align: left;
    transition: all 0.2s;
    cursor: pointer;
}

.segment-edit-modal .merge-direction-btn:hover {
    background: rgba(10, 132, 255, 0.1);
    border-color: rgba(10, 132, 255, 0.5);
}

.segment-edit-modal .merge-direction-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.segment-edit-modal .merge-direction-btn.selected,
.segment-edit-modal .merge-direction-btn.active {
    background: rgba(10, 132, 255, 0.25);
    border-color: #0A84FF;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3);
}

.segment-edit-modal .merge-direction-icon {
    font-size: 1.5rem;
    color: #0A84FF;
}

.segment-edit-modal .merge-direction-content {
    flex: 1;
}

.segment-edit-modal .merge-direction-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.segment-edit-modal .merge-direction-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

/* Transcription Options */
.segment-edit-modal .transcription-options {
    margin-top: 1rem;
}

.segment-edit-modal .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.segment-edit-modal .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 0.6rem 1rem;
}

.segment-edit-modal .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #0A84FF;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.segment-edit-modal .form-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Modal Footer */
.segment-edit-modal .modal-footer {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.segment-edit-modal .btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.segment-edit-modal .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.segment-edit-modal .btn-action {
    background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%);
    border: none;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.segment-edit-modal .btn-action:hover:not(:disabled) {
    background: linear-gradient(135deg, #2196F3 0%, #0A84FF 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
}

.segment-edit-modal .btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alert Info */
.segment-edit-modal .alert-info-dark {
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #7dd3fc;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.segment-edit-modal .alert-info-dark i {
    font-size: 1rem;
}

/* Transcription Info */
.segment-edit-modal .transcription-info-dark {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #86efac;
    font-size: 0.85rem;
}

.segment-edit-modal .transcription-info-dark i {
    margin-right: 0.5rem;
}

.segment-edit-modal .transcription-info-dark small {
    color: rgba(255, 255, 255, 0.5);
}

/* WaveSurfer Regions Override */
.segment-edit-modal .wavesurfer-region {
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 576px) {
    .segment-edit-modal .modal-dialog {
        margin: 0.5rem;
    }

    .segment-edit-modal .modal-content {
        border-radius: 12px;
    }

    .segment-edit-modal .playback-controls {
        gap: 1.5rem;
    }

    .segment-edit-modal .playback-btn.play-btn {
        font-size: 2.5rem;
    }

    .segment-edit-modal .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
