/* ============================================================
   TSUKINO // ADMIN — "Hollywood OS" theme
   Cinematic ops-center look: dark glass panels, neon cyan HUD
   lines, mono type, scanlines. Internal tool, so we get to have
   fun with it.
   ============================================================ */

:root {
    --hos-bg: #04070d;
    --hos-bg-panel: rgba(10, 18, 30, 0.82);
    --hos-grid: rgba(0, 229, 255, 0.05);
    --hos-line: rgba(0, 229, 255, 0.28);
    --hos-line-dim: rgba(0, 229, 255, 0.12);
    --hos-cyan: #00e5ff;
    --hos-magenta: #ff2d95;
    --hos-amber: #ffb020;
    --hos-green: #27ff8a;
    --hos-red: #ff4d5e;
    --hos-text: #c9e6f2;
    --hos-text-dim: #5f7f95;
    --hos-mono: "Share Tech Mono", "Consolas", monospace;
    --hos-display: "Orbitron", "Segoe UI", sans-serif;
}

html { min-height: 100%; }

body {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 229, 255, 0.10), transparent 60%),
        linear-gradient(var(--hos-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--hos-grid) 1px, transparent 1px),
        var(--hos-bg);
    background-size: auto, 44px 44px, 44px 44px, auto;
    color: var(--hos-text);
    font-family: var(--hos-mono);
    /* Sticky footer via flex, not absolute positioning: the footer follows
       the content and only pins to the bottom on short pages. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > .container {
    flex: 1 0 auto;
}

/* CRT scanlines + vignette over everything, never intercepting clicks. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse 140% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.45));
}

/* ---- chrome ------------------------------------------------ */

.navbar {
    background: rgba(4, 9, 16, 0.9) !important;
    border-bottom: 1px solid var(--hos-line) !important;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(6px);
}

.navbar-brand {
    font-family: var(--hos-display);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--hos-cyan) !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.75);
    text-transform: uppercase;
}

