/* ==========================================
   STEGANOCRYPT - PROTONVPN DARK THEME
   ========================================== */

:root {
    /* iOS Liquid Glass Color Palette - Dynamic (Default: Teal) */
    --theme-color-1: #13547a;
    --theme-color-2: #80d0c7;
    --bg-primary: linear-gradient(135deg, var(--theme-color-1) 0%, var(--theme-color-2) 100%);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-secondary: rgba(255, 255, 255, 0.08);
    --bg-tertiary: rgba(255, 255, 255, 0.12);
    --bg-card: rgba(255, 255, 255, 0.18);
    --bg-hover: rgba(255, 255, 255, 0.25);
    
    /* Glass Accent Colors */
    --accent-primary: rgba(139, 92, 246, 0.9);
    --accent-secondary: rgba(167, 139, 250, 0.9);
    --accent-hover: rgba(109, 40, 217, 0.9);
    --accent-light: rgba(139, 92, 246, 0.15);
    --accent-glow: rgba(139, 92, 246, 0.4);
    
    /* Status Colors with Glass Effect - Enhanced Readability */
    --success: #22c55e;
    --success-glass: rgba(34, 197, 94, 0.25);
    --warning: #fbbf24;
    --warning-glass: rgba(251, 191, 36, 0.25);
    --error: #f87171;
    --error-glass: rgba(248, 113, 113, 0.25);
    --info: #60a5fa;
    --info-glass: rgba(96, 165, 250, 0.25);
    
    /* Text Colors - Enhanced Visibility */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.95);
    --text-tertiary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.7);
    
    /* Text Shadows for Enhanced Readability */
    --text-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
    --text-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
    --text-shadow-lg: 0 3px 12px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
    
    /* Glass Border & Shadow */
    --border-color: rgba(255, 255, 255, 0.18);
    --border-glass: rgba(255, 255, 255, 0.25);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-inner: inset 0 4px 20px rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius - iOS Style */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glass Blur */
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
}

/* ==========================================
   MOBILE HEADER & HAMBURGER
   ========================================== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-lg) saturate(180%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 150;
    padding: 0 max(var(--spacing-md), env(safe-area-inset-left)) 0 max(var(--spacing-md), env(safe-area-inset-right));
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.hamburger-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: var(--text-shadow-md),
                 0 0 10px rgba(0, 200, 255, 0.4);
    margin: 0;
    letter-spacing: 0.5px;
}

.theme-picker-btn-mobile {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-picker-btn-mobile:active {
    transform: scale(0.95);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: all;
}

.mobile-overlay.active {
    opacity: 1;
}

/* ==========================================
   THEME PICKER
   ========================================== */

.theme-picker {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 200;
}

.theme-picker-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--blur-md) saturate(180%);
    -webkit-backdrop-filter: var(--blur-md) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 
                inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

.theme-picker-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3),
                0 0 30px var(--accent-glow),
                inset 0 2px 12px rgba(255, 255, 255, 0.2);
}

.theme-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.theme-picker-panel {
    position: fixed;
    top: calc(var(--spacing-lg) + 60px);
    right: var(--spacing-lg);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: var(--blur-lg) saturate(180%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3),
                inset 0 2px 12px rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 250;
}

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

.theme-picker-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.theme-picker-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.theme-color-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                inset 0 2px 6px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.theme-color-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.theme-color-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 255, 255, 0.3),
                inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.theme-color-btn.active {
    border-color: #ffffff;
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(255, 255, 255, 0.5),
                inset 0 2px 12px rgba(255, 255, 255, 0.3);
}

.theme-color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

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

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--blur-lg) saturate(200%) brightness(110%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(200%) brightness(110%);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15), 
                inset -1px 0 0 rgba(255, 255, 255, 0.1),
                inset 0 0 60px rgba(255, 255, 255, 0.03);
    overflow-x: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.12) 0%, 
                transparent 40%,
                rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
                transparent 0%,
                rgba(255, 255, 255, 0.3) 50%,
                transparent 100%);
    pointer-events: none;
}

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: var(--spacing-xl);
    background: transparent;
}

/* ==========================================
   SIDEBAR COMPONENTS
   ========================================== */

