/* Website Media Optimizer - Modern Light Theme
   Copyright (c) 2026 Exomondo LLC. All rights reserved.
*/

/* ============================================
   CSS VARIABLES - Design System
   ============================================ */
:root {
    /* Primary Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;

    /* Secondary (Purple/Violet) */
    --secondary-50: #f5f3ff;
    --secondary-100: #ede9fe;
    --secondary-200: #ddd6fe;
    --secondary-400: #a78bfa;
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;

    /* Neutral (Slate) */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* Success */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;

    /* Warning */
    --warning-50: #fffbeb;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;

    /* Error */
    --error-50: #fef2f2;
    --error-400: #f87171;
    --error-500: #ef4444;
    --error-600: #dc2626;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 50%, var(--neutral-50) 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, var(--neutral-50) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgb(59 130 246 / 0.3);
    --shadow-card: 0 1px 3px rgb(0 0 0 / 0.08), 0 4px 12px rgb(0 0 0 / 0.05);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    background: var(--gradient-hero);
    background-attachment: fixed;
    color: var(--neutral-700);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--neutral-800);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-600);
}

.navbar-logo {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-link {
    color: var(--neutral-600);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================
   STEPPER / WIZARD
   ============================================ */
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.stepper-item {
    display: flex;
    align-items: center;
    position: relative;
}

.stepper-connector {
    width: 80px;
    height: 2px;
    background: var(--neutral-200);
    margin: 0 0.5rem;
    transition: background var(--transition-base);
}

.stepper-connector.active {
    background: var(--primary-500);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    background: var(--neutral-100);
    color: var(--neutral-500);
    border: 2px solid var(--neutral-200);
    transition: all var(--transition-base);
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

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

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-500);
    transition: color var(--transition-base);
}

.step.active .step-label {
    color: var(--primary-600);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--success-600);
}

/* ============================================
   WIZARD PANELS
   ============================================ */
.wizard-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-panel.active {
    display: block;
}

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

/* ============================================
   DROP ZONE
   ============================================ */
.drop-zone {
    border: 2px dashed var(--neutral-300);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--neutral-50);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.drop-zone:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.drop-zone.drag-over {
    border-color: var(--primary-500);
    background: var(--primary-50);
    transform: scale(1.01);
    box-shadow: var(--shadow-glow);
}

.drop-zone.drag-over::before {
    opacity: 0.05;
}

.drop-zone-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform var(--transition-base);
}

.drop-zone:hover .drop-zone-icon {
    transform: scale(1.05);
}

.drop-zone-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.drop-zone-subtitle {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: 1rem;
}

.drop-zone-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.format-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neutral-600);
}

/* ============================================
   FILE LIST
   ============================================ */
.file-list {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    transition: all var(--transition-base);
}

.file-item:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-sm);
}

.file-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: var(--neutral-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

.file-remove {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    background: transparent;
}

.file-remove:hover {
    color: var(--error-500);
    background: var(--error-50);
}

/* ============================================
   COMPRESSION OPTIONS
   ============================================ */
.compression-mode-toggle {
    display: flex;
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all var(--transition-base);
}

.mode-btn.active {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.mode-btn:hover:not(.active) {
    color: var(--neutral-800);
}

/* Usage Category Buttons */
.usage-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.usage-category {
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.usage-category:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.usage-category.active {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.usage-category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.usage-category-title {
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.25rem;
}

.usage-category-desc {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

/* Preset Grid */
.preset-section {
    margin-bottom: 1.5rem;
}

.preset-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-600);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    min-height: 100px;
}

.preset-btn:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preset-btn.active {
    border-color: var(--primary-500);
    background: var(--primary-50);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.preset-btn[data-category="platform"] {
    border-color: var(--secondary-200);
}

.preset-btn[data-category="platform"]:hover {
    border-color: var(--secondary-400);
}

.preset-btn[data-category="platform"].active {
    border-color: var(--secondary-500);
    background: var(--secondary-50);
    box-shadow: 0 0 0 3px var(--secondary-100);
}

.preset-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.preset-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-800);
    line-height: 1.3;
}

.preset-desc {
    font-size: 0.6875rem;
    color: var(--neutral-500);
    margin-top: 0.25rem;
}

.preset-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: var(--success-100);
    color: var(--success-600);
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
}

/* Estimation Card */
.estimation-card {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.estimation-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.estimation-icon {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
}

.estimation-label {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.estimation-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-800);
}

.estimation-reduction {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--success-100);
    color: var(--success-700);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:disabled {
    background: var(--neutral-300);
    color: var(--neutral-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-400);
}

.btn-success {
    background: var(--success-500);
    color: white;
}

.btn-success:hover {
    background: var(--success-600);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   FORM CONTROLS
   ============================================ */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--neutral-800);
    transition: all var(--transition-base);
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Range Slider */
.range-slider {
    width: 100%;
    height: 0.5rem;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 3rem;
    height: 1.75rem;
    background: var(--neutral-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-base);
}

.toggle.active {
    background: var(--primary-500);
}

.toggle-dot {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.toggle.active .toggle-dot {
    transform: translateX(1.25rem);
}

/* ============================================
   JOB CARDS
   ============================================ */
.job-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--neutral-100);
    animation: slideIn 0.3s ease;
}

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

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