.navbar .nav-link {
    font-family: var(--hos-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
    color: var(--hos-text-dim) !important;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--hos-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background: rgba(4, 9, 16, 0.9);
    border-top: 1px solid var(--hos-line-dim) !important;
    color: var(--hos-text-dim) !important;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---- products sub-bar -------------------------------------- */

.products-subnav {
    border: 1px solid var(--hos-line-dim);
    border-left: 3px solid var(--hos-cyan);
    background: rgba(4, 9, 16, 0.7);
    padding: 0.4rem 0.75rem;
}

.products-subnav .subnav-label {
    color: var(--hos-text-dim);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
}

.products-subnav .subnav-link {
    font-family: var(--hos-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--hos-text-dim);
    text-decoration: none;
    padding: 0.15rem 0.6rem;
    border: 1px solid transparent;
}

.products-subnav .subnav-link:hover {
    color: var(--hos-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.products-subnav .subnav-link.active {
    color: var(--hos-cyan);
    border-color: var(--hos-line);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* ---- headings ---------------------------------------------- */

h1, h2, .h4 {
    font-family: var(--hos-display);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hos-text);
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

h1::after {
    content: "_";
    color: var(--hos-cyan);
    animation: hos-blink 1.1s steps(1) infinite;
}

@keyframes hos-blink { 50% { opacity: 0; } }

/* ---- panels ------------------------------------------------ */

.card {
    background: var(--hos-bg-panel);
    border: 1px solid var(--hos-line-dim);
    border-radius: 4px;
    box-shadow:
        inset 0 0 30px rgba(0, 229, 255, 0.03),
        0 0 18px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
}

/* HUD corner brackets */
.card::before, .card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--hos-cyan);
    border-style: solid;
    opacity: 0.7;
}

.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.card h5, .card .card-title {
    font-family: var(--hos-mono);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--hos-cyan);
    border-bottom: 1px solid var(--hos-line-dim);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.card h5::before, .card .card-title::before {
    content: "▮ ";
    color: var(--hos-magenta);
}

.card-text.text-muted { color: var(--hos-text-dim) !important; }

/* ---- stat readouts ----------------------------------------- */

.stat-card .text-muted {
    color: var(--hos-text-dim) !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.68rem;
}

.stat-card .fs-3, .stat-card .fs-6 {
    font-family: var(--hos-display);
    font-weight: 600;
    color: var(--hos-green);
    text-shadow: 0 0 14px rgba(39, 255, 138, 0.55);
}

/* ---- controls ---------------------------------------------- */

.btn-primary, .btn-outline-primary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--hos-cyan);
    --bs-btn-color: var(--hos-cyan);
    --bs-btn-hover-bg: rgba(0, 229, 255, 0.15);
    --bs-btn-hover-border-color: var(--hos-cyan);
    --bs-btn-hover-color: #eaffff;
    --bs-btn-active-bg: rgba(0, 229, 255, 0.25);
    --bs-btn-active-border-color: var(--hos-cyan);
    --bs-btn-active-color: #eaffff;
    font-family: var(--hos-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.form-select, .form-control {
    background-color: rgba(4, 9, 16, 0.9);
    border: 1px solid var(--hos-line-dim);
    border-radius: 2px;
    color: var(--hos-text);
    font-family: var(--hos-mono);
}

.form-select:focus, .form-control:focus {
    background-color: rgba(4, 9, 16, 0.9);
    border-color: var(--hos-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
    color: var(--hos-text);
}

/* ---- tables, badges, alerts -------------------------------- */

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--hos-text);
    --bs-table-border-color: var(--hos-line-dim);
    font-family: var(--hos-mono);
    font-size: 0.85rem;
}

/* Bootstrap 5.3 colors cells via state/type variables that outrank
   --bs-table-color, leaving rows nearly invisible on the dark ground —
   pin the cell color directly. */
.table > :not(caption) > * > * {
    color: var(--hos-text);
    background-color: transparent;
}

.table thead th {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--hos-text-dim);
}

.text-success { color: var(--hos-green) !important; text-shadow: 0 0 8px rgba(39, 255, 138, 0.5); }
.text-danger { color: var(--hos-red) !important; text-shadow: 0 0 8px rgba(255, 77, 94, 0.5); }

.badge { border-radius: 2px; font-family: var(--hos-mono); letter-spacing: 0.08em; }
.badge.text-bg-success { background: rgba(39, 255, 138, 0.15) !important; color: var(--hos-green) !important; border: 1px solid rgba(39, 255, 138, 0.5); }
.badge.text-bg-danger { background: rgba(255, 77, 94, 0.15) !important; color: var(--hos-red) !important; border: 1px solid rgba(255, 77, 94, 0.5); }
.badge.text-bg-secondary { background: rgba(0, 229, 255, 0.08) !important; color: var(--hos-text-dim) !important; border: 1px solid var(--hos-line-dim); }

.alert-info {
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid var(--hos-line);
    color: var(--hos-text);
    border-radius: 2px;
}

.alert-danger {
    background: rgba(255, 77, 94, 0.08);
    border: 1px solid rgba(255, 77, 94, 0.5);
    color: #ffc9cf;
    border-radius: 2px;
}

code { color: var(--hos-magenta); }

.border-bottom { border-color: var(--hos-line-dim) !important; }

/* Focus ring for keyboard nav, on-theme. */
.btn:focus-visible, .form-select:focus-visible, a:focus-visible {
    outline: 1px solid var(--hos-cyan);
    outline-offset: 2px;
    box-shadow: none;
}

/* ---- ops console bars -------------------------------------- */
.hos-bar { height: 8px; background: rgba(0, 229, 255, 0.08); border: 1px solid var(--hos-line-dim); border-radius: 2px; overflow: hidden; margin: 0.35rem 0; }
.hos-bar-fill { height: 100%; background: var(--hos-green); box-shadow: 0 0 8px rgba(39, 255, 138, 0.6); transition: width 0.4s; }
.hos-bar-fill.warn { background: var(--hos-amber); box-shadow: 0 0 8px rgba(255, 176, 32, 0.6); }
.hos-bar-fill.danger { background: var(--hos-red); box-shadow: 0 0 8px rgba(255, 77, 94, 0.6); }
.hos-raw { background: rgba(4, 9, 16, 0.9); border: 1px solid var(--hos-line-dim); padding: 0.75rem; max-height: 320px; overflow: auto; }

