/* ═══════════════════════════════════════════════════════════
   API DOCS — LIGHT BRIGHT DESIGN SYSTEM
   Harmonized with Depo Makassar Brand Colors
   ═══════════════════════════════════════════════════════════ */
:root {
    --kalla-green: #0A8543;
    --kalla-green-light: #16A34A;
    --kalla-green-dark: #00592D;
    --kalla-gold: #B47E16;

    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-code: #0f172a;
    --bg-sidebar: #ffffff;

    --border-subtle: #e2e8f0;
    --border-input: #cbd5e1;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --accent-indigo: #0A8543;
    --accent-indigo-light: #0A8543;
    --accent-emerald: #10b981;
    --accent-cyan: #0284c7;
    --accent-amber: #b47e16;
    --accent-rose: #e11d48;

    --gradient-hero: linear-gradient(135deg, #0A8543 0%, #15803D 60%, #B47E16 100%);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.ambient {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 10%, rgba(10,133,67,0.06), transparent),
        radial-gradient(ellipse 40% 40% at 80% 90%, rgba(180,126,22,0.05), transparent);
}

/* ═══════════════════════════════════════════════════════════
   TOP NAV
   ═══════════════════════════════════════════════════════════ */
.topnav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 800;
    color: var(--kalla-green);
    text-decoration: none; text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-dot {
    width: 7px; height: 7px;
    background: var(--kalla-green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

.nav-links {
    display: flex; align-items: center; gap: 16px;
}

.nav-links a {
    color: var(--text-secondary); font-size: 13px; font-weight: 600;
    text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--kalla-green); }

.nav-badge {
    padding: 4px 12px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px; font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid #bae6fd;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.docs-layout {
    display: flex;
    position: relative; z-index: 1;
    min-height: calc(100vh - 60px);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: sticky; top: 60px;
    width: 240px; flex-shrink: 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 24px 16px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
}

.sidebar-section { margin-bottom: 28px; }

.sidebar-title {
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--kalla-green-dark);
    padding: 0 8px; margin-bottom: 8px;
}

.sidebar-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(10,133,67,0.1);
    color: var(--kalla-green);
    font-weight: 700;
}

.method-tag {
    font-size: 9px; font-weight: 800;
    padding: 2px 5px; border-radius: 3px;
    letter-spacing: 0.5px; font-family: 'JetBrains Mono', monospace;
}
.method-tag.get {
    background: #dcfce7; color: #15803d;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */
.docs-main {
    flex: 1;
    max-width: 860px;
    padding: 40px 48px 80px;
}

.doc-section { margin-bottom: 20px; }

.section-header { margin-bottom: 32px; }

.section-header h1 {
    font-size: 32px; font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 15px; color: var(--text-secondary);
    line-height: 1.7; max-width: 600px;
}
.section-desc code {
    background: #f1f5f9;
    padding: 2px 6px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; color: var(--kalla-green);
    border: 1px solid #e2e8f0;
}

h2 {
    font-size: 22px; font-weight: 700;
    margin-bottom: 16px; color: var(--text-primary);
}

h3 {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--kalla-green-dark);
    margin: 28px 0 12px;
}

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

.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 40px 0;
}

/* ═══════════════════════════════════════════════════════════
   INFO CARDS
   ═══════════════════════════════════════════════════════════ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; margin-top: 20px;
}

.info-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.info-card:hover { border-color: var(--kalla-green); box-shadow: 0 4px 12px rgba(10,133,67,0.1); }

.info-card-icon { font-size: 24px; }
.info-card-title { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.info-card-text { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   ENDPOINT HEADER
   ═══════════════════════════════════════════════════════════ */
.endpoint-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}

.method-badge {
    padding: 5px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 800;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}
.method-badge.get {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.method-badge.small {
    padding: 3px 8px; font-size: 10px;
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px; font-weight: 700;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   PARAMS TABLE
   ═══════════════════════════════════════════════════════════ */
.params-table {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}

.param-row {
    display: grid;
    grid-template-columns: 140px 80px 80px 1fr;
    align-items: center;
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-subtle);
}
.param-row:last-child { border-bottom: none; }

.param-row.header {
    background: #f8fafc;
    font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--kalla-green-dark);
}

.param-row code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; font-weight: 700;
    color: var(--kalla-green);
}

.param-row span { color: var(--text-secondary); }

.type-tag {
    font-size: 11px; font-weight: 700;
    color: #0284c7 !important;
}

.required-tag {
    font-size: 11px; font-weight: 700;
    color: #b45309 !important;
}

/* ═══════════════════════════════════════════════════════════
   CODE BLOCKS
   ═══════════════════════════════════════════════════════════ */
.code-block {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}

.code-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px;
    background: #f8fafc;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.copy-btn {
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 11px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: #f1f5f9;
    color: var(--kalla-green);
}

.code-block pre {
    padding: 16px;
    background: #0f172a;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; line-height: 1.7;
    color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════
   TRY IT
   ═══════════════════════════════════════════════════════════ */
.try-it-box {
    display: flex; align-items: center; gap: 8px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}

.try-it-url {
    flex: 1;
    display: flex; align-items: center; gap: 8px;
    padding: 0 8px;
}

.try-url-prefix {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.try-it-url input {
    flex: 1;
    background: transparent; border: none; outline: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; font-weight: 600;
    color: var(--kalla-green);
    min-width: 100px;
}
.try-it-url input::placeholder { color: #94a3b8; }

.try-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-hero);
    border: none; border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(10,133,67,0.25);
}
.try-btn:hover { transform: scale(1.03); box-shadow: 0 4px 14px rgba(10,133,67,0.35); }
.try-btn:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════════════════════
   RESPONSE BOX
   ═══════════════════════════════════════════════════════════ */
.response-box {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}

.response-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px;
    background: #f8fafc;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.status-badge {
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: var(--radius-full);
    font-family: 'JetBrains Mono', monospace;
}
.status-badge.ok {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.status-badge.err {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.response-box pre {
    padding: 16px;
    background: #0f172a;
    overflow-x: auto;
    max-height: 400px;
}

.response-box code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; line-height: 1.7;
    color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer-docs {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 40px;
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .docs-main { padding: 24px 16px 60px; }
    .param-row { grid-template-columns: 1fr 1fr; gap: 4px; }
    .param-row.header { display: none; }
    .info-cards { grid-template-columns: 1fr; }
}
