/* ============================================
   AISAST - Modern Light Theme Design System
   A clean, professional light theme with 
   consistent styling across all pages
   ============================================ */

/* Google Fonts - Modern, Clean Typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* ---- Primary Colors ---- */
    --primary-50: #f0fdfa;
    --primary-100: #ccfbf1;
    --primary-200: #99f6e4;
    --primary-300: #5eead4;
    --primary-400: #2dd4bf;
    --primary-500: #14b8a6;
    --primary-600: #0d9488;
    --primary-700: #0f766e;
    --primary-800: #115e59;
    --primary-900: #134e4a;
    
    /* ---- Accent Colors (Orange/Amber) ---- */
    --accent-50: #fffbeb;
    --accent-100: #fef3c7;
    --accent-200: #fde68a;
    --accent-300: #fcd34d;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --accent-700: #b45309;
    --accent-800: #92400e;
    --accent-900: #78350f;
    
    /* ---- Neutral Colors ---- */
    --neutral-0: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* ---- Semantic Colors ---- */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-bg: rgba(16, 185, 129, 0.08);
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-bg: rgba(245, 158, 11, 0.08);
    
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-bg: rgba(239, 68, 68, 0.08);
    
    --info: #3b82f6;
    --info-light: #dbeafe;
    --info-bg: rgba(59, 130, 246, 0.08);
    
    /* ---- Theme Variables ---- */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-focus: var(--primary-400);
    
    --accent-primary: var(--primary-600);
    --accent-secondary: var(--primary-700);
    --accent-hover: var(--primary-700);
    --accent-gradient: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    
    /* ---- Typography ---- */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --font-xs: 0.75rem;      /* 12px */
    --font-sm: 0.875rem;     /* 14px */
    --font-base: 1rem;       /* 16px */
    --font-md: 1.125rem;     /* 18px */
    --font-lg: 1.25rem;      /* 20px */
    --font-xl: 1.5rem;       /* 24px */
    --font-2xl: 1.875rem;    /* 30px */
    --font-3xl: 2.25rem;     /* 36px */
    --font-4xl: 3rem;        /* 48px */
    
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* ---- Spacing ---- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* ---- Border Radius ---- */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    
    /* ---- Shadows ---- */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-focus: 0 0 0 3px rgba(20, 184, 166, 0.15);
    
    /* ---- Transitions ---- */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 400ms ease;
}


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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(20, 184, 166, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 60%);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}


/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

h1 { font-size: var(--font-3xl); }
h2 { font-size: var(--font-2xl); }
h3 { font-size: var(--font-xl); }
h4 { font-size: var(--font-lg); }
h5 { font-size: var(--font-md); }
h6 { font-size: var(--font-base); }

p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

strong, b {
    font-weight: 600;
}

code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

code {
    background: var(--bg-tertiary);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--primary-700);
}

pre {
    background: var(--neutral-800);
    color: var(--neutral-100);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}


/* ============================================
   Layout & Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.page-container {
    min-height: 100vh;
    padding: var(--space-8) 0;
    position: relative;
    z-index: 1;
}


/* ============================================
   Navigation
   ============================================ */
.nav, nav.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
}

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

.nav-link {
    padding: var(--space-2) var(--space-4);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent-primary);
    background: var(--primary-50);
}


/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

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

/* Primary Button */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-sm), 0 2px 8px rgba(20, 184, 166, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 4px 12px rgba(20, 184, 166, 0.25);
    color: white;
}

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

/* Secondary Button */
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    color: white;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-base);
    border-radius: var(--radius-lg);
}

/* Full Width Button */
.w-full {
    width: 100%;
}


