/* ===== Enhanced Typography Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Enhanced Algorithm-Inspired Color Palette */
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #6b7280;
    --accent-color: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --success-color: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Edge Detection Theme Colors */
    --edge-blue: #2196f3;
    --edge-purple: #9c27b0;
    --gradient-start: #ff6b6b;
    --gradient-end: #4ecdc4;
    --tech-cyan: #00bcd4;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ===== Animated Background Elements ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 255, 127, 0.08) 0%, transparent 50%);
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.floating-orb:nth-child(1) {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.6) 0%, rgba(0, 255, 255, 0.2) 70%, transparent 100%);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 8s;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

.floating-orb:nth-child(2) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.5) 0%, rgba(138, 43, 226, 0.15) 70%, transparent 100%);
    top: 60%;
    right: 20%;
    animation-delay: -2s;
    animation-duration: 10s;
    box-shadow: 0 0 60px rgba(138, 43, 226, 0.4);
}

.floating-orb:nth-child(3) {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 255, 127, 0.7) 0%, rgba(0, 255, 127, 0.2) 70%, transparent 100%);
    bottom: 20%;
    left: 60%;
    animation-delay: -4s;
    animation-duration: 7s;
    box-shadow: 0 0 40px rgba(0, 255, 127, 0.5);
}

.floating-orb:nth-child(4) {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.3) 0%, rgba(255, 20, 147, 0.1) 70%, transparent 100%);
    top: 30%;
    right: 10%;
    animation-delay: -1s;
    animation-duration: 9s;
}

.floating-orb:nth-child(5) {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.2) 0%, rgba(0, 191, 255, 0.05) 70%, transparent 100%);
    bottom: 40%;
    left: 10%;
    animation-delay: -3s;
    animation-duration: 11s;
}

.glass-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    animation: rotate 20s linear infinite;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.glass-shape:nth-child(6) {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 70%;
    animation-delay: 0s;
    transform-origin: center;
}

.glass-shape:nth-child(7) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    right: 15%;
    animation-delay: -5s;
    border-radius: 50%;
}

.glass-shape:nth-child(8) {
    width: 120px;
    height: 60px;
    top: 50%;
    left: 5%;
    animation-delay: -10s;
    border-radius: 30px;
}

.neon-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.neon-ring:nth-child(9) {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 30%;
    border-color: rgba(0, 255, 255, 0.6);
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.2);
}

.neon-ring:nth-child(10) {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 30%;
    border-color: rgba(138, 43, 226, 0.7);
    animation-delay: -2s;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5), inset 0 0 25px rgba(138, 43, 226, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-15px);
    }
}

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

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

/* ===== Layout Components ===== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    width: 100%;
}

/* ===== Header - Apple Liquid Glass ===== */
.app-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    margin: var(--spacing-lg);
    color: var(--text-white);
    padding: var(--spacing-xl) 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-header:hover::before {
    opacity: 1;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.1;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.app-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.title-icon {
    font-size: 2rem;
}

.app-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ===== Sections ===== */
section {
    margin-bottom: var(--spacing-xl);
}

/* ===== Upload Section ===== */
.upload-section {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Upload Tabs Container - Separate Glass Element ===== */
.upload-tabs-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.09) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 28px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-tabs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.04) 100%);
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-tabs-container:hover::before {
    opacity: 1;
}

/* ===== Upload Zone Container - Separate Glass Element ===== */
.upload-zone-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 60px; /* Pill shape */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: var(--spacing-lg) auto; /* Center horizontally */
    max-width: 800px; /* Make it wider */
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.03) 100%);
    border-radius: 60px; /* Match pill shape */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-zone-container:hover::before {
    opacity: 1;
}

/* ===== Upload Tabs ===== */
.upload-tabs {
    display: flex;
    background: transparent;
    position: relative;
    border-radius: 28px;
}

.upload-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    border-radius: 28px 28px 0 0;
}