.logo {
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
    min-height: 70px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, 
                rgba(10, 15, 20, 0.95) 0%, 
                rgba(5, 8, 12, 0.98) 100%);
    border: 2px solid rgba(0, 200, 255, 0.6);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.4),
                0 4px 15px rgba(0, 0, 0, 0.7),
                inset 0 2px 5px rgba(0, 200, 255, 0.15),
                inset 0 -2px 5px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--blur-sm);
    flex-shrink: 0;
    position: relative;
    animation: hackerPulse 2s ease-in-out infinite;
}

.logo-img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
    transition: all var(--transition-normal);
}

.logo-icon:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.3) contrast(1.3) saturate(1.5);
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 200, 255, 0.05) 2px,
        rgba(0, 200, 255, 0.05) 4px
    );
    pointer-events: none;
    border-radius: var(--radius-md);
    z-index: 1;
}

@keyframes hackerPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(0, 200, 255, 0.4),
                    0 4px 15px rgba(0, 0, 0, 0.7),
                    inset 0 2px 5px rgba(0, 200, 255, 0.15);
        border-color: rgba(0, 200, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 220, 255, 0.6),
                    0 4px 15px rgba(0, 0, 0, 0.7),
                    inset 0 2px 5px rgba(0, 220, 255, 0.25);
        border-color: rgba(0, 220, 255, 0.8);
    }
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: var(--text-shadow-md), 
                 0 0 10px rgba(0, 200, 255, 0.4);
    white-space: nowrap;
    overflow: visible;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.nav-menu {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    position: relative;
    z-index: 1;
    text-shadow: var(--text-shadow-sm);
}

.nav-item:hover {
    background: var(--bg-hover);
    backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    backdrop-filter: var(--blur-sm) saturate(180%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--accent-glow), var(--shadow-inner);
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
    backdrop-filter: var(--blur-sm);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.status-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-shadow: var(--text-shadow-sm);
}

.version {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-align: center;
    text-shadow: var(--text-shadow-sm);
}

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

.page {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.page.active {
    display: block;
}

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

.page-header {
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    text-shadow: var(--text-shadow-lg);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    text-shadow: var(--text-shadow-sm);
}

/* ==========================================
   PAGE LAYOUT (TWO COLUMN)
   ========================================== */

.page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
    align-items: start;
}

/* ==========================================
   CONTENT GRID
   ========================================== */

.content-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 100%;
}

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

.card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: var(--blur-md) saturate(180%);
    -webkit-backdrop-filter: var(--blur-md) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md), var(--shadow-inner);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0.5;
}

.card:hover {
    border-color: var(--border-glass);
    box-shadow: var(--shadow-lg), var(--shadow-glow), var(--shadow-inner);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-primary);
    text-shadow: var(--text-shadow-sm);
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    backdrop-filter: var(--blur-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--accent-glow), var(--shadow-inner);
}

.card-body {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* ==========================================
   UPLOAD ZONES
   ========================================== */

.upload-zone {
    border: 2px dashed var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-tertiary);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    position: relative;
}

.upload-zone:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
    backdrop-filter: var(--blur-md);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: scale(1.01);
}

.upload-zone.dragover {
    border-color: var(--accent-secondary);
    background: var(--accent-light);
    backdrop-filter: var(--blur-lg) saturate(200%);
    box-shadow: 0 8px 32px var(--accent-glow), var(--shadow-inner);
    transform: scale(1.02);
}

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

.upload-text {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-shadow: var(--text-shadow-sm);
}

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

/* ==========================================
   IMAGE PREVIEW
   ========================================== */

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md), var(--shadow-inner);
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-glass);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(139, 92, 246, 0.2);
}

.image-info {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.btn-remove {
    background: var(--error);
    color: var(--text-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    text-shadow: var(--text-shadow-sm);
}

.btn-remove:hover {
    background: #DC2626;
    transform: scale(1.05);
}

/* ==========================================
   FORM INPUTS
   ========================================== */

.input-container {
    margin-bottom: var(--spacing-md);
}

.input-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    text-shadow: var(--text-shadow-sm);
}

.text-input,
.text-input:focus {
    width: 100%;
    background: var(--bg-tertiary);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    outline: none;
}

.text-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
    backdrop-filter: var(--blur-md) saturate(150%);
    box-shadow: 0 0 0 3px var(--accent-light), 0 4px 12px var(--accent-glow);
}