/* ============================================
   Forms & Inputs
   ============================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--font-base);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: var(--border-hover);
}

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-focus);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

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

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}


/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

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

.card-body {
    color: var(--text-secondary);
}


/* ============================================
   Alerts & Messages
   ============================================ */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-danger, .alert-error {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.alert-info {
    background: var(--info-bg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--info);
}


/* ============================================
   Badges & Tags
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-success {
    background: var(--success-light);
    color: #047857;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400e;
}

.badge-danger, .badge-critical {
    background: var(--danger-light);
    color: #b91c1c;
}

.badge-info {
    background: var(--info-light);
    color: #1d4ed8;
}

.badge-high {
    background: #ffedd5;
    color: #c2410c;
}

.badge-medium {
    background: #fef3c7;
    color: #92400e;
}

.badge-low {
    background: var(--success-light);
    color: #047857;
}

.badge-verified {
    background: var(--success-light);
    color: #047857;
}

.badge-cwe {
    background: var(--neutral-200);
    color: var(--neutral-700);
}


/* ============================================
   Status Badges
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.status-completed, .status-active {
    background: var(--success-light);
    color: #047857;
}

.status-processing, .status-running, .status-scanning {
    background: var(--info-light);
    color: #1d4ed8;
}

.status-queued, .status-pending, .status-uploaded {
    background: var(--warning-light);
    color: #92400e;
}

.status-failed, .status-blocked, .status-cancelled {
    background: var(--danger-light);
    color: #b91c1c;
}


/* ============================================
   Tables
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-sm);
}

th, td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    text-transform: uppercase;
    font-size: var(--font-xs);
    letter-spacing: 0.05em;
}

tbody tr {
    transition: background var(--transition-fast);
}

tbody tr:hover {
    background: var(--bg-tertiary);
}


/* ============================================
   Authentication Pages
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-6);
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-md);
}

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

.auth-subtitle {
    font-size: var(--font-base);
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
}

.auth-link {
    color: var(--accent-primary);
    font-weight: 500;
}


/* ============================================
   Dashboard Components
   ============================================ */
.dashboard-header {
    text-align: center;
    padding: var(--space-8) 0;
}

.welcome-text {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.dashboard-title {
    font-size: var(--font-3xl);
    font-weight: 800;
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.stat-card .stat-icon {
    font-size: 32px;
    margin-bottom: var(--space-3);
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: var(--font-3xl);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* Stat Value Colors */
.stat-value.critical { color: var(--danger); -webkit-text-fill-color: var(--danger); }
.stat-value.high { color: #ea580c; -webkit-text-fill-color: #ea580c; }
.stat-value.medium { color: var(--warning); -webkit-text-fill-color: var(--warning); }
.stat-value.low { color: var(--success); -webkit-text-fill-color: var(--success); }
.stat-value.verified { color: var(--info); -webkit-text-fill-color: var(--info); }

/* Scans List */
.scans-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.scan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

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

.scan-item:hover {
    background: var(--bg-tertiary);
}

.scan-info {
    flex: 1;
}

.scan-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.scan-meta {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

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

.scan-actions {
    display: flex;
    gap: var(--space-2);
}

.vuln-count {
    font-weight: 700;
}
.vuln-count.critical { color: var(--danger); }
.vuln-count.high { color: #ea580c; }
.vuln-count.medium { color: var(--warning); }
.vuln-count.low { color: var(--info); }

/* Empty State */
.empty-state {
    padding: var(--space-16) var(--space-10);
    text-align: center;
}

.empty-state-icon {
    font-size: 48px;
    opacity: 0.4;
    margin-bottom: var(--space-4);
}

.empty-state p {
    color: var(--text-muted);
}


/* ============================================
   Upload Components
   ============================================ */
.upload-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.upload-header h1 {
    font-size: var(--font-3xl);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
}

.upload-header p {
    color: var(--text-secondary);
    font-size: var(--font-md);
}

/* Tabs */
.tabs {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    justify-content: center;
}

.tab {
    padding: var(--space-4) var(--space-8);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: var(--font-base);
    cursor: pointer;
    transition: all var(--transition-base);
}

.tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-lg), 0 4px 16px rgba(20, 184, 166, 0.25);
}

/* Upload Card */
.upload-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
}

.upload-section {
    display: none;
}

.upload-section.active {
    display: block;
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-12);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.02), transparent);
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), rgba(20, 184, 166, 0.02));
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.drop-zone-icon {
    font-size: 64px;
    margin-bottom: var(--space-5);
}

.drop-zone-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.drop-zone-subtitle {
    color: var(--text-muted);
    font-size: var(--font-md);
}

/* File Info */
.file-info {
    display: none;
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
    align-items: center;
    gap: var(--space-3);
}

.file-info.visible {
    display: flex;
}

.file-info-icon {
    font-size: 24px;
}

.file-info-name {
    font-weight: 600;
    color: #047857;
}

.file-info-size {
    font-size: var(--font-sm);
    color: var(--text-muted);
}


/* ============================================
   Progress Page
   ============================================ */
.progress-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.progress-header h1 {
    font-size: var(--font-2xl);
    font-weight: 700;
}

.progress-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-6);
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.scanning-indicator {
    text-align: center;
    padding: var(--space-8) 0;
}

.progress-message {
    color: var(--text-secondary);
    font-size: var(--font-md);
    margin-bottom: var(--space-6);
}


/* ============================================
   Results Page
   ============================================ */
.header {
    background: var(--accent-gradient);
    color: white;
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-xl);
}

.header h1 {
    font-size: var(--font-3xl);
    color: white;
    margin-bottom: var(--space-3);
}

.header p {
    color: rgba(255, 255, 255, 0.9);
}