.tab-button {
    flex: 1;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 0;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.tab-button:hover {
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.12) 100%);
    transform: translateY(-1px);
}

.tab-button.active {
    color: var(--text-white);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tab-button.active::before {
    transform: scaleX(1);
}

.tab-icon {
    font-size: 1.25rem;
    opacity: 0.8;
}

.tab-text {
    font-weight: 600;
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

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

/* ===== File Upload Zone (Enhanced) ===== */
.upload-zone {
    position: relative;
    padding: var(--spacing-xl);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* Pill shape */
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent; /* Completely transparent */
    margin: var(--spacing-lg);
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.01) 50%, 
        rgba(255, 255, 255, 0.015) 100%);
    border-radius: 48px; /* Match pill shape */
    transition: opacity 0.4s ease;
    opacity: 0;
}

.upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.01);
    background: rgba(255, 255, 255, 0.01);
}

.upload-zone:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.04) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 255, 255, 0.03) 100%);
}

.upload-zone.dragover {
    border-color: rgba(16, 185, 129, 0.9);
    transform: scale(1.03) translateY(-4px);
    animation: liquidPulse 2s ease-in-out infinite;
}

.upload-zone.dragover::before {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(16, 185, 129, 0.08) 50%, 
        rgba(16, 185, 129, 0.12) 100%);
}

@keyframes liquidPulse {
    0%, 100% { 
        border-color: rgba(16, 185, 129, 0.9);
        transform: scale(1.03) translateY(-4px);
    }
    50% { 
        border-color: rgba(16, 185, 129, 1);
        transform: scale(1.05) translateY(-6px);
    }
}

/* ===== URL Input Zone ===== */
/* ===== URL Input Container - Separate Glass Element ===== */
.url-input-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 60px; /* Pill shape */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: var(--spacing-lg) auto; /* Center horizontally */
    max-width: 800px; /* Make it wider */
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.url-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.03) 100%);
    border-radius: 60px; /* Match pill shape */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.url-input-container:hover::before {
    opacity: 1;
}

.url-input-zone {
    padding: var(--spacing-xl);
    background: transparent;
    border-radius: 50px; /* Pill shape */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px; /* Optimized height for better centering */
}

.url-input-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.url-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-xs); /* Reduced margin to move icon up */
    opacity: 0.7;
}

.url-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem; /* Minimal margin to move title up */
    color: var(--text-primary);
}

.url-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem; /* Increased margin to add space below subtitle */
}

.url-input-field-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Increased gap between input and button */
    align-items: stretch; /* Stretch items to fill width */
    width: 100%;
    max-width: 420px; /* Consistent max-width */
}

#urlInput {
    width: 100%;
    max-width: 420px; /* Slightly wider for better proportion */
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    margin: 0 auto; /* Center the input */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

#urlInput:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 
        0 0 0 3px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

#urlInput:valid {
    border-color: rgba(0, 255, 128, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 255, 128, 0.2);
}

#urlInput:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 100, 100, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 100, 100, 0.2);
}

.url-submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    margin: 0 auto; /* Center the button */
    width: fit-content; /* Only take up needed width */
    min-width: 160px; /* Minimum width for better appearance */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.url-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.12) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

.url-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.url-validation-message {
    min-height: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.url-validation-message.success {
    color: var(--success-color);
}

.url-validation-message.error {
    color: var(--danger-color);
}

.url-validation-message.loading {
    color: var(--accent-color);
}

.url-formats {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== Responsive Design for Tabs ===== */
@media (max-width: 768px) {
    .upload-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 1rem 1.5rem;
    }
    
    .url-input-container {
        flex-direction: column;
    }
    
    .url-submit-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .upload-tabs {
        margin: -1rem -1rem 0 -1rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    .url-input-zone {
        padding: var(--spacing-md);
        margin: var(--spacing-md);
    }
    
    .url-icon {
        font-size: 3rem;
    }
    
    .url-title {
        font-size: 1.25rem;
    }
}

/* ===== Progress Bar ===== */
.progress-container {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 50px; /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: var(--spacing-lg) auto;
    max-width: 600px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: none;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* Pill shape */
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.8) 0%, 
        rgba(0, 200, 255, 0.9) 50%, 
        rgba(0, 255, 255, 0.8) 100%);
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    width: 0%;
    transition: width var(--transition-normal);
    border-radius: 50px; /* Pill shape */
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.progress-fill::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: progressGlow 1.5s ease-in-out infinite;
}

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

