/* ===========================================================================
 * vadosware - black & white with bloom.
 *
 * Palette: pure black background, pure white foreground. Accents are
 * achieved entirely with white-on-white glow (text-shadow / box-shadow
 * with rgba alpha) so we never introduce a color and the design stays
 * coherent with the cheat's overlay aesthetic.
 *
 * No frameworks. No build step. One stylesheet.
 * ========================================================================== */

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

:root {
    --bg-0:   #000;
    --bg-1:   #060606;
    --bg-2:   #0c0c0c;
    --line:   rgba(255,255,255,0.12);
    --line-2: rgba(255,255,255,0.22);
    --fg:     #fff;
    --muted:  rgba(255,255,255,0.55);

    --bloom-soft:  0 0 8px  rgba(255,255,255,0.35),
                   0 0 24px rgba(255,255,255,0.18);
    --bloom:       0 0 12px rgba(255,255,255,0.55),
                   0 0 36px rgba(255,255,255,0.28),
                   0 0 80px rgba(255,255,255,0.10);
    --bloom-hard:  0 0 1px  rgba(255,255,255,1),
                   0 0 12px rgba(255,255,255,0.85),
                   0 0 40px rgba(255,255,255,0.45);

    --r-1: 6px;
    --r-2: 10px;

    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Inter",
                 "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "ss01", "cv11", "cv02";
    color-scheme: dark;
}

html, body {
    background: var(--bg-0);
    color: var(--fg);
    min-height: 100%;
    overflow-x: hidden;
}

body {
    /* very faint vignette to anchor the eye on full-bleed black */
    background:
        radial-gradient(ellipse at top, rgba(255,255,255,0.04), transparent 55%) ,
        radial-gradient(ellipse at bottom, rgba(255,255,255,0.02), transparent 60%) ,
        var(--bg-0);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

/* =========================================================================
 * Topbar
 * ========================================================================= */

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
    position: sticky; top: 0; z-index: 50;
    background: rgba(0,0,0,0.6);
}

.brand {
    display: inline-flex; align-items: center; gap: 12px;
}
.brand-mark {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-1);
    font-weight: 700; letter-spacing: 0.5px;
    text-shadow: var(--bloom-soft);
    box-shadow: inset 0 0 12px rgba(255,255,255,0.05);
}
.brand-name {
    font-weight: 600; letter-spacing: 0.4px;
    text-shadow: var(--bloom-soft);
}

