:root {
    --bg-deep: #0a0a12;
    --bg-card: rgba(18, 18, 32, 0.75);
    --bg-sidebar: rgba(12, 12, 24, 0.92);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f0;
    --text-muted: #8888a8;
    --accent-1: #8b5cf6;
    --accent-2: #06b6d4;
    --accent-3: #ec4899;
    --accent-4: #f59e0b;
    --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #ec4899 100%);
    --gradient-card-1: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(6,182,212,0.1));
    --gradient-card-2: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(139,92,246,0.1));
    --gradient-card-3: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(16,185,129,0.1));
    --gradient-card-4: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(236,72,153,0.1));
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
    --radius: 14px;
    --sidebar-w: 260px;
    --font: 'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

/* Background effects */
.bg-mesh {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(139,92,246,0.18), transparent),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(6,182,212,0.12), transparent),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(236,72,153,0.06), transparent);
    pointer-events: none;
    z-index: 0;
}

.bg-orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

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

.orb-1 { width: 400px; height: 400px; background: rgba(139,92,246,0.35); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: rgba(6,182,212,0.3); bottom: 10%; right: -50px; animation-delay: -4s; }
.orb-3 { width: 250px; height: 250px; background: rgba(236,72,153,0.25); top: 40%; left: 30%; animation-delay: -8s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.4); }
    50% { box-shadow: 0 0 35px rgba(6,182,212,0.5); }
}

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

.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
.animate-stagger { animation: fadeUp 0.5s ease forwards; animation-delay: calc(var(--i, 0) * 0.08s); opacity: 0; animation-fill-mode: forwards; }

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-glow);
}

.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-icon {
    display: inline-flex;
    width: 56px; height: 56px;
    align-items: center; justify-content: center;
    font-size: 1.8rem;
    background: var(--gradient-main);
    border-radius: 16px;
    margin-bottom: 1rem;
    animation: pulse-glow 3s ease infinite;
}
.login-logo h1 { font-size: 1.5rem; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.login-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

.login-form .form-group { margin-bottom: 1.25rem; }
.login-form label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.login-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}

/* Admin layout */
.admin-body { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.sidebar-brand .logo-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-main);
    border-radius: 12px;
    font-size: 1.2rem;
}
.sidebar-brand strong { display: block; font-size: 1.1rem; }
.sidebar-brand small { color: var(--text-muted); font-size: 0.75rem; }