.job-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.job-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.job-name {
    font-weight: 600;
    color: var(--neutral-800);
}

.job-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: var(--warning-50);
    color: var(--warning-500);
}

.status-processing {
    background: var(--primary-50);
    color: var(--primary-600);
}

.status-completed {
    background: var(--success-50);
    color: var(--success-600);
}

.status-failed {
    background: var(--error-50);
    color: var(--error-600);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 1rem;
}

.progress-bar-bg {
    height: 0.5rem;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-bar.completed {
    background: var(--success-500);
}

.progress-bar.failed {
    background: var(--error-500);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-top: 0.5rem;
}

/* Size Comparison */
.size-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.size-box {
    text-align: center;
}

.size-label {
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-bottom: 0.25rem;
}

.size-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.size-original {
    color: var(--neutral-600);
}

.size-compressed {
    color: var(--success-600);
}

.size-arrow {
    color: var(--neutral-400);
}

.reduction-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--success-100);
    color: var(--success-700);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
}

/* Job Actions */
.job-actions {
    display: flex;
    gap: 0.75rem;
}

/* ============================================
   BATCH STATUS
   ============================================ */
.batch-status {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.batch-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.batch-status-title {
    font-weight: 600;
    color: var(--neutral-800);
}

.batch-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.batch-stat {
    text-align: center;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
}

.batch-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.batch-stat-label {
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-top: 0.25rem;
}

.stat-pending { color: var(--warning-500); }
.stat-processing { color: var(--primary-500); }
.stat-completed { color: var(--success-500); }
.stat-failed { color: var(--error-500); }

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

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

.notification-info {
    background: var(--primary-50);
    color: var(--primary-700);
    border: 1px solid var(--primary-200);
}

.notification-success {
    background: var(--success-50);
    color: var(--success-700);
    border: 1px solid var(--success-200);
}

.notification-error {
    background: var(--error-50);
    color: var(--error-700);
    border: 1px solid var(--error-200);
}

.notification-warning {
    background: var(--warning-50);
    color: var(--warning-700);
    border: 1px solid var(--warning-200);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 56rem;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.modal-title {
    font-weight: 600;
    color: var(--neutral-800);
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    background: transparent;
}

.modal-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-800);
}

.modal-body {
    padding: 0;
    background: var(--neutral-900);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: white;
    border-top: 1px solid var(--neutral-200);
    padding: 1.5rem;
    text-align: center;
    color: var(--neutral-500);
    font-size: 0.875rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--neutral-500);
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: var(--neutral-300);
}

.empty-state-title {
    font-weight: 600;
    color: var(--neutral-600);
    margin-bottom: 0.5rem;
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .stepper {
        padding: 1rem;
    }

    .stepper-connector {
        width: 40px;
    }

    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .usage-categories {
        grid-template-columns: 1fr;
    }

    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .batch-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .estimation-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   PHASE 4: Enhanced Compression Selection
   ============================================ */

/* Preset hover tooltip */
.preset-btn {
    position: relative;
}

.preset-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--neutral-800);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: 10;
}

.preset-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Quality indicator */
.quality-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.quality-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: var(--neutral-300);
    transition: background var(--transition-fast);
}

.quality-dot.filled {
    background: var(--primary-500);
}

