* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-color);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 32px 40px;
    border-bottom: 4px solid var(--primary-dark);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.header-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.header-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* New Session Button */
.new-session-btn {
    margin-left: auto;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.new-session-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.new-session-btn svg {
    transition: transform 0.3s;
}

.new-session-btn:hover svg {
    transform: rotate(90deg);
}

/* Main Content */
.main-content {
    padding: 40px;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 180px;
    transition: transform 0.2s;
}

.step.clickable {
    cursor: pointer;
    transition: all 0.3s;
}

.step.clickable:hover {
    transform: translateY(-2px);
}

.step.clickable.completed:hover .step-number {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.step.clickable[style*="pointer-events: none"] {
    cursor: not-allowed;
    opacity: 0.5;
}

.step.clickable[style*="pointer-events: none"]:hover {
    transform: none;
}

.step.clickable[style*="pointer-events: none"] .step-number {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-secondary);
    box-shadow: none;
}

.step.clickable[style*="pointer-events: none"] .step-label {
    color: var(--text-light);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 3px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.step-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.step-number.completed {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.step-number.active ~ .step-label,
.step-number.completed ~ .step-label {
    color: var(--text-primary);
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 16px;
    max-width: 120px;
}

/* Workflow Sections */
.workflow-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.workflow-section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Upload Container */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.file-label {
    cursor: pointer;
    display: block;
}

.file-drop-zone {
    border: 3px dashed var(--border-dark);
    border-radius: 16px;
    padding: 64px 32px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s;
    cursor: pointer;
}

.file-drop-zone:hover {
    border-color: var(--primary-color);
    background: rgba(30, 64, 175, 0.03);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.file-drop-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(30, 64, 175, 0.08);
    border-style: solid;
}

.drop-zone-icon {
    color: var(--primary-color);
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.file-label-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.file-label-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.file-formats {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.format-tag {
    padding: 6px 14px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.format-tag.format-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.file-info {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 16px;
}

/* File Info Display */
.file-info-display {
    margin-top: 24px;
}

.file-info-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.file-preview {
    width: 100%;
    height: 200px;
    background: var(--bg-input);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.file-preview img,
.file-preview video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-icon-large {
    font-size: 4rem;
    opacity: 0.4;
}

.file-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.file-size {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.file-progress-container {
    margin-top: 16px;
}

.file-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.file-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.file-progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.remove-file-btn {
    background: transparent;
    color: var(--error-color);
    border: 2px solid var(--error-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.remove-file-btn:hover {
    background: var(--error-color);
    color: white;
}

/* Buttons */
.primary-btn-large {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-top: 24px;
    box-shadow: var(--shadow);
}

.primary-btn-large:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.primary-btn-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Container */
.result-container {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-title svg {
    color: var(--primary-color);
}

.copy-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 500;
    min-width: 130px;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.copy-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.result-content {
    padding: 32px;
    max-height: 600px;
    overflow-y: auto;
    min-height: 400px;
}

.result-content::-webkit-scrollbar {
    width: 8px;
}

.result-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.result-content::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 4px;
}

.result-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 350px;
    color: var(--text-light);
}

.placeholder-content svg {
    margin-bottom: 16px;
}

.placeholder {
    font-size: 1rem;
    text-align: center;
}

/* Transcription and Summary Content */
.transcription-content,
.summary-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Editable Content */
.editable-content {
    outline: none;
    border: 2px dashed transparent;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s;
    min-height: 200px;
}

.editable-content:hover {
    border-color: var(--border-color);
    background: rgba(30, 64, 175, 0.02);
}

.editable-content.editing {
    border-color: var(--primary-color);
    border-style: solid;
    background: rgba(30, 64, 175, 0.03);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.edit-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(30, 64, 175, 0.05);
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s;
}

.edit-hint svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.edit-hint.hidden {
    display: none;
}

/* Verification Layout */
.verification-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .verification-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.transcription-content h1,
.transcription-content h2,
.transcription-content h3,
.summary-content h1,
.summary-content h2,
.summary-content h3 {
    color: var(--primary-color);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.transcription-content p,
.summary-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.transcription-content code,
.summary-content code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.transcription-content pre,
.summary-content pre {
    background: var(--bg-input);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.transcription-content ul,
.transcription-content ol,
.summary-content ul,
.summary-content ol {
    margin: 16px 0;
    padding-left: 32px;
}

.transcription-content li,
.summary-content li {
    margin: 8px 0;
}

/* Verification Status */
.verification-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.matched {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status-badge.partial {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.status-badge.mismatched {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Download PDF Button */
.download-pdf-btn {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.download-pdf-btn:hover:not(:disabled) {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.download-pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.verification-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.verification-content p {
    margin-bottom: 16px;
    text-align: justify;
}

/* Result Actions */
.result-actions {
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
}

/* Status Bar */
.status-bar {
    padding: 16px 40px;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    position: sticky;
    bottom: 0;
    transition: all 0.3s;
}

.status-bar.status-success {
    background: rgba(5, 150, 105, 0.1);
    border-top-color: var(--success-color);
}

.status-bar.status-warning {
    background: rgba(217, 119, 6, 0.1);
    border-top-color: var(--warning-color);
}

.status-bar.status-error {
    background: rgba(220, 38, 38, 0.1);
    border-top-color: var(--error-color);
}

.status-bar.status-info {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

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

.status-bar.status-warning .status-indicator {
    background: var(--warning-color);
}

.status-bar.status-error .status-indicator {
    background: var(--error-color);
}

.status-bar.status-info .status-indicator {
    background: var(--text-secondary);
}

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

.status-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.status-bar.status-success .status-text {
    color: var(--success-color);
    font-weight: 600;
}

.status-bar.status-warning .status-text {
    color: var(--warning-color);
    font-weight: 600;
}

.status-bar.status-error .status-text {
    color: var(--error-color);
    font-weight: 600;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Navigation Step Buttons */
.nav-step-btn {
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-step-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-step-btn:disabled,
.nav-step-btn[style*="pointer-events: none"] {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: var(--bg-input);
    color: var(--text-light);
    border-color: var(--border-color);
}

.nav-step-btn:disabled:hover,
.nav-step-btn[style*="pointer-events: none"]:hover {
    background: var(--bg-input);
    color: var(--text-light);
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .workflow-steps {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .step {
        max-width: none;
        flex: 0 0 calc(50% - 8px);
    }
    
    .step-line {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 24px 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .new-session-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .new-session-btn span {
        display: inline;
    }
    
    .main-content {
        padding: 24px 20px;
    }
    
    .workflow-steps {
        padding: 16px;
    }
    
    .step {
        flex: 0 0 100%;
    }
    
    .result-content {
        padding: 20px;
        max-height: 500px;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
}

/* Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.popup-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-modal {
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

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

.popup-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    padding: 0;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.popup-message {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.popup-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-secondary);
}

.popup-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.popup-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.popup-btn-secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.popup-btn-secondary:hover {
    background: var(--border-color);
}

.popup-overlay.popup-error .popup-header {
    background: linear-gradient(135deg, var(--error-color) 0%, #b91c1c 100%);
}

.popup-overlay.popup-warning .popup-header {
    background: linear-gradient(135deg, var(--warning-color) 0%, #b45309 100%);
}

.popup-overlay.popup-success .popup-header {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-dark) 100%);
}

/* PDF Preview Modal */
.pdf-preview-modal {
    max-width: 90%;
    width: 1200px;
    height: 90vh;
    max-height: 90vh;
}

.pdf-preview-body {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pdf-preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f5f5f5;
}

#pdfPreviewFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.pdf-preview-footer {
    justify-content: space-between;
    padding: 16px 24px;
}

.pdf-preview-footer .popup-btn {
    min-width: 140px;
    justify-content: center;
}

/* PDF Export Progress Modal */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.progress-modal-content {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.progress-modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--bg-input);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.progress-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    min-height: 24px;
}
