/* =========================================================
   KONNEXA 360 — Theme tokens & base
   Black-forest + white + a touch of orange, glass surfaces
   ========================================================= */
:root {
    /* surfaces */
    --bg: #040B08;
    --forest-1: #0A1A13;
    --forest-2: #11281D;
    --forest-3: #1B3B2B;

    /* glass */
    --glass: rgba(255, 255, 255, .045);
    --glass-2: rgba(255, 255, 255, .07);
    --glass-3: rgba(255, 255, 255, .11);
    --field: rgba(0, 0, 0, .22);
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --blur: saturate(160%) blur(22px);

    /* text */
    --text: #F4F7F5;
    --muted: rgba(226, 240, 232, .62);
    --faint: rgba(226, 240, 232, .40);

    /* accent — use sparingly */
    --orange: #FF7A1A;
    --orange-2: #FF9A3D;
    --orange-soft: rgba(255, 122, 26, .14);
    --orange-ring: rgba(255, 122, 26, .10);
    --on-orange: #1A0C02;

    /* status */
    --good: #4ADE80;
    --danger: #F87171;

    /* shape */
    --radius: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 50px -20px rgba(0, 0, 0, .6);

    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
    font-family: var(--font);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

::selection { background: rgba(255, 122, 26, .35); }

/* thin, dark scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }

/* ---------- ambient background (rendered by <Ambient />) ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .75; }
.ambient .orb.a { width: 620px; height: 620px; left: -160px; top: -180px; background: radial-gradient(circle, #1E4A35 0%, transparent 70%); }
.ambient .orb.b { width: 520px; height: 520px; right: -140px; top: 30%; background: radial-gradient(circle, #173D2C 0%, transparent 70%); }
.ambient .orb.c { width: 340px; height: 340px; right: 22%; bottom: -160px; background: radial-gradient(circle, rgba(255, 122, 26, .26) 0%, transparent 70%); }
.ambient .grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Blazor framework UI */
#blazor-error-ui {
    display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 1000;
    padding: 12px 18px; border-radius: 14px; background: #2A0F0F; border: 1px solid rgba(248, 113, 113, .4); color: #fff; font-size: 14px;
}
#blazor-error-ui .reload { color: var(--orange-2); margin-left: 8px; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 12px; }