.sidebar-nav { flex: 1; padding: 1rem 0.75rem; overflow-y: auto; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    position: relative;
    transition: all 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(6,182,212,0.15));
    border: 1px solid rgba(139,92,246,0.3);
}
.nav-icon { font-size: 1.1rem; width: 1.5rem; text-align: center; }
.nav-glow {
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--gradient-main);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer { padding: 1rem; border-top: 1px solid var(--border); }
.user-chip {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem; margin-bottom: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    font-size: 0.8rem;
}
.user-chip .avatar {
    width: 32px; height: 32px;
    background: var(--gradient-main);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.user-chip small { display: block; color: var(--text-muted); font-size: 0.7rem; }
.user-chip span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.logout-link { color: #f87171 !important; }
.logout-link:hover { background: rgba(248,113,113,0.1) !important; }

.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10,10,18,0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.sidebar-toggle {
    display: none;
    background: none; border: none;
    color: var(--text); font-size: 1.4rem;
    cursor: pointer;
}
.page-title { font-size: 1.4rem; font-weight: 600; flex: 1; }
.topbar-time { color: var(--text-muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.content-area { padding: 1.5rem 2rem 3rem; }

/* Cards & stats */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.stat-card.gradient-1 { background: var(--gradient-card-1); }
.stat-card.gradient-2 { background: var(--gradient-card-2); }
.stat-card.gradient-3 { background: var(--gradient-card-3); }
.stat-card.gradient-4 { background: var(--gradient-card-4); }

.stat-icon { font-size: 2rem; opacity: 0.9; }
.stat-value { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

.mini-stats { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.chart-card canvas { max-height: 260px; }

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Forms & buttons */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea,
.search-bar input, .inline-form input, .run-form input, .run-form select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.search-bar input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.85rem; }

.form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-row .input-lg { flex: 1; min-width: 200px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #fff;
}
.btn-primary {
    background: var(--gradient-main);
    background-size: 200% 200%;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-glow { box-shadow: 0 4px 20px rgba(139,92,246,0.35); }
.btn-glow:hover { box-shadow: 0 6px 28px rgba(6,182,212,0.4); }
.btn-secondary { background: rgba(255,255,255,0.08); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-danger { background: rgba(239,68,68,0.2); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.35); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

.inline-form .form-row { align-items: stretch; }
.inline-action { display: inline; }
.actions-cell { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.data-table .empty { text-align: center; color: var(--text-muted); padding: 2rem; }
.email-cell { color: var(--accent-2); font-family: monospace; font-size: 0.85rem; }
.truncate { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Badges & status */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-cyan { background: rgba(6,182,212,0.2); color: #67e8f9; }
.badge-purple { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.count-badge {
    background: rgba(139,92,246,0.25);
    color: #c4b5fd;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: capitalize;
    font-weight: 500;
}
.status-pending { background: rgba(245,158,11,0.2); color: #fcd34d; }
.status-running { background: rgba(6,182,212,0.2); color: #67e8f9; }
.status-completed { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.status-failed { background: rgba(239,68,68,0.2); color: #fca5a5; }

.spinner {
    display: inline-block;
    width: 10px; height: 10px;
    border: 2px solid rgba(103,232,249,0.3);
    border-top-color: #67e8f9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Alerts & misc */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    animation: fadeUp 0.3s ease;
}
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

.text-muted { color: var(--text-muted); }
.hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.5rem; }
.page-header-row { margin-bottom: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.search-bar { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 180px; }

.pagination { display: flex; gap: 0.35rem; margin-top: 1rem; flex-wrap: wrap; }
.pagination a, .pagination .page-current {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
}
.pagination a { color: var(--text-muted); background: rgba(0,0,0,0.2); border: 1px solid var(--border); }
.pagination a:hover { color: var(--text); border-color: var(--accent-1); }
.pagination .page-current { background: var(--gradient-main); color: #fff; }

.code-preview {
    background: rgba(0,0,0,0.4);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    overflow-x: auto;
    color: var(--accent-2);
    border: 1px solid var(--border);
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 200;
    animation: fadeUp 0.3s ease;
}
.toast.hidden { display: none; }
.toast.success { border-color: rgba(16,185,129,0.5); }
.toast.error { border-color: rgba(239,68,68,0.5); }

.error-hint { cursor: help; color: #f87171; }

.pulse { animation: pulse-glow 3s ease infinite; }

.hidden { display: none !important; }

.run-progress-card { border-color: rgba(6,182,212,0.3); }
.worker-live-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; }
.dashboard-live-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: live-pulse 2s ease infinite;
}
.live-dot.live-error { background: #ef4444; animation: none; }
@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.live-updated { margin-left: auto; font-size: 0.8rem; }
.stat-pulse { animation: stat-pop 0.4s ease; }
.stat-flash { animation: stat-flash 0.8s ease; }
@keyframes stat-pop {
    50% { transform: scale(1.08); color: var(--accent-2); }
}
@keyframes stat-flash {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 25px rgba(6,182,212,0.4); }
}

.run-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.btn-danger.btn-glow { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); }
.progress-bar-wrap {
    height: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0 0.75rem;
}
.progress-bar {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 8px;
    transition: width 0.4s ease;
}
.progress-text { color: var(--text-muted); font-size: 0.9rem; }

textarea.input-lg {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
}
textarea.input-lg:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}
.smart-stats-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.keyword-preview {
    margin: 0.75rem 0;
    padding: 0.85rem 1rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
}
.keyword-preview strong { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
.preview-list { list-style: none; }
.preview-list li { padding: 0.2rem 0; }
.preview-new { color: #6ee7b7; }
.preview-skip { color: #fcd34d; }
.preview-dup { color: #c4b5fd; }
.preview-queue { color: #67e8f9; }
.preview-retry { color: #fbbf24; }

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}
.checkbox-label input { width: auto; accent-color: var(--accent-1); }

.d-block { display: block; margin-top: 0.2rem; }
.email-count {
    font-weight: 600;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}
.ai-section-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ai-toggles { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.ai-test-result {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}
.ai-test-result.success { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.ai-test-result.error { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

.ai-card {
    border-color: rgba(139,92,246,0.35);
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(6,182,212,0.06));
}
.ai-card-disabled { opacity: 0.85; }
.ai-suggest-row { align-items: stretch; }
.ai-suggest-row .input-lg { flex: 1; min-width: 200px; }
.ai-suggest-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--accent-2);
}
.ai-suggest-status.ai-error {
    color: #fca5a5;
    background: rgba(239,68,68,0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}
.ai-insight {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.08));
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
}
.ai-score-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.ai-score-high { background: rgba(16,185,129,0.25); color: #6ee7b7; }
.ai-score-mid { background: rgba(245,158,11,0.25); color: #fcd34d; }
.ai-score-low { background: rgba(239,68,68,0.2); color: #fca5a5; }

.card code {
    background: rgba(0,0,0,0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-2);
}

.card-import {
    margin-bottom: 1.25rem;
}
.card-title-sm {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}
.import-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}
.import-form input[type="file"] {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .form-grid { grid-template-columns: 1fr; }
    .content-area { padding: 1rem; }
}
