/* AI YouTube Generator Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container-fluid {
    background: white;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 0 !important;
}

header h1 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
    padding: 0 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 15px;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step-title {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    margin-top: 5px;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.step.active .step-title {
    color: #667eea;
    font-weight: 700;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.step.completed .step-title {
    color: #28a745;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon,
.upload-area.dragover .upload-icon {
    color: #667eea;
    transform: scale(1.1);
}

/* Button Styling */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
}

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

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

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.btn:disabled {
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* Video Style Selection */
.video-style-option {
    height: 120px;
    transition: all 0.3s ease;
}

.video-style-option .btn {
    min-height: 120px;
    border: 2px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #495057;
    transition: all 0.3s ease;
}

.video-style-option .btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.video-style-option .btn-check:checked + .btn {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.video-style-option .btn i {
    color: inherit;
    transition: all 0.3s ease;
}

.video-style-option .btn:hover i,
.video-style-option .btn-check:checked + .btn i {
    transform: scale(1.1);
}

#style-description {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

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

.nav-tabs .nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Transcript Preview */
.transcript-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.speaker-stats {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.speaker-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.speaker-name {
    font-weight: 600;
    color: #495057;
}

.speaker-time {
    font-size: 0.875rem;
    color: #6c757d;
}

.transcript-segment {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #0d6efd;
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timestamp {
    font-size: 0.75rem;
    color: #6c757d;
    font-family: monospace;
}

.speaker-label {
    font-size: 0.75rem;
    background: #e7f3ff;
    color: #0d6efd;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.segment-text {
    line-height: 1.5;
    color: #495057;
}

/* Face Analysis */
.face-analysis-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.face-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.face-id {
    font-weight: 600;
    color: #495057;
}

.face-appearances {
    font-size: 0.875rem;
    color: #6c757d;
}



/* Moment Cards */
.moments-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.moment-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

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

.moment-card.selected {
    border-color: #198754;
    background: #f8fff9;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.15);
}

.moment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.moment-timestamp {
    font-family: monospace;
    font-size: 0.875rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.moment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.score-badge {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.speaker-info {
    font-size: 0.75rem;
    background: #e7f3ff;
    color: #0d6efd;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.emotional-tone {
    font-size: 0.75rem;
    background: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.moment-description {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.moment-reason {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.moment-topic {
    margin-top: 0.5rem;
}

.moment-checkbox {
    margin-left: auto;
}

/* Clip Cards */
.clips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.clip-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
}

.clip-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.clip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.clip-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.clip-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.clip-duration {
    font-family: monospace;
    font-size: 0.875rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.clip-description {
    color: #495057;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.clip-speaker {
    margin-bottom: 1rem;
}

/* Video Player Styles */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.video-player-container::before {
    content: '';
    display: block;
    aspect-ratio: 9/16;
    width: 100%;
}

.clip-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    background: #000;
    transition: opacity 0.3s ease;
}

.clip-video-player::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.clip-video-player[poster] {
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    text-align: center;
    z-index: 1;
}

.video-loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.clip-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Video Controls Enhancement */
.clip-video-player:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.video-player-container:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s ease;
}

/* Fullscreen video styling to maintain 9:16 aspect ratio */
.clip-video-player:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: calc(100vh * 9 / 16);
    max-height: calc(100vw * 16 / 9);
    margin: auto;
    object-fit: contain;
    background: #000;
}

/* WebKit fullscreen support */
.clip-video-player:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: calc(100vh * 9 / 16);
    max-height: calc(100vw * 16 / 9);
    margin: auto;
    object-fit: contain;
    background: #000;
}

/* Mozilla fullscreen support */
.clip-video-player:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: calc(100vh * 9 / 16);
    max-height: calc(100vw * 16 / 9);
    margin: auto;
    object-fit: contain;
    background: #000;
}

/* Microsoft fullscreen support */
.clip-video-player:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: calc(100vh * 9 / 16);
    max-height: calc(100vw * 16 / 9);
    margin: auto;
    object-fit: contain;
    background: #000;
}

/* Aspect Ratio Badge */
.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Enhanced Clip Card */
.clip-card {
    position: relative;
    overflow: hidden;
}

.clip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.clip-card:hover::before {
    left: 100%;
}

/* Progress Modal */
.progress {
    background-color: #e9ecef !important;
    border-radius: 10px;
    height: 30px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.progress-bar {
    position: relative;
    overflow: visible;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%) !important;
    transition: width 0.6s ease;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 10;
    min-width: 100px;
    text-align: center;
}

.progress-message {
    font-size: 0.875rem;
    text-align: center;
    color: #495057;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .moment-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .moment-meta {
        justify-content: flex-start;
    }
    
    .clips-container {
        grid-template-columns: 1fr;
    }
    
    .video-player-container {
        max-width: 250px;
    }
    
    .clip-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .clip-actions .btn {
        width: 100%;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
}

/* Custom Scrollbars */
.moments-container::-webkit-scrollbar,
.transcript-preview::-webkit-scrollbar {
    width: 6px;
}

.moments-container::-webkit-scrollbar-track,
.transcript-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.moments-container::-webkit-scrollbar-thumb,
.transcript-preview::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.moments-container::-webkit-scrollbar-thumb:hover,
.transcript-preview::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    animation: fadeInUp 0.5s ease-out;
}

.step-content.d-none {
    animation: fadeOut 0.3s ease-out;
}

.moment-card,
.clip-card {
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.moment-card:nth-child(2) { animation-delay: 0.1s; }
.moment-card:nth-child(3) { animation-delay: 0.2s; }
.moment-card:nth-child(4) { animation-delay: 0.3s; }
.moment-card:nth-child(5) { animation-delay: 0.4s; }

/* Badges and Status Indicators */
.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Form Enhancements */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

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

/* Back Button Styling */
.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    color: white;
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

.d-flex.gap-2 {
    gap: 0.5rem !important;
}

/* Step navigation enhancements */
.step.completed .step-number {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step.completed .step-number:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Card Enhancements */
.card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0 !important;
}

/* Loading Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.upload-area:hover {
    animation: pulse 2s infinite;
}

/* Progress Bar Enhancement */
.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Progress Modal Specific Styling */
#progress-modal .modal-content {
    background: white;
    border: 2px solid #e9ecef;
    position: relative;
}

#progress-modal .modal-body {
    padding: 2rem;
}

#progress-modal .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-bottom: none;
    position: relative;
}