.text-input::placeholder {
    color: var(--text-muted);
}

textarea.text-input {
    resize: vertical;
    min-height: 120px;
}

.input-hint {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: var(--spacing-xs);
}

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

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.radio-option {
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm), var(--shadow-inner);
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: var(--accent-primary);
    background: var(--accent-light);
    backdrop-filter: var(--blur-md) saturate(150%);
    box-shadow: 0 4px 16px var(--accent-glow), var(--shadow-inner);
}

.radio-option:hover .radio-label {
    border-color: var(--accent-secondary);
    background: var(--bg-hover);
    transform: translateX(4px);
}

.radio-icon {
    font-size: 1.5rem;
}

/* ==========================================
   FILE SELECT
   ========================================== */

.file-select-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-tertiary);
}

.file-select-zone:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

.file-info {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

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

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    backdrop-filter: var(--blur-sm) saturate(180%);
    -webkit-backdrop-filter: var(--blur-sm) saturate(180%);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal);
    box-shadow: 0 8px 24px var(--accent-glow), var(--shadow-inner);
    position: relative;
    overflow: hidden;
    text-shadow: var(--text-shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--accent-glow), var(--shadow-inner);
    backdrop-filter: var(--blur-md) saturate(200%);
}

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

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

.btn-secondary {
    background: var(--bg-tertiary);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: var(--spacing-md);
    width: 100%;
    box-shadow: var(--shadow-sm), var(--shadow-inner);
    text-shadow: var(--text-shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    backdrop-filter: var(--blur-md);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px var(--accent-glow), var(--shadow-inner);
    transform: translateY(-1px);
}

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

/* ==========================================
   PROGRESS BAR
   ========================================== */

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--spacing-md) 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
        margin-left: 0%;
    }
    50% {
        width: 50%;
        margin-left: 25%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

.action-hint {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: var(--spacing-md);
    text-shadow: var(--text-shadow-sm);
}

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

.results-card {
    border-color: var(--success);
    animation: slideDown var(--transition-normal);
}

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

.file-result {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.file-result-icon {
    font-size: 3rem;
}

.file-result-name {
    font-weight: 600;
    color: var(--text-primary);
}

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

/* ==========================================
   INFO PANEL (RIGHT SIDE)
   ========================================== */

.info-panel {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: var(--blur-md) saturate(180%);
    -webkit-backdrop-filter: var(--blur-md) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: var(--spacing-xl);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    box-shadow: var(--shadow-lg), var(--shadow-inner);
}

.info-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.info-panel-header {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    backdrop-filter: var(--blur-sm) saturate(180%);
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px var(--accent-glow), var(--shadow-inner);
}

.info-panel-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    text-shadow: var(--text-shadow-md);
}

.info-section {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

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

.info-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    text-shadow: var(--text-shadow-sm);
}

.info-box {
    background: var(--bg-tertiary);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.info-placeholder {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: var(--text-shadow-sm);
}

.info-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
}

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

.info-details p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.6;
}

.info-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.info-list,
.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
}

.info-list li {
    color: var(--text-secondary);
    padding-left: var(--spacing-md);
    position: relative;
    font-size: 0.85rem;
    text-shadow: var(--text-shadow-sm);
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.tips-list li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tips-list li strong {
    color: var(--text-primary);
    text-shadow: var(--text-shadow-sm);
}

.status-ready {
    color: var(--success);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: var(--text-shadow-md), 0 0 20px rgba(34, 197, 94, 0.5);
}

.tips-box {
    background: linear-gradient(135deg, var(--accent-light), rgba(139, 92, 246, 0.08));
    backdrop-filter: var(--blur-sm) saturate(150%);
    border: 1px solid var(--accent-light);
}

/* ==========================================
   ABOUT PAGE
   ========================================== */

.about-content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-shadow: var(--text-shadow-sm);
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--text-primary);
    text-shadow: var(--text-shadow-sm);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: var(--bg-hover);
    transform: translateY(-4px);
}

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

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    text-shadow: var(--text-shadow-sm);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-shadow: var(--text-shadow-sm);
}

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

