/* 
   UNILINK - INDUSTRIAL TACTICAL INTERFACE (V3.0)
   Designed to defy standard web templates.
   Aesthetic: Brutalist-Cyber Medical (Pure Black / Tactical Cyan / Industrial Mono)
*/

:root {
    /* --- SOFT MODE (PREMIUM LIGHT) --- */
    --bg-deep: #f8fafc;
    /* Sophisticated soft grey */
    --bg-panel: #ffffff;
    /* Pure white panels */
    --bg-elevated: #f1f5f9;
    /* Layered depth */

    --primary: #0f172a;
    /* Deep Slate for maximum legibility */
    --accent: #2563eb;
    /* Professional Royal Blue */
    --accent-glow: rgba(37, 99, 235, 0.1);
    --secondary: #64748b;
    /* Slate Grey */

    --text-primary: #0f172a;
    /* High Contrast Text */
    --text-secondary: #334155;
    /* Secondary Info */
    --text-muted: #64748b;
    /* Metadata/Muted text */

    --border-hard: rgba(15, 23, 42, 0.08);
    /* Subtle definition */
    --border-glow: rgba(37, 99, 235, 0.12);
    --border-dim: rgba(15, 23, 42, 0.04);

    --hud-border: rgba(15, 23, 42, 0.1);
    --glow: rgba(37, 99, 235, 0.25);

    /* Functional Colors */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --vibrant-success: #16a34a;
    --vibrant-danger: #dc2626;
    --vibrant-warning: #d97706;

    /* Structural Constants */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
    --t-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --t-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode {
    /* --- DARK MODE (PURE BLACK) --- */
    --bg-deep: #000000;
    --bg-panel: #050505;
    --bg-elevated: #0a0a0a;

    --primary: #ffffff;
    --accent: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.4);
    --secondary: #525252;

    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;

    --border-hard: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(0, 242, 255, 0.15);
    --border-dim: rgba(255, 255, 255, 0.04);

    --hud-border: rgba(255, 255, 255, 0.08);
    --glow: rgba(0, 242, 255, 0.4);

    --success: #00ff66;
    --danger: #ff003c;
    --warning: #ffcc00;
}

/* 🧱 BRUTALIST GRID UTILITIES */
.hard-border {
    border: 1px solid var(--border-hard);
}

.glow-border {
    border: 1px solid var(--border-glow);
}

/* HUD Corner Decoration Utility */
.hud-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--accent);
    pointer-events: none;
}

.hud-tl {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.hud-tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.hud-bl {
    bottom: -1px;
    left: -1px;
    border-top: none;
    border-right: none;
}

.hud-br {
    bottom: -1px;
    right: -1px;
    border-top: none;
    border-left: none;
}

/* Non-standard scrollbars */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border: 1px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Cinematic Glass */
.glass-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--border-hard);
}

/* Grid Animations */
@keyframes grid-pulse {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}