#progress-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#progress-modal .modal-content::after {
    content: '🔒 Processing... Please wait';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
}

/* Loading Modal Specific Styling */
#loading-modal .modal-content {
    background: white;
    border: 2px solid #e9ecef;
    position: relative;
}

#loading-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    position: relative;
}

#loading-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#loading-modal .modal-content::after {
    content: '🔒 Processing... Please wait';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
}

/* Enhanced progress bar for loading modal */
#loading-modal .progress {
    height: 25px;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

#loading-modal .progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#loading-modal .progress-text {
    font-size: 0.9rem;
    font-weight: 600;
}

#loading-modal .progress-message {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Toast Animations */
.alert {
    animation: slideInRight 0.5s ease-out;
}

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

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

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .container-fluid {
        margin: 10px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Stack back and action buttons vertically on mobile */
    .d-flex.gap-2 {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Adjust step 5 back button layout for mobile */
    .d-flex.justify-content-between {
        flex-direction: column !important;
        gap: 1rem;
        text-align: center;
    }
    
    .d-flex.justify-content-between p {
        text-align: center;
        margin-bottom: 0;
    }
}

/* Enhanced progress bar with better visibility for progress modal */
#progress-modal .progress {
    height: 25px;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

#progress-modal .progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#progress-modal .progress-text {
    font-size: 0.9rem;
    font-weight: 600;
}

#progress-modal .progress-message {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}
