﻿:root {
    --bg: #000000;
    --bg-soft: #08070c;
    --panel: #0f0d16;
    --panel-strong: #161020;
    --text: #ffffff;
    --muted: #c8c3d4;
    --faint: #8e879d;
    --accent: #261c3d;
    --accent-2: #7b5ea7;
    --accent-3: #b79bea;
    --code-bg: #11101a;
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(183, 155, 234, 0.35);
    --success: #63d471;
    --warning: #ffbe55;
    --error: #ff6b6b;
    --info: #72c7ff;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg, rgba(38, 28, 61, 0.35) 0, transparent 280px),
        linear-gradient(90deg, rgba(123, 94, 167, 0.08), transparent 38%),
        var(--bg);
    color: var(--text);
    line-height: 1.72;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 70%);
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 292px;
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    padding: 28px 18px;
    background: rgba(8, 7, 12, 0.96);
    border-right: 1px solid var(--border);
    box-shadow: 18px 0 70px rgba(0, 0, 0, 0.38);
}

.sidebar h2 {
    margin: 0 0 26px;
    padding: 0 10px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

.sidebar h2::after {
    content: "The Wolfgon Oversees you. Its Kiba, Dear";
    display: block;
    margin-top: 6px;
    color: var(--accent-3);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.35;
    transition: color 180ms ease, opacity 180ms ease;
}

.brand-link {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.brand-link:hover {
    color: var(--accent-3);
    text-shadow: 0 0 22px rgba(183, 155, 234, 0.34);
    transform: translateY(-1px);
}

.sidebar nav a {
    display: block;
    margin: 3px 0;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    color: var(--text);
    background: rgba(38, 28, 61, 0.84);
    border-color: var(--border-strong);
    text-decoration: none;
}

.sidebar nav a:hover {
    transform: translateX(3px);
}

.sidebar nav .section-label {
    margin: 24px 0 8px;
    padding-left: 11px;
    color: var(--accent-3);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content {
    width: min(calc(100% - 292px), 1120px);
    min-width: 0;
    margin-left: calc(292px + max(0px, (100vw - 292px - 1120px) / 2));
    padding: 56px 72px 88px;
    animation: page-in 260ms ease-out both;
}

.content > * {
    max-width: 920px;
}

.content > h1:first-child,
.hero {
    max-width: 980px;
}

h1,
h2,
h3 {
    line-height: 1.16;
}

h1 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.65rem);
    font-weight: 800;
}

h2 {
    margin: 48px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1.55rem;
}

h3 {
    margin: 28px 0 10px;
    color: var(--accent-3);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

p {
    margin: 0 0 18px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

ul,
ol {
    margin: 0 0 22px 1.4rem;
    color: var(--muted);
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--accent-3);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 180ms ease, text-shadow 180ms ease;
}

a:hover {
    color: var(--text);
    text-shadow: 0 0 18px rgba(183, 155, 234, 0.26);
}

strong {
    color: var(--text);
}

pre {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 18px 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(183, 155, 234, 0.55) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

pre:hover {
    border-color: var(--border-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 42px rgba(0, 0, 0, 0.22);
}

pre::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
table::-webkit-scrollbar {
    height: 10px;
}

pre::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track,
table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

pre::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
table::-webkit-scrollbar-thumb {
    background: rgba(183, 155, 234, 0.55);
    border-radius: 999px;
}

pre code {
    display: block;
    min-width: max-content;
    white-space: pre;
}

code {
    font-family: "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

p code,
li code,
td code {
    padding: 0.16rem 0.42rem;
    background: rgba(183, 155, 234, 0.11);
    border: 1px solid rgba(183, 155, 234, 0.16);
    border-radius: 6px;
    color: var(--accent-3);
    font-size: 0.88em;
}

table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 26px;
    border-collapse: collapse;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(183, 155, 234, 0.55) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

table:hover {
    border-color: var(--border-strong);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

tbody {
    display: table;
    width: 100%;
    min-width: 620px;
}

th,
td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background: var(--panel-strong);
    color: var(--text);
    font-weight: 700;
}

td {
    background: rgba(15, 13, 22, 0.78);
    color: var(--muted);
}

tr:last-child td {
    border-bottom: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 6px 8px 0;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.badge-get {
    background: rgba(99, 212, 113, 0.13);
    color: #bff6c7;
}

.badge-post {
    background: rgba(255, 190, 85, 0.15);
    color: #ffe0a3;
}

.badge-public {
    background: rgba(114, 199, 255, 0.13);
    color: #c7ecff;
}

.badge-auth {
    background: rgba(183, 155, 234, 0.18);
    color: #eadfff;
}

.callout {
    margin: 0 0 24px;
    padding: 16px 18px;
    background: rgba(15, 13, 22, 0.82);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-2);
    border-radius: 8px;
    color: var(--muted);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.callout:hover {
    background: rgba(18, 15, 27, 0.9);
    transform: translateY(-1px);
}

.callout-info {
    border-left-color: var(--info);
}

.callout-warning {
    border-left-color: var(--warning);
}

.callout-error {
    border-left-color: var(--error);
}

.callout-success {
    border-left-color: var(--success);
}

.hero {
    width: 100%;
    margin-bottom: 36px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(38, 28, 61, 0.9), rgba(15, 13, 22, 0.72));
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.hero p {
    max-width: 760px;
    color: #ebe8f3;
    font-size: 1.08rem;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent-3);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.quick-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 34px;
}

.doc-card,
.metric {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 18px;
    background: rgba(15, 13, 22, 0.88);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.doc-card:hover,
.metric:hover,
.status-card:hover,
.flow-list li:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.doc-card h3,
.metric strong {
    display: block;
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
}

.doc-card p,
.metric span {
    margin: 0;
    color: var(--faint);
    font-size: 0.93rem;
}

.doc-card a {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
}

.flow-list {
    padding: 0;
    margin-left: 0;
    list-style: none;
    counter-reset: flow-step;
}

.flow-list li {
    position: relative;
    margin-bottom: 10px;
    padding: 14px 16px 14px 52px;
    background: rgba(15, 13, 22, 0.78);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.flow-list li::before {
    counter-increment: flow-step;
    content: counter(flow-step);
    position: absolute;
    left: 15px;
    top: 13px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 30px;
}

.status-card {
    min-width: 0;
    padding: 18px;
    background: rgba(15, 13, 22, 0.88);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent-2);
    border-radius: 8px;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

.status-card.ok {
    border-top-color: var(--success);
}

.status-card.down {
    border-top-color: var(--error);
}

.status-card strong,
.status-card span {
    display: block;
}

.status-card strong {
    margin-bottom: 8px;
    color: var(--text);
}

.status-card span {
    color: var(--muted);
    font-size: 0.94rem;
}

@media (max-width: 980px) {
    .container {
        display: block;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        height: auto;
        max-height: none;
        overflow-x: hidden;
        padding: 14px 16px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar h2 {
        margin-bottom: 10px;
        padding: 0 2px 10px;
        font-size: 1rem;
    }

    .sidebar nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .sidebar nav::-webkit-scrollbar {
        height: 0;
    }

    .sidebar nav .section-label {
        display: none;
    }

    .sidebar nav a {
        flex: 0 0 auto;
        margin: 0;
        padding: 8px 12px;
        white-space: nowrap;
        font-size: 0.86rem;
    }

    .sidebar nav a:hover {
        transform: translateY(-1px);
    }

    .content {
        width: calc(100vw - 32px);
        max-width: 100%;
        margin: 0 auto;
        padding: 32px 0 56px;
        overflow-x: hidden;
    }

    .content > * {
        max-width: 100%;
    }

    .quick-grid,
    .metric-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        width: 100%;
        padding: 24px;
    }

    .hero p {
        max-width: 100%;
        font-size: 1rem;
    }
}

@media (max-width: 560px) {
    .content {
        width: calc(100vw - 32px);
        margin: 0 16px;
    }

    h1 {
        font-size: 1.78rem;
        overflow-wrap: anywhere;
    }

    .hero {
        padding: 22px 18px;
    }

    .hero .eyebrow {
        font-size: 0.68rem;
    }

    pre {
        padding: 15px 16px;
        font-size: 0.84rem;
    }

    tbody {
        min-width: 560px;
    }
}