.download-btns {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.findings {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}

.finding {
    border-left: 4px solid var(--danger);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    background: var(--bg-tertiary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.finding.high { border-color: #ea580c; }
.finding.medium { border-color: var(--warning); }
.finding.low { border-color: var(--success); }


/* ============================================
   Pricing Cards
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-lg), 0 8px 24px rgba(20, 184, 166, 0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--accent-gradient);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.package-name {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.loc-amount {
    font-size: var(--font-3xl);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: var(--space-5) 0;
}

.price {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-5) 0;
}

.price-per-loc {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
}

.features {
    text-align: left;
    margin: var(--space-5) 0;
    list-style: none;
    padding: 0;
}

.features li {
    padding: var(--space-3) 0;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    border-bottom: 1px solid var(--border-color);
    padding-left: var(--space-6);
    position: relative;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.features li:last-child {
    border-bottom: none;
}


/* ============================================
   Admin Page
   ============================================ */
.admin-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.admin-header h1 {
    font-size: var(--font-3xl);
    font-weight: 800;
}

/* Tabs for Admin */
.tab-btn {
    padding: var(--space-3) var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.tab-content {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

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

/* Action Buttons */
.action-btn {
    padding: var(--space-2) var(--space-3);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-xs);
    margin: 2px;
    transition: all var(--transition-fast);
}

.btn-block { background: var(--danger); color: white; }
.btn-block:hover { background: #dc2626; }
.btn-unblock { background: var(--success); color: white; }
.btn-unblock:hover { background: #059669; }
.btn-view { background: var(--info); color: white; }
.btn-view:hover { background: #2563eb; }
.btn-reset { background: var(--warning); color: #1a1a1a; }
.btn-reset:hover { background: #d97706; }


/* ============================================
   Error Pages (404, 500)
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-6);
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.error-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-4);
}

.error-message {
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}


/* ============================================
   Miscellaneous Components
   ============================================ */

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
}

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

/* Back Link */
.back-link {
    margin-top: var(--space-6);
    text-align: center;
}

.back-link a {
    color: var(--text-muted);
    font-size: var(--font-sm);
    font-weight: 500;
}

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

/* Info Row */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    font-weight: 500;
    color: var(--text-muted);
}

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

/* Warning Box */
.warning-box {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    text-align: center;
    color: #92400e;
    font-size: var(--font-sm);
}

/* Error Message */
.error-message {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: var(--font-sm);
}

/* Success Message */
.success-message {
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #047857;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: var(--font-sm);
}

/* Free Badge (signup) */
.free-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    color: #047857;
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

/* Form Row */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.form-row a {
    color: var(--accent-primary);
    font-size: var(--font-sm);
    font-weight: 500;
}

/* Remember Me */
.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    cursor: pointer;
}


/* ============================================
   Pentest Options
   ============================================ */
.pentest-options {
    margin-top: var(--space-6);
    padding: var(--space-6);
    background: rgba(239, 68, 68, 0.04);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(239, 68, 68, 0.15);
    transition: all var(--transition-base);
}

.pentest-options:hover {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: var(--shadow-md);
}

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

.pentest-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.pentest-checkbox label {
    font-weight: 600;
    cursor: pointer;
}

.pentest-badge {
    background: var(--danger);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 700;
}

.pentest-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.pentest-url-field {
    display: none;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(239, 68, 68, 0.15);
}

.pentest-url-field.visible {
    display: block;
}

.pentest-url-hint {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.pentest-url-hint .optional {
    color: var(--warning);
    font-weight: 600;
}


/* ============================================
   Log Viewer
   ============================================ */
.log-container {
    background: var(--neutral-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-6);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--neutral-800);
    border-bottom: 1px solid var(--neutral-700);
}

.log-title {
    color: var(--neutral-300);
    font-size: var(--font-sm);
    font-weight: 600;
}

.log-viewer {
    height: 300px;
    overflow-y: auto;
    padding: var(--space-4);
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-xs);
    line-height: var(--leading-relaxed);
    color: var(--neutral-300);
}

.log-line {
    padding: 2px 0;
}

.log-line.error { color: #ef4444; }
.log-line.warning { color: #fbbf24; }
.log-line.success { color: #10b981; }
.log-line.info { color: #60a5fa; }
.log-line.step { color: #a78bfa; }


/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .nav {
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-links {
        gap: var(--space-1);
    }
    
    .nav-link {
        padding: var(--space-2);
        font-size: var(--font-xs);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab {
        text-align: center;
    }
    
    .auth-card {
        padding: var(--space-6);
    }
    
    .upload-card {
        padding: var(--space-6);
    }
    
    .scan-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .scan-status {
        width: 100%;
        justify-content: space-between;
    }
    
    h1 { font-size: var(--font-2xl); }
    h2 { font-size: var(--font-xl); }
    
    .dashboard-title {
        font-size: var(--font-2xl);
    }
    
    .upload-header h1 {
        font-size: var(--font-2xl);
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        display: none;
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-sm);
    }
    
    .drop-zone {
        padding: var(--space-10) var(--space-6);
    }
    
    .drop-zone-icon {
        font-size: 48px;
    }
    
    .drop-zone-title {
        font-size: var(--font-lg);
    }
}


/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }


/* ============================================
   Print Styles
   ============================================ */
@media print {
    .bg-gradient,
    .bg-grid,
    .nav,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
