/* ============================================
   CSS VARIABLES & THEME CONFIGURATION
   ============================================ */

:root {
    /* Light Theme Colors */
    --bg-primary: #ece1e1;
    --bg-secondary: #e2e0e0;
    --bg-tertiary: #e9ecef;
    --bg-elevated: #ede9e9;
    
    --text-primary: #494848;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --text-inverse: #ffffff;
    
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e0;
    
    /* Brand Colors */
    --accent-primary: #FF9900;
    --accent-primary-hover: #EC7211;
    --accent-secondary: #32445a;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    
    /* Semantic Colors */
    --success: #059669;
    --success-bg: #d1fae5;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --error: #dc2626;
    --error-bg: #fee2e2;
    --info: #0891b2;
    --info-bg: #cffafe;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #FF9900 0%, #EC7211 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 100%);
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-elevated: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-inverse: #bbbec6;
    
    --border-primary: #334155;
    --border-secondary: #475569;
    
    /* Enhanced shadows for dark mode */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Typography */
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
}

/* Spacing */
:root {
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
}

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

/* Transitions */
:root {
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--gradient-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    transition: background-color var(--transition-base);
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* ============================================
   LAYOUT
   ============================================ */

.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    flex: 1;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(30, 41, 59, 0.9);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.brand-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-primary);
    stroke-width: 1.5;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-primary);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    stroke-width: 2;
    transition: all var(--transition-base);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
    animation: fadeInDown 0.6s ease-out;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--text-inverse);
    margin-bottom: var(--space-4);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text-inverse);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-1);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-12);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.content-section {
    padding: var(--space-12) var(--space-8);
}

/* ============================================
   UPLOAD SECTION
   ============================================ */

.upload-container {
    max-width: 700px;
    margin: 0 auto;
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.upload-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.upload-container:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.upload-container:hover::before {
    opacity: 0.05;
}

.upload-container.drag-over {
    border-color: var(--accent-primary);
    border-style: solid;
    background: var(--bg-primary);
}

.upload-container.drag-over::before {
    opacity: 0.1;
}

.upload-visual {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-6);
}

.upload-icon {
    width: 80px;
    height: 80px;
    color: var(--accent-primary);
    stroke-width: 1.5;
    transition: transform var(--transition-base);
}

.upload-container:hover .upload-icon {
    transform: translateY(-4px);
}

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

.upload-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.upload-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.upload-formats {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.format-badge {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.upload-limit {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ============================================
   PROCESSING SECTION
   ============================================ */

.processing-container {
    max-width: 700px;
    margin: 0 auto;
}

.processing-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.processing-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.processing-icon {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2;
}

.processing-icon.rotating {
    animation: rotate 2s linear infinite;
}

.processing-text {
    flex: 1;
}

.processing-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.processing-message {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-wrapper {
    margin-bottom: var(--space-8);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.progress-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
}

.progress-percentage {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.progress-bar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-shimmer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

/* Processing Steps */
.processing-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    transition: all var(--transition-base);
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-base);
}

.step-item.active .step-indicator {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.step-item.active .step-indicator::after {
    opacity: 1;
    transform: scale(1);
}

.step-item.completed .step-indicator {
    border-color: var(--success);
    background: var(--success);
}

.step-item.completed .step-indicator::before {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
}

.step-text {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: var(--weight-medium);
    text-align: center;
}

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

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-container {
    animation: fadeInUp 0.5s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
}

.results-header-content {
    flex: 1;
}

.results-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.results-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

/* ============================================
   RESULT CARDS
   ============================================ */

.result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-primary {
    border-color: var(--accent-blue);
    border-width: 2px;
}

.card-highlight {
    background: linear-gradient(135deg, 
        rgba(255, 153, 0, 0.05) 0%, 
        rgba(255, 153, 0, 0.02) 100%
    );
    border-color: var(--accent-primary);
    border-width: 2px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-elevated);
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    stroke-width: 2;
    flex-shrink: 0;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.card-body {
    padding: var(--space-6);
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-primary);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-tertiary);
}

.info-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
    word-break: break-word;
    font-family: var(--font-mono);
}

/* Summary */
.summary-content {
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.8;
}

/* Metadata */
.metadata-display {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    max-height: 300px;
    overflow-y: auto;
}

.metadata-content {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================
   ERROR SECTION
   ============================================ */

.error-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.error-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--error-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.error-icon {
    width: 40px;
    height: 40px;
    color: var(--error);
    stroke-width: 2;
}

.error-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--error);
    margin-bottom: var(--space-3);
}

.error-message {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

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

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

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

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: var(--space-12) 0 var(--space-8);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-4);
}

.footer-text strong {
    font-weight: var(--weight-semibold);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-link svg {
    width: 16px;
    height: 16px;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.metadata-display::-webkit-scrollbar {
    width: 8px;
}

.metadata-display::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.metadata-display::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: var(--radius-sm);
}

.metadata-display::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .nav-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .brand-name {
        font-size: var(--text-base);
    }
    
    .brand-subtitle {
        font-size: 0.625rem;
    }
    
    .hero {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .content-section {
        padding: var(--space-8) var(--space-4);
    }
    
    .upload-container {
        padding: var(--space-8);
    }
    
    .results-header {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .results-title {
        font-size: var(--text-2xl);
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .processing-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .error-actions .btn {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: var(--space-2);
    }
    
    .nav-link {
        display: none;
    }
    
    .upload-icon {
        width: 60px;
        height: 60px;
    }
    
    .upload-title {
        font-size: var(--text-xl);
    }
    
    .upload-formats {
        flex-wrap: wrap;
    }
}
