/* dashboard.nyxkv.com — minimal stylesheet
   Reuses the NyxKV design tokens (color, type) from the landing,
   but trims the system to what the dashboard actually renders:
   nav, cards, forms, the keys table, and the one-shot token panel.
*/

:root {
    --bg-main: #ffffff;
    --bg-surface: #f4f4f5;
    --bg-code: #f0f0f2;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-dim: #9ca3af;
    --border: rgba(0, 0, 0, 0.08);
    --accent: #0891b2;
    --accent-hover: #0e7490;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --warn-bg: #fff7ed;
    --warn-border: #fed7aa;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html, body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

/* ── Top nav ── */
.top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 0; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.top .brand {
    font-weight: 700; font-size: 1.1rem; text-decoration: none;
    color: var(--text-primary);
}
.top .links { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.top .links a { color: var(--text-secondary); text-decoration: none; }
.top .links a:hover { color: var(--accent); }
.top .links .who { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.85rem; }

/* ── Cards ── */
.card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.card h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.card h2 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
.card p { color: var(--text-secondary); margin-bottom: 0.75rem; }
.card .muted { color: var(--text-dim); font-size: 0.875rem; }

/* ── Forms ── */
form label { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
form input[type="email"], form input[type="password"] {
    width: 100%; padding: 0.55rem 0.75rem;
    border: 1px solid var(--border); border-radius: 6px;
    font-family: var(--font-sans); font-size: 0.95rem; margin-top: 0.25rem;
}
form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,145,178,0.15); }
form button, .cta {
    background: var(--accent); color: white; border: none; border-radius: 6px;
    padding: 0.55rem 1.1rem; font-size: 0.95rem; font-weight: 500;
    cursor: pointer; text-decoration: none; display: inline-block;
}
form button:hover, .cta:hover { background: var(--accent-hover); }
form .inline, form.inline { display: inline; }
.linkbtn {
    background: none; border: none; color: var(--text-secondary);
    cursor: pointer; padding: 0; font-size: 0.9rem;
}
.linkbtn:hover { color: var(--accent); text-decoration: underline; }
button.danger { background: var(--danger); }
button.danger:hover { background: var(--danger-hover); }

/* ── Errors / status ── */
.err {
    background: #fef2f2; border: 1px solid #fecaca; color: var(--danger);
    padding: 0.6rem 0.85rem; border-radius: 6px; font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ── One-shot token panel ── */
.token-once {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
}
.token-once h1, .token-once h2 { color: #9a3412; }
pre.token {
    background: #1a1a1a; color: #e2e8f0;
    font-family: var(--font-mono); font-size: 0.875rem;
    padding: 0.85rem; border-radius: 6px;
    word-break: break-all; white-space: pre-wrap;
    margin: 0.5rem 0 0.75rem;
}

/* ── Code snippets ── */
pre.snippet {
    background: var(--bg-code);
    font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.5;
    padding: 0.85rem; border-radius: 6px;
    overflow-x: auto;
    margin: 0.5rem 0;
}

/* ── Plan / stats lines ── */
.plan { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.4rem; }
.plan strong { color: var(--text-primary); }

/* ── Keys table ── */
table.keys {
    width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.875rem;
}
table.keys th, table.keys td {
    text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border);
}
table.keys th { color: var(--text-secondary); font-weight: 500; }
table.keys code { font-family: var(--font-mono); font-size: 0.8rem; }
table.keys .info { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.78rem; }
