/* ============================================
   Security Agent - Light/Dark Theme System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Light Theme (Default) ===== */
:root {
    /* Background Colors */
    --bg-dark: #f8fafc;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-input: #f8fafc;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --accent-cyan: #0891b2;
    --accent-green: #059669;
    --accent-orange: #d97706;
    --accent-red: #dc2626;
    --accent-purple: #7c3aed;

    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #0891b2 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Code/Terminal */
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --bg-dark: #0a0a0f;
    --bg-primary: #12121a;
    --bg-secondary: #1a1a24;
    --bg-tertiary: #22222e;
    --bg-card: #1e1e2a;
    --bg-hover: #282838;
    --bg-input: #16161e;

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;

    --accent-primary: #818cf8;
    --accent-primary-hover: #a5b4fc;
    --accent-cyan: #22d3ee;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;

    --border-color: #2a2a3a;
    --border-light: #3a3a4a;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);

    --code-bg: #0d0d12;
    --code-text: #a5d6ff;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 40px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 26, 0.9);
    box-shadow: none;
}

.nav-brand a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 12px;
}

.nav-user {
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.nav-logout {
    color: var(--accent-red) !important;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.theme-toggle i {
    font-size: 16px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle .fa-sun {
    color: var(--accent-orange);
}

.theme-toggle .fa-moon {
    color: var(--accent-purple);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: inline-block;
}

:root .theme-toggle .fa-moon {
    display: none;
}

:root .theme-toggle .fa-sun {
    display: inline-block;
}

/* ===== Container ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 80px 0 50px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Scan Form ===== */
.scan-form-container {
    max-width: 700px;
    margin: 0 auto 80px;
}

.scan-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="url"],
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-scan {
    width: 100%;
    padding: 18px;
    font-size: 17px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ===== Auth Section ===== */
.auth-section {
    margin-bottom: 24px;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.toggle-label:hover {
    background: var(--bg-hover);
}

.toggle-label input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.toggle-label span {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-options {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 16px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.auth-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.auth-options .form-group {
    margin-bottom: 16px;
}

.auth-options input,
.auth-options textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.auth-options input:focus,
.auth-options textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.auth-options textarea {
    font-family: 'SF Mono', 'Consolas', monospace;
    resize: vertical;
    min-height: 100px;
}

.hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== Features Grid ===== */
.features {
    margin-top: 80px;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 10px 0;
    color: var(--text-secondary);
    padding-left: 24px;
    font-size: 14px;
    position: relative;
}

.feature-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

/* ===== Scan Page ===== */
.scan-page-layout {
    display: flex;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.scan-left-panel {
    flex: 1;
    min-width: 0;
}

.scan-right-panel {
    width: 500px;
    flex-shrink: 0;
}

.scan-header {
    text-align: center;
    margin-bottom: 40px;
}

.scan-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.scan-header h1.completed {
    color: var(--accent-green);
}

.scan-id code {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 13px;
}

/* ===== Progress Bar ===== */
.progress-section {
    margin-bottom: 32px;
}

.progress-bar-container {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-bar.completed {
    background: linear-gradient(90deg, var(--accent-green), #34d399);
}

.progress-bar.error {
    background: linear-gradient(90deg, var(--accent-red), #f87171);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

#progressPercent {
    font-weight: 600;
    color: var(--accent-cyan);
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

/* ===== Info Cards ===== */
.scan-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-card h3 {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.info-card p {
    font-size: 14px;
    word-break: break-all;
    font-weight: 500;
}

/* ===== Log Section ===== */
.log-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.log-section h2 {
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-container {
    height: 300px;
    overflow-y: auto;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 12px;
    line-height: 1.8;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.log-container::-webkit-scrollbar {
    width: 6px;
}

.log-container::-webkit-scrollbar-track {
    background: transparent;
}

.log-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.log-entry {
    padding: 6px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.log-time {
    color: var(--accent-cyan);
    margin-right: 12px;
    font-weight: 500;
}

/* ===== Pages Section ===== */
.pages-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.pages-section h2 {
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pages-section #pageCount {
    color: var(--accent-green);
    font-weight: 600;
}

.pages-container {
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.page-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 13px;
    border-left: 3px solid var(--accent-green);
}

.page-entry:last-child {
    margin-bottom: 0;
}

.page-icon {
    color: var(--accent-green);
    font-weight: bold;
}

.page-url {
    font-family: 'SF Mono', Consolas, monospace;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Browser View ===== */
.browser-view-header {
    margin-bottom: 16px;
}

.browser-view-header h2 {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.browser-url-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 12px;
}

.url-icon {
    font-size: 14px;
    color: var(--accent-green);
}

.url-text {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-view-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    height: 400px;
    overflow: hidden;
}

.browser-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.browser-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.browser-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-input);
}

.browser-actions {
    margin-top: 16px;
}

.action-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
}

.action-icon {
    font-size: 18px;
}

.action-text {
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ===== Report Page ===== */
.report-container {
    max-width: 1000px;
    margin: 0 auto;
}

.report-header {
    text-align: center;
    margin-bottom: 24px;
}

.report-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.report-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.loading {
    text-align: center;
    padding: 80px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Report Summary ===== */
.report-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.grade-display {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.summary-info h2 {
    font-size: 20px;
    margin-bottom: 12px;
    word-break: break-all;
    font-weight: 600;
}

.summary-info p {
    color: var(--text-secondary);
    margin: 6px 0;
    font-size: 14px;
}

/* ===== Severity Cards ===== */
.severity-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.severity-card {
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.severity-card .count {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.severity-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-secondary);
}

.severity-card.critical {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}
.severity-card.critical .count { color: var(--accent-red); }

.severity-card.high {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}
.severity-card.high .count { color: var(--accent-orange); }

.severity-card.medium {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
}
.severity-card.medium .count { color: #eab308; }

.severity-card.low {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}
.severity-card.low .count { color: var(--accent-green); }

/* ===== Sections ===== */
.section {
    margin-bottom: 40px;
}

.section h3 {
    font-size: 18px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.severity-title {
    margin: 28px 0 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.severity-title.critical {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}
.severity-title.high {
    color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.1);
}
.severity-title.medium {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
}
.severity-title.low {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

/* ===== Vulnerability Cards ===== */
.vuln-card {
    background: var(--bg-secondary);
    border-left: 4px solid var(--text-muted);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.vuln-card:hover {
    background: var(--bg-hover);
}

.vuln-card.critical { border-left-color: var(--accent-red); }
.vuln-card.high { border-left-color: var(--accent-orange); }
.vuln-card.medium { border-left-color: #eab308; }
.vuln-card.low { border-left-color: var(--accent-green); }

.vuln-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.badge.critical { background: var(--accent-red); color: white; }
.badge.high { background: var(--accent-orange); color: white; }
.badge.medium { background: #eab308; color: #1a1a24; }
.badge.low { background: var(--accent-green); color: white; }

.vuln-desc {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 14px;
}

.vuln-location {
    font-size: 12px;
    font-family: 'SF Mono', Consolas, monospace;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.vuln-rec {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #34d399;
}

.vuln-payload {
    font-size: 13px;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

.vuln-payload code {
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, monospace;
}

/* ===== PoC Section ===== */
.poc-section {
    margin-top: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.poc-header {
    background: var(--bg-tertiary);
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.poc-header:hover {
    background: var(--bg-hover);
}

.poc-toggle {
    font-size: 12px;
    color: var(--accent-primary);
}

.poc-content {
    padding: 20px;
    background: var(--bg-input);
}

.poc-item {
    margin-bottom: 20px;
}

.poc-item:last-child {
    margin-bottom: 0;
}

.poc-item h5 {
    color: var(--accent-cyan);
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.poc-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}

.poc-steps {
    padding-left: 20px;
    color: var(--text-secondary);
}

.poc-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.poc-code {
    background: var(--code-bg);
    padding: 18px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 13px;
    color: var(--code-text);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid var(--border-color);
}

.curl-command {
    color: var(--accent-green);
}

.copy-btn {
    margin-top: 12px;
    padding: 10px 18px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--accent-primary-hover);
}

.payload-list {
    list-style: none;
    padding: 0;
}

.payload-list li {
    margin-bottom: 8px;
}

.payload-list code {
    background: rgba(245, 158, 11, 0.15);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent-orange);
    font-family: 'SF Mono', Consolas, monospace;
}

.remediation-list {
    padding-left: 20px;
    color: #34d399;
}

.remediation-list li {
    margin-bottom: 10px;
    font-size: 14px;
}

.recommendations {
    padding-left: 20px;
}

.recommendations li {
    margin-bottom: 16px;
    font-size: 14px;
}

.recommendations small {
    color: var(--text-muted);
}

.pages-list {
    max-height: 200px;
    overflow-y: auto;
}

.page-item {
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
    color: var(--text-secondary);
}

.more {
    color: var(--text-muted);
    padding: 10px;
    font-size: 13px;
}

/* ===== Reports List ===== */
.reports-list-container h1 {
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 700;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.report-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.report-icon {
    font-size: 36px;
}

.report-info {
    flex: 1;
}

.report-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

.report-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state h2 {
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    background: var(--bg-primary);
}

/* ===== Error Message ===== */
.error-message {
    text-align: center;
    padding: 48px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
}

.error-message h3 {
    color: var(--accent-red);
    margin-bottom: 12px;
}

/* ===== Options Section ===== */
.options-section {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.options-section h3 {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.option-group {
    margin-bottom: 16px;
}

.option-row {
    display: flex;
    gap: 16px;
}

.option-row .option-group {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background: var(--bg-input);
}

.checkbox-label:hover {
    background: var(--bg-hover);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: var(--accent-primary);
}

.option-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.option-group select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.scan-status-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Report Tabs ===== */
.report-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--bg-secondary);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* ===== Category Grid ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.category-icon {
    font-size: 28px;
}

.category-header h4 {
    flex: 1;
    margin: 0;
    font-size: 16px;
}

.category-count {
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.category-severity-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    min-width: 24px;
}

.bar-segment.critical { background: var(--accent-red); }
.bar-segment.high { background: var(--accent-orange); }
.bar-segment.medium { background: #eab308; }
.bar-segment.low { background: var(--accent-green); }

.category-vulns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-vuln {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.mini-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mini-badge.critical { background: var(--accent-red); }
.mini-badge.high { background: var(--accent-orange); }
.mini-badge.medium { background: #eab308; }
.mini-badge.low { background: var(--accent-green); }

/* ===== Page Cards ===== */
.page-card {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-card.critical { border-left: 4px solid var(--accent-red); }
.page-card.high { border-left: 4px solid var(--accent-orange); }
.page-card.medium { border-left: 4px solid #eab308; }
.page-card.low { border-left: 4px solid var(--accent-green); }

.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.page-header:hover {
    background: var(--bg-tertiary);
}

.page-path {
    flex: 1;
    font-family: 'SF Mono', monospace;
    font-size: 13px;
}

.page-badges {
    display: flex;
    gap: 6px;
}

.mini-count {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.mini-count.critical { background: var(--accent-red); }
.mini-count.high { background: var(--accent-orange); }
.mini-count.medium { background: #eab308; color: #1a1a24; }
.mini-count.low { background: var(--accent-green); }

.page-toggle {
    color: var(--text-muted);
    font-size: 12px;
}

.page-vulns {
    padding: 20px 24px;
    background: var(--bg-input);
}

.page-vuln-item {
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.page-vuln-item:last-child {
    margin-bottom: 0;
}

.vuln-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 10px;
}

/* ===== PoC Card ===== */
.poc-intro {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.poc-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
}

.no-poc {
    color: var(--text-secondary);
    text-align: center;
    padding: 48px;
}

.poc-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.poc-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    background: var(--bg-tertiary);
}

.poc-header-main h3 {
    margin: 0;
    font-size: 16px;
}

.poc-info-table {
    width: 100%;
    border-collapse: collapse;
}

.poc-info-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

.poc-info-table td:first-child {
    width: 150px;
    color: var(--text-secondary);
    font-size: 13px;
}

.impact-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 18px;
    border-radius: var(--radius-sm);
}

.reproduction-steps {
    margin: 0;
    padding-left: 24px;
}

.reproduction-steps li {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.payload-box,
.curl-box {
    background: var(--code-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.payload-box pre,
.curl-box pre {
    padding: 18px;
    margin: 0;
    overflow-x: auto;
}

.payload-box code,
.curl-box code {
    color: var(--code-text);
    font-family: 'SF Mono', monospace;
    font-size: 13px;
}

.payloads-grid {
    display: grid;
    gap: 10px;
}

.payload-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--code-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.payload-item code {
    flex: 1;
    color: var(--code-text);
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    word-break: break-all;
}

.copy-mini {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.copy-mini:hover {
    color: var(--text-primary);
}

/* ===== Priority List ===== */
.priority-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.priority-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    border-left: 4px solid;
}

.priority-1 { border-left-color: var(--accent-red); }
.priority-2 { border-left-color: var(--accent-orange); }
.priority-3 { border-left-color: #eab308; }
.priority-4 { border-left-color: var(--accent-green); }
.priority-5 { border-left-color: var(--accent-primary); }

.priority-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.priority-content {
    flex: 1;
}

.priority-content strong {
    display: block;
    margin-bottom: 6px;
}

.priority-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Severity Groups ===== */
.severity-group {
    margin-bottom: 28px;
}

.severity-group.critical .severity-title {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
.severity-group.high .severity-title {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.severity-group.medium .severity-title {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}
.severity-group.low .severity-title {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* ===== Admin Dashboard ===== */
.admin-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 24px;
}

.admin-header {
    text-align: center;
    margin-bottom: 48px;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-critical .stat-value { color: var(--accent-red); }
.stat-high .stat-value { color: var(--accent-orange); }
.stat-medium .stat-value { color: #eab308; }

/* Admin Table */
.admin-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table thead {
    background: var(--bg-tertiary);
}

.admin-table th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.scan-url {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scan-time {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.status-stopped {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

/* Severity Badges */
.severity-dist {
    white-space: nowrap;
}

.sev-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 6px;
}

.sev-critical { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.sev-high { background: rgba(245, 158, 11, 0.2); color: var(--accent-orange); }
.sev-medium { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.sev-low { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.sev-info { background: rgba(99, 102, 241, 0.2); color: var(--accent-primary); }

.no-findings {
    color: var(--text-muted);
}

/* Action Buttons */
.actions {
    white-space: nowrap;
    min-width: 140px;
    text-align: right;
}

.btn-action {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 8px;
    transition: var(--transition);
}

.btn-view {
    background: var(--accent-primary);
    color: white;
}

.btn-view:hover {
    background: var(--accent-primary-hover);
}

.btn-download {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-download:hover {
    background: var(--bg-hover);
}

/* Empty State */
.no-data {
    padding: 80px 20px !important;
}

.row-error {
    background: rgba(239, 68, 68, 0.05);
}

/* ===== Login Page ===== */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
    font-size: 14px;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.login-form input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.modal-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-body {
    padding: 28px;
}

.modal-body p {
    color: var(--text-secondary);
    margin: 0 0 20px;
    font-size: 14px;
}

.otp-input-container {
    margin: 28px 0;
}

.otp-input {
    width: 100%;
    padding: 18px;
    font-size: 28px;
    text-align: center;
    letter-spacing: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: 'SF Mono', monospace;
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.otp-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.modal-footer {
    padding: 20px 28px 28px;
    display: flex;
    gap: 14px;
    justify-content: flex-end;
}

.otp-toggle {
    margin-top: 20px;
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.otp-toggle .hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .scan-page-layout {
        flex-direction: column;
    }
    .scan-right-panel {
        width: 100%;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .scan-form {
        padding: 28px;
    }
    .scan-info {
        grid-template-columns: 1fr;
    }
    .severity-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .report-summary {
        flex-direction: column;
        text-align: center;
    }
    .option-row,
    .form-row {
        flex-direction: column;
    }
    .auth-tabs {
        flex-direction: column;
    }
    .report-content {
        padding: 28px;
    }
}

/* ===== Animation Classes ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}