@keyframes progressGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Status Section ===== */
.status-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.status-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.status-indicator {
    flex-shrink: 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-content {
    flex: 1;
}

.status-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.status-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.status-details {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.status-item {
    color: var(--text-light);
    font-size: 0.875rem;
}

.status-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Processing Preview & Skeleton Screens ===== */
.processing-preview {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 60px; /* Pill shape */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: var(--spacing-xl);
    margin: var(--spacing-lg) auto;
    max-width: 1000px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.preview-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.8;
}

.processing-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.processing-panel {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 40px; /* Pill shape */
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.processing-panel-header {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px 40px 0 0; /* Pill shape top */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.panel-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.processing-image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border-radius: 0 0 40px 40px; /* Pill shape bottom */
}

.processing-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity var(--transition-normal);
}

/* ===== Skeleton Loading Styles ===== */
.processing-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 60px; /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    overflow: hidden;
}

.processing-skeleton.active {
    opacity: 1;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

.skeleton-content {
    text-align: center;
    color: var(--text-white);
    z-index: 1;
    position: relative;
}

.skeleton-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.skeleton-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.skeleton-progress {
    width: 200px;
    margin: 0 auto;
}

.skeleton-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* Pill shape */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skeleton-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.8) 0%, 
        rgba(0, 200, 255, 0.9) 50%, 
        rgba(0, 255, 255, 0.8) 100%);
    width: 0%;
    animation: progressFill 3s ease-in-out infinite;
    border-radius: 50px; /* Pill shape */
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== Processing Arrow ===== */
.processing-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.arrow-icon {
    font-size: 2rem;
    color: var(--accent-color);
    animation: bounce 2s infinite;
}

.arrow-line {
    width: 2px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.arrow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    animation: arrowFlow 2s ease-in-out infinite;
}

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

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: dotPulse 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.5s;
}

.dot:nth-child(3) {
    animation-delay: 1s;
}

/* ===== Skeleton Animations ===== */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes arrowFlow {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===== Responsive Design for Processing Preview ===== */
@media (max-width: 768px) {
    .processing-comparison {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .processing-arrow {
        transform: rotate(90deg);
        margin: var(--spacing-md) 0;
    }
    
    .arrow-line {
        width: 40px;
        height: 2px;
    }
    
    .processing-panel-header {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    .skeleton-progress {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .processing-preview {
        padding: var(--spacing-md);
    }
    
    .preview-title {
        font-size: 1.25rem;
    }
    
    .skeleton-icon {
        font-size: 2rem;
    }
    
    .skeleton-text {
        font-size: 0.875rem;
    }
    
    .skeleton-progress {
        width: 120px;
    }
}

/* ===== Results Section ===== */
.results-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.results-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.results-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.results-actions .btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.results-actions .btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 60px; /* Pill shape */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: var(--spacing-lg) auto;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-comparison:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.07) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.15);
}

.image-panel {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 50px; /* Pill shape */
    overflow: hidden;
}

.image-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 50px 50px 0 0; /* Pill shape top */
}

.image-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.image-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 0 0 50px 50px; /* Pill shape bottom */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity var(--transition-normal);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    transition: opacity var(--transition-normal);
}