.quality-dot.filled.high {
    background: var(--success-500);
}

/* Animated selection ring */
.preset-btn.active::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary-400);
    border-radius: calc(var(--radius-lg) + 4px);
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* ============================================
   PHASE 5: Enhanced Results Section
   ============================================ */

/* Success Summary Card */
.success-summary {
    background: linear-gradient(135deg, var(--success-50) 0%, var(--primary-50) 100%);
    border: 1px solid var(--success-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: slideDown 0.5s ease;
}

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

.success-summary-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: var(--success-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-600);
    animation: bounce-in 0.5s ease 0.2s both;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.success-summary-subtitle {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
}

.success-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.success-stat {
    text-align: center;
}

.success-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

.success-stat-value.highlight {
    color: var(--success-600);
}

.success-stat-label {
    font-size: 0.75rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced Job Card */
.job-card {
    position: relative;
    overflow: hidden;
}

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

.job-card.failed {
    border-left: 4px solid var(--error-500);
}

.job-card.processing {
    border-left: 4px solid var(--primary-500);
}

/* Size comparison visual */
.size-comparison-visual {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.size-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.size-bar-wrapper {
    position: relative;
    height: 1.5rem;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.size-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.size-bar.original {
    background: var(--neutral-400);
}

.size-bar.compressed {
    background: linear-gradient(90deg, var(--success-400), var(--success-500));
}

.size-bar-label {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.size-bar-title {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.reduction-circle {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-full);
    background: var(--success-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reduction-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success-600);
    line-height: 1;
}

.reduction-label {
    font-size: 0.625rem;
    color: var(--success-600);
    text-transform: uppercase;
}

/* Processing animation */
.processing-animation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-600);
    font-size: 0.875rem;
}

.processing-dots {
    display: flex;
    gap: 0.25rem;
}

.processing-dots span {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-500);
    border-radius: var(--radius-full);
    animation: processing-bounce 1.4s ease-in-out infinite;
}

.processing-dots span:nth-child(1) { animation-delay: 0s; }
.processing-dots span:nth-child(2) { animation-delay: 0.16s; }
.processing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes processing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Error display */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--error-50);
    border: 1px solid var(--error-200);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.error-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--error-500);
    flex-shrink: 0;
}

.error-text {
    font-size: 0.875rem;
    color: var(--error-700);
}

/* ============================================
   PHASE 6: Polish & Micro-Animations
   ============================================ */

/* Button press effect */
.btn:active {
    transform: scale(0.98);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Smooth focus rings */
.btn:focus-visible,
.form-select:focus-visible,
.form-input:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}

/* Card hover lift */
.card:hover {
    box-shadow: var(--shadow-lg);
}

/* File item hover slide */
.file-item {
    transform: translateX(0);
}

.file-item:hover {
    transform: translateX(4px);
}

/* Step click feedback */
.step:active .step-number {
    transform: scale(0.95);
}

/* Usage category selection animation */
.usage-category.active {
    animation: select-pop 0.3s ease;
}

@keyframes select-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Preset badge shine effect */
.preset-badge {
    position: relative;
    overflow: hidden;
}

.preset-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Notification slide in/out */
.notification {
    transition: all 0.3s ease;
}

.notification.hiding {
    opacity: 0;
    transform: translateX(100%);
}

/* Progress bar shimmer */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar:not(.completed):not(.failed)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

/* Loading skeleton pulse */
.skeleton-text {
    height: 1rem;
    background: var(--neutral-200);
    border-radius: var(--radius-sm);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

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

/* Checkmark animation for completed */
.checkmark-circle {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: var(--success-500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: checkmark-pop 0.4s ease;
}

@keyframes checkmark-pop {
    0% { transform: scale(0) rotate(-45deg); }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Confetti burst (added via JS) */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 1000;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Ripple effect on buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth page transitions */
.wizard-panel {
    animation: fadeSlideIn 0.4s ease;
}

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

/* Tooltip for info icons */
.info-tooltip {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.info-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-800);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 50;
}

.info-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Spinning loader */
.spinner {
    animation: spin 1s linear infinite;
}

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

/* Animate numbers counting up */
.count-up {
    display: inline-block;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.animate-spin { animation: spin 1s linear infinite; }
.transition-all { transition: all var(--transition-base); }
