/* =====================================================
   RedTeam Ops Platform - Theme System
   Ultra Cyber Dark Theme with Neon Accents
   ===================================================== */

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

:root {
    /* Background Colors */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-elevated: #1f1f1f;
    --bg-card: rgba(5, 5, 5, 0.85);
    --bg-card-hover: rgba(20, 20, 20, 0.95);
    --bg-input: rgba(10, 10, 10, 0.6);
    --bg-overlay: rgba(0, 0, 0, 0.7);

    /* Border Colors */
    --border-primary: rgba(185, 28, 28, 0.15);
    --border-secondary: rgba(185, 28, 28, 0.25);
    --border-active: rgba(239, 68, 68, 0.5);

    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-bright: #ffffff;

    /* Accent Colors */
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.3);
    --accent-cyan: #b91c1c;
    --accent-cyan-glow: rgba(185, 28, 28, 0.3);
    --accent-green: #00ff88;
    --accent-green-glow: rgba(0, 255, 136, 0.3);
    --accent-orange: #ff6a00;
    --accent-orange-glow: rgba(255, 106, 0, 0.3);
    --accent-purple: #bf00ff;
    --accent-purple-glow: rgba(191, 0, 255, 0.3);
    --accent-yellow: #ffd000;
    --accent-yellow-glow: rgba(255, 208, 0, 0.3);

    /* Severity Colors */
    --severity-critical: #ff0040;
    --severity-high: #ff6a00;
    --severity-medium: #ffd000;
    --severity-low: #00ff88;
    --severity-info: #00f5ff;

    /* Status Colors */
    --status-active: #00ff88;
    --status-planning: #00f5ff;
    --status-completed: #8b949e;
    --status-archived: #484f58;

    /* Glassmorphism */
    --glass-bg: rgba(5, 5, 5, 0.7);
    --glass-border: rgba(185, 28, 28, 0.1);
    --glass-blur: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-cyan: 0 0 20px rgba(185, 28, 28, 0.15);
    --shadow-glow-red: 0 0 20px rgba(255, 0, 64, 0.15);

    /* Typography */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --navbar-height: 60px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Selection */
::selection {
    background: rgba(185, 28, 28, 0.2);
    color: var(--text-bright);
}

/* Links */
a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-bright);
    text-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-bright);
}

/* Code / Mono */
code, pre, .mono {
    font-family: var(--font-mono);
}

/* Scan Line Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(185, 28, 28, 0.008) 2px,
        rgba(185, 28, 28, 0.008) 4px
    );
    pointer-events: none;
    z-index: 9999;
}