.image-placeholder {
    text-align: center;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

/* ===== Error Section ===== */
.error-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.error-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--danger-color);
    margin-bottom: var(--spacing-sm);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px; /* Pill shape */
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, 
        rgba(0, 150, 255, 0.2) 0%, 
        rgba(0, 120, 255, 0.15) 50%, 
        rgba(0, 150, 255, 0.18) 100%);
    color: var(--text-white);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(0, 150, 255, 0.2);
    border-color: rgba(0, 150, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(0, 150, 255, 0.25) 0%, 
        rgba(0, 120, 255, 0.2) 50%, 
        rgba(0, 150, 255, 0.23) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 30px rgba(0, 150, 255, 0.3);
    border-color: rgba(0, 150, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.06) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-icon {
    font-size: 1rem;
}

/* ===== Footer ===== */
.app-footer {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px 24px 0 0;
    padding: var(--spacing-lg) 0;
    margin: var(--spacing-lg) var(--spacing-lg) 0 var(--spacing-lg);
    position: relative;
    z-index: 10;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 -4px 16px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

.loading-text {
    color: var(--text-secondary);
    font-weight: 500;
}

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

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

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

.pulse {
    animation: pulse 2s infinite;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-md);
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .image-comparison {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        justify-content: center;
    }
    
    .status-container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .upload-zone {
        padding: var(--spacing-lg);
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-sm);
    }
    
    .header-content {
        padding: 0 var(--spacing-sm);
    }
    
    .app-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .title-icon {
        font-size: 1.5rem;
    }
    
    .upload-zone {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .status-details {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* ===== Dark Mode Support (Optional) ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1e293b;
        --bg-secondary: #0f172a;
        --bg-tertiary: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-light: #64748b;
        --border-color: #334155;
        --border-light: #475569;
    }
    
    .upload-zone {
        background: var(--bg-primary);
    }
    
    .upload-zone:hover {
        background: var(--bg-tertiary);
    }
}

/* ===== FUTURISTIC LANDING SLIDESHOW ===== */
.landing-slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5vh 0;
    z-index: 4;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.landing-header {
    text-align: center;
    color: white;
    z-index: 15;
}

.landing-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 170px rgb(108, 228, 252);
    letter-spacing: -0.02em;
}