.topnav { display: flex; gap: 8px; }
.navlink {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.navlink:hover {
    border-color: var(--line-2);
    box-shadow: var(--bloom-soft);
}

/* =========================================================================
 * Hero
 * ========================================================================= */

.view-auth { padding: 64px 24px 96px; }

.hero {
    text-align: center;
    margin: 32px auto 56px;
    max-width: 720px;
}

.hero-title {
    font-size: clamp(64px, 14vw, 168px);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 800;
    text-shadow: var(--bloom-hard);
    /* a tiny "breathing" animation just on the title */
    animation: breathe 6.5s ease-in-out infinite;
}
@keyframes breathe {
    0%,100% { text-shadow: var(--bloom-hard); }
    50%     { text-shadow: 0 0 1px rgba(255,255,255,1),
                           0 0 18px rgba(255,255,255,0.95),
                           0 0 64px rgba(255,255,255,0.55); }
}

.hero-sub {
    color: var(--muted);
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================================================
 * Card / Tabs / Forms
 * ========================================================================= */

.card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    padding: 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 30px 80px rgba(0,0,0,0.6);
    transition: border-color .2s, box-shadow .25s;
}
.card:hover { border-color: var(--line-2); }

.auth-card {
    max-width: 440px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin: -8px -8px 16px;
}
.tab {
    flex: 1;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    transition: color .15s, border-color .15s, text-shadow .2s;
}
.tab:hover { color: var(--fg); }
.tab-active {
    color: var(--fg);
    border-bottom-color: var(--fg);
    text-shadow: var(--bloom-soft);
}

.tabpanel { display: none; gap: 14px; flex-direction: column; }
.tabpanel-active { display: flex; }

label {
    display: flex; flex-direction: column; gap: 6px;
}
label > span { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.hint { color: var(--muted); font-size: 12px; }

input {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .2s;
    color: var(--fg);
}
input:focus {
    border-color: var(--fg);
    box-shadow: var(--bloom-soft);
}

.btn {
    padding: 12px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-1);
    font-weight: 600; letter-spacing: 0.02em;
    transition: background .15s, border-color .15s, box-shadow .2s, transform .1s;
}
.btn:hover { border-color: var(--fg); box-shadow: var(--bloom-soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-primary {
    background: var(--fg); color: #000;
    border-color: var(--fg);
    text-shadow: none;
}
.btn-primary:hover { box-shadow: var(--bloom); }

.form-msg {
    min-height: 1.2em;
    color: var(--muted);
    font-size: 13px;
}
.form-msg.err { color: #fff; text-shadow: var(--bloom-soft); }

/* =========================================================================
 * Dashboard
 * ========================================================================= */

.view-dash {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 24px;
    flex: 1;
}

.sidebar {
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    padding: 16px;
    display: flex; flex-direction: column; gap: 16px;
    background: var(--bg-1);
    height: fit-content;
    position: sticky; top: 78px;
}
.sidebar-user {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.avatar {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-weight: 700;
    text-shadow: var(--bloom-soft);
}
.sidebar-username { font-weight: 600; }
.sidebar-role { font-size: 12px; color: var(--muted); }

.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }
.snav {
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--r-1);
    text-align: left;
    color: var(--muted);
    transition: color .15s, border-color .15s, background .15s;
}
.snav:hover { color: var(--fg); }
.snav-active {
    color: var(--fg);
    border-color: var(--line-2);
    background: var(--bg-2);
    text-shadow: var(--bloom-soft);
}
.snav-logout { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 16px; border-radius: 0; }

.dashbody { min-height: 60vh; }

.pane { display: none; }
.pane-active { display: block; }
.pane-title {
    font-size: 28px; letter-spacing: -0.01em;
    margin-bottom: 16px;
    text-shadow: var(--bloom-soft);
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card h3 {
    margin-bottom: 12px;
    font-size: 15px; letter-spacing: 0.02em;
    color: var(--muted); font-weight: 500;
    text-transform: uppercase;
}

.kv {
    display: grid; grid-template-columns: max-content 1fr;
    gap: 8px 18px;
    font-size: 14px;
}
.kv dt { color: var(--muted); }

.muted { color: var(--muted); font-size: 14px; }

.stack { display: flex; flex-direction: column; gap: 12px; }

.configs-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.configs-list li {
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    padding: 10px 12px;
    font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
    font-size: 13px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
}
.configs-list li.muted {
    border-style: dashed;
    color: var(--muted);
    justify-content: center;
}

.loader-result {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-1);
    font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
    font-size: 13px;
    word-break: break-all;
    background: var(--bg-2);
    box-shadow: var(--bloom-soft);
}
.loader-result strong { color: var(--fg); text-shadow: var(--bloom-soft); }
.loader-result a { text-decoration: underline; }

/* =========================================================================
 * Toast (top-right)
 * ========================================================================= */

.toast {
    position: fixed;
    right: 20px; top: 90px;
    z-index: 100;
    padding: 12px 16px;
    background: var(--bg-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-1);
    font-size: 14px;
    box-shadow: var(--bloom-soft);
    max-width: 320px;
}
.toast.err { box-shadow: var(--bloom); }

/* =========================================================================
 * Helpers
 * ========================================================================= */

.hidden { display: none !important; }

/* small screens */
@media (max-width: 800px) {
    .view-dash {
        grid-template-columns: 1fr;
    }
    .sidebar { position: static; }
    .topbar { padding: 12px 16px; }
    .view-auth { padding: 32px 12px 64px; }
}