.tech-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

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

.tech-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.best-practices-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.best-practices-list li {
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.about-footer-card {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
}

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

.developer-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.developer-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.developer-role {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.version-info {
    font-size: 0.875rem;
    opacity: 0.8;
}

.linkedin-container {
    margin: var(--spacing-lg) 0;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.linkedin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.linkedin-icon {
    font-size: 1.25rem;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

#toast-container {
    position: fixed;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    background: var(--bg-card);
    backdrop-filter: var(--blur-lg) saturate(180%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    min-width: 300px;
    box-shadow: var(--shadow-lg), var(--shadow-inner);
    animation: slideInRight var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.toast::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.toast-success {
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow-lg), 0 0 20px var(--success-glass), var(--shadow-inner);
}

.toast-error {
    border-left: 4px solid var(--error);
    box-shadow: var(--shadow-lg), 0 0 20px var(--error-glass), var(--shadow-inner);
}

.toast-info {
    border-left: 4px solid var(--info);
    box-shadow: var(--shadow-lg), 0 0 20px var(--info-glass), var(--shadow-inner);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
}

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

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .info-panel {
        position: relative;
        top: 0;
        max-height: none;
    }
}

@media (max-width: 768px) {
    /* Show mobile header */
    .mobile-header {
        display: flex;
    }
    
    /* Hide desktop theme picker */
    .theme-picker {
        display: none;
    }
    
    /* Mobile theme picker panel */
    .theme-picker-panel {
        position: fixed !important;
        top: 70px !important;
        right: 10px !important;
        left: auto !important;
        z-index: 250 !important;
        max-width: calc(100vw - 20px);
    }
    
    /* Sidebar becomes slide-out menu */
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 100;
        transition: left var(--transition-normal);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0;
        padding: calc(60px + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
        min-height: 100vh;
    }
    
    /* Page layout stacks vertically */
    .page-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Info panel mobile optimizations */
    .info-panel {
        position: relative;
        top: 0;
        max-height: none;
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Card optimizations */
    .card {
        border-radius: var(--radius-md);
    }
    
    /* Content grid spacing */
    .content-grid {
        gap: var(--spacing-md);
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Tech rows */
    .tech-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    /* Form inputs */
    .text-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons - Larger touch targets */
    .btn-primary,
    .btn-secondary {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        min-height: 48px; /* iOS recommended touch target */
    }
    
    /* Nav items */
    .nav-item {
        min-height: 48px;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    /* Upload zones */
    .upload-zone {
        padding: var(--spacing-lg);
    }
    
    /* Image preview */
    .image-preview img {
        max-height: 200px;
    }
    
    /* Radio options */
    .radio-group {
        flex-direction: column;
    }
    
    /* Page titles */
    .page-title {
        font-size: 1.5rem;
    }
    
    /* About content */
    .about-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .main-content {
        padding: calc(60px + var(--spacing-sm)) var(--spacing-sm) var(--spacing-sm);
    }
    
    /* Smaller cards */
    .card-body {
        padding: var(--spacing-md);
    }
    
    .card-header {
        padding: var(--spacing-md);
    }
    
    /* Smaller text */
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-subtitle {
        font-size: 0.875rem;
    }
    
    /* Theme picker panel adjustments */
    .theme-picker-panel {
        min-width: 180px !important;
        right: 5px !important;
        left: auto !important;
        padding: var(--spacing-md);
    }
    
    .theme-picker-title {
        font-size: 0.8rem;
    }
    
    .theme-colors {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .theme-color-btn {
        width: 55px;
        height: 55px;
    }
    
    /* Info panel sections */
    .info-section {
        padding: var(--spacing-md);
    }
    
    /* Upload text */
    .upload-icon {
        font-size: 2rem;
    }
    
    /* Mobile logo in header */
    .mobile-logo {
        font-size: 1rem;
    }
    
    /* Hamburger button */
    .hamburger-btn,
    .theme-picker-btn-mobile {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   SCROLLBAR STYLING (LIQUID GLASS)
   ========================================== */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    backdrop-filter: var(--blur-sm);
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm), inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 12px var(--accent-glow), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}
