/* ══ Base: Variables, Fonts, Resets ══ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    --bg-darkest: #040d14;
    --bg-dark: #05080d;
    --bg-primary: #0d1219;
    --bg-card: #0f1923;
    --text-primary: #ebeef2;
    --text-muted: #8b949e;
    --accent-blue: #0ea7e7;
    --accent-magenta: #d946ef;
    --accent-yellow: #f0b429;
    --accent-green: #22c55e;
    --accent-cyan: #38bdf8;
    --accent-red: #ef4444;
    --danger: #e5534b;
    --border-dark: #040d14;
    /* Semantic surface + text tokens — shared by console blades, the mod picker and the
       roles/sharing table so every surface uses one elevation + border + secondary-text
       language. Themes override these (dark themes keep the white tints; the light theme-c
       swaps to black tints). */
    --text-secondary: #b4bcc8;
    --surface-1: rgba(255, 255, 255, 0.02);
    --surface-2: rgba(255, 255, 255, 0.04);
    --surface-3: rgba(255, 255, 255, 0.07);
    --border-color: rgba(255, 255, 255, 0.08);
    /* Type scale (rem) — one ladder for all console UI so sizes never drift. Larger "stat"
       numbers (uptime/cost/telemetry) are intentionally outside the ladder.
         --fs-title   blade titles (h5)
         --fs-subtitle group headings (h6) — a step under the title
         --fs-body    values, descriptions, table cells, default content
         --fs-label   small UI: buttons, meta, status, group headings (.blade-subtitle)
         --fs-caption uppercase micro-labels: field labels, table headers, KPI labels
         --fs-fine    badges, ids, tiny captions */
    --fs-title: 1.25rem;
    --fs-subtitle: 1.05rem;
    --fs-body: 0.9rem;
    --fs-label: 0.8rem;
    --fs-caption: 0.75rem;
    --fs-fine: 0.7rem;
    /* Typography tokens — themes override these to re-font the whole site */
    --font-body: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
    --font-display: 'Rajdhani', sans-serif;
}

html {
    position: relative;
    min-width: 375px;
    font-size: 16px;
    background-color: var(--bg-primary);
    overflow: auto;
}

body {
    font-family: var(--font-body);
    background-color: transparent;
    color: var(--text-primary);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: keep the footer pinned to the bottom on short pages */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--accent-blue); }
a:hover { color: #3bbdf0; }

/* ── Lucide inline icons (<lucide name="…" />) ──
   Stroke inherits currentColor; the SVG carries explicit width/height. These rules only
   handle flow alignment so an icon sits nicely inline with text or in a flex row. */
.lucide {
    flex-shrink: 0;
    vertical-align: -0.14em;
}

/* ── Global scrollbar style (matches the terms & agreements modal) ── */
* {
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(14, 167, 231, 0.3), 0 0 0 0.25rem rgba(14, 167, 231, 0.15);
}

.text-muted { color: var(--text-muted) !important; }