.title-glow {
    background: linear-gradient(90deg, 
        #d35806 20%, 
        #ffffff 31%, 
        #0843e7 115%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.title-accent {
    background: linear-gradient(90deg, 
    #0843e7 0%,
    #0bc72a 55%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@keyframes titleGlow {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.3) saturate(1.4); }
}

.landing-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollPulse 2s ease-in-out infinite;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.scroll-arrow {
    font-size: 2rem;
    color: #40e0ff;
    text-shadow: 0 0 20px rgba(64, 224, 255, 0.6);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Film Strip Container */
.film-strip-container {
    position: absolute;
    top: 2.5vh;
    left: 0;
    right: 0;
    bottom: 2.5vh;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    z-index: 5;
    perspective: 1200px;
}

.film-row {
    height: 27vh;
    overflow: visible;
    position: relative;
    background: transparent;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    margin: -2vh 0;
}

/* 3D Layering Effect with organic positioning */
.film-row:nth-child(1) {
    z-index: 1;
    transform: translateZ(-20px) translateY(-8px);
    opacity: 0.85;
}

.film-row:nth-child(2) {
    z-index: 3;
    transform: translateZ(30px) translateY(5px);
    filter: brightness(1.15);
}

.film-row:nth-child(3) {
    z-index: 2;
    transform: translateZ(10px) translateY(-5px);
    opacity: 0.9;
}

.film-row:nth-child(4) {
    z-index: 4;
    transform: translateZ(40px) translateY(15px);
    filter: brightness(1.2);
}

.film-row::before {
    display: none;
}

.film-strip {
    display: flex;
    height: 100%;
    width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Varied animation directions and speeds */
.film-row:nth-child(1) .film-strip {
    animation-name: slideLeftToRight;
    animation-duration: 80s;
}

.film-row:nth-child(2) .film-strip {
    animation-name: slideRightToLeft;
    animation-duration: 60s;
}

.film-row:nth-child(3) .film-strip {
    animation-name: slideLeftToRight;
    animation-duration: 70s;
}

.film-row:nth-child(4) .film-strip {
    animation-name: slideRightToLeft;
    animation-duration: 90s;
}

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

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

/* Image Pair Styling - Reduced by 10% */
.image-pair {
    display: flex;
    height: 100%;
    margin-right: 2rem;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 0px rgba(64, 224, 255, 0),
        0 0 0px rgba(255, 255, 255, 0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    cursor: pointer;
    min-width: 360px;
}

/* Enhanced shadows for depth layers - no glow by default */
.film-row:nth-child(1) .image-pair {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 0px rgba(64, 224, 255, 0),
        0 0 0px rgba(255, 255, 255, 0);
}

.film-row:nth-child(2) .image-pair {
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.8),
        0 0 0px rgba(64, 224, 255, 0),
        0 0 0px rgba(255, 255, 255, 0);
}

.film-row:nth-child(3) .image-pair {
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.6),
        0 0 0px rgba(64, 224, 255, 0),
        0 0 0px rgba(255, 255, 255, 0);
}

.film-row:nth-child(4) .image-pair {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 0px rgba(64, 224, 255, 0),
        0 0 0px rgba(255, 255, 255, 0);
}

/* Glow effects only on hover */
.image-pair:hover {
    transform: scale(1.03) translateZ(10px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(64, 224, 255, 0.4),
        0 0 50px rgba(255, 255, 255, 0.15);
    z-index: 10;
    filter: brightness(1.08) contrast(1.03);
}

/* Enhanced hover for forward rows */
.film-row:nth-child(1) .image-pair:hover {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(64, 224, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.film-row:nth-child(2) .image-pair:hover {
    transform: scale(1.05) translateZ(15px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(64, 224, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.2);
    z-index: 15;
    filter: brightness(1.12) contrast(1.05);
}

.film-row:nth-child(3) .image-pair:hover {
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(64, 224, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.12);
}

.film-row:nth-child(4) .image-pair:hover {
    transform: scale(1.05) translateZ(15px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(64, 224, 255, 0.6),
        0 0 70px rgba(255, 255, 255, 0.25);
    z-index: 15;
    filter: brightness(1.12) contrast(1.05);
}

.image-pair::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 30%, 
        transparent 70%,
        rgba(64, 224, 255, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-pair:hover::before {
    opacity: 0.7;
}

.original-img, .result-img {
    height: 100%;
    width: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    min-width: 180px;
}

.original-img {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.result-img {
    filter: contrast(1.1) brightness(1.05);
}

/* Add floating animation to rows with overlapping motion */
.film-row:nth-child(1) {
    animation: float1 8s ease-in-out infinite;
}

.film-row:nth-child(2) {
    animation: float2 6s ease-in-out infinite;
}

.film-row:nth-child(3) {
    animation: float3 7s ease-in-out infinite;
}

.film-row:nth-child(4) {
    animation: float4 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateZ(-20px) translateY(-8px) rotateX(0deg); }
    50% { transform: translateZ(-15px) translateY(-12px) rotateX(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateZ(30px) translateY(5px) rotateX(0deg); }
    50% { transform: translateZ(35px) translateY(0px) rotateX(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateZ(10px) translateY(-5px) rotateX(0deg); }
    50% { transform: translateZ(15px) translateY(-10px) rotateX(0.5deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateZ(40px) translateY(15px) rotateX(0deg); }
    50% { transform: translateZ(45px) translateY(10px) rotateX(-0.5deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }
    
    .landing-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.4rem);
    }
    
    .film-row {
        height: 22.5vh;
        margin: -1vh 0;
    }
    
    .image-pair {
        margin-right: 1.5rem;
        min-width: 270px;
    }
    
    .original-img, .result-img {
        min-width: 135px;
    }
    
    .film-row:nth-child(1) .film-strip {
        animation-duration: 60s;
    }
    
    .film-row:nth-child(2) .film-strip {
        animation-duration: 45s;
    }
    
    .film-row:nth-child(3) .film-strip {
        animation-duration: 50s;
    }
    
    .film-row:nth-child(4) .film-strip {
        animation-duration: 65s;
    }
    
    .image-pair:hover {
        transform: scale(1.02) translateZ(8px);
    }
    
    .film-row:nth-child(2) .image-pair:hover,
    .film-row:nth-child(4) .image-pair:hover {
        transform: scale(1.03) translateZ(12px);
    }
}

@media (max-width: 480px) {
    .film-row {
        height: 19.8vh;
        margin: -0.5vh 0;
    }
    
    .image-pair {
        margin-right: 1rem;
        min-width: 225px;
    }
    
    .original-img, .result-img {
        min-width: 112.5px;
    }
    
    .film-row:nth-child(1) .film-strip {
        animation-duration: 45s;
    }
    
    .film-row:nth-child(2) .film-strip {
        animation-duration: 35s;
    }
    
    .film-row:nth-child(3) .film-strip {
        animation-duration: 40s;
    }
    
    .film-row:nth-child(4) .film-strip {
        animation-duration: 50s;
    }
    
    .image-pair:hover {
        transform: scale(1.01) translateZ(6px);
    }
    
    .film-row:nth-child(2) .image-pair:hover,
    .film-row:nth-child(4) .image-pair:hover {
        transform: scale(1.02) translateZ(10px);
    }
}

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

/* App Container Positioning */
.app-container {
    position: relative;
    z-index: 5;
    background: transparent;
    min-height: 100vh;
    margin-top: 0;
}

/* Enhanced scroll transition */
.app-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: transparent;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.upload-content {
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.upload-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.upload-formats {
    color: var(--text-light);
    font-size: 0.875rem;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ===== Image Preview Section ===== */
.preview-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.preview-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 60px; /* Pill shape */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: var(--spacing-lg) auto;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-container:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.07) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.15);
}

.preview-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    color: var(--text-white);
    padding: var(--spacing-xl);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px 60px 0 0; /* Pill shape top */
}

.preview-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.preview-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.preview-content {
    padding: var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.preview-image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 40px; /* Pill shape */
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity var(--transition-normal);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    transition: opacity var(--transition-normal);
}

.preview-placeholder {
    text-align: center;
    color: var(--text-light);
}

.preview-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.preview-details {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 30px; /* Pill shape */
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.preview-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-md);
    grid-column: 1 / -1;
}

.preview-actions .btn {
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-actions .btn-primary {
    background: linear-gradient(135deg, 
        rgba(0, 255, 128, 0.2) 0%, 
        rgba(0, 200, 100, 0.15) 50%, 
        rgba(0, 255, 128, 0.18) 100%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 128, 0.2);
    border-color: rgba(0, 255, 128, 0.3);
}

.preview-actions .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(0, 255, 128, 0.25) 0%, 
        rgba(0, 200, 100, 0.2) 50%, 
        rgba(0, 255, 128, 0.23) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 30px rgba(0, 255, 128, 0.3);
    border-color: rgba(0, 255, 128, 0.4);
}

.preview-actions .btn-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.06) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.preview-actions .btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ===== Preview Responsive Design ===== */
@media (max-width: 768px) {
    .preview-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .preview-image-container {
        aspect-ratio: 4/3;
    }
    
    .preview-actions {
        flex-direction: row;
    }
    
    .preview-actions .btn {
        flex: 1;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .preview-header {
        padding: var(--spacing-lg);
    }
    
    .preview-title {
        font-size: 1.5rem;
    }
    
    .preview-content {
        padding: var(--spacing-lg);
    }
    
    .preview-details {
        padding: var(--spacing-md);
    }
    
    .detail-item {
        padding: var(--spacing-xs) 0;
    }
    
    .detail-label,
    .detail-value {
        font-size: 0.8rem;
    }
    
    .preview-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
} 