/* ===== DESIGN TOKENS ===== */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAF9;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --accent: #059669;
    --accent-light: #10B981;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --sidebar-width: 280px;
    --navbar-height: 64px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-secondary);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.docs-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1001;
}

.docs-navbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.docs-navbar-logo .nav-logo-img {
    height: 38px;
    width: auto;
}

.docs-navbar-logo .nav-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #111827;
    letter-spacing: -0.02em;
}

.docs-navbar-logo .nav-logo-text strong {
    font-weight: 800;
    color: #059669;
}

.docs-navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.docs-navbar-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.docs-navbar-links a:hover {
    color: var(--text-primary);
}

.docs-navbar-cta {
    background: linear-gradient(135deg, #059669, #10B981);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity var(--transition);
}

.docs-navbar-cta:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* ===== SIDEBAR ===== */
.docs-sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: var(--bg-primary);
    border-right: 1px solid var(--border-subtle);
    overflow-y: auto;
    padding: 24px 0;
    z-index: 1000;
    transition: transform var(--transition);
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.docs-sidebar-section {
    margin-bottom: 20px;
}

.docs-sidebar-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 20px;
    margin-bottom: 6px;
}

.docs-sidebar-link {
    display: block;
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 6px 20px 6px 24px;
    border-left: 2px solid transparent;
    transition: all var(--transition);
}

.docs-sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

.docs-sidebar-link.active {
    color: var(--accent);
    font-weight: 500;
    border-left-color: var(--accent);
    background: rgba(5, 150, 105, 0.04);
}

/* ===== SIDEBAR TOGGLE (mobile) ===== */
.docs-sidebar-toggle {
    display: none;
    position: fixed;
    top: 74px;
    left: 12px;
    z-index: 1003;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.docs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.docs-overlay.visible {
    display: block;
}

/* ===== MAIN CONTENT ===== */
.docs-main {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 40px 48px 80px;
    max-width: calc(800px + 96px);
}

/* ===== SECTION STYLES ===== */
.docs-section {
    margin-bottom: 64px;
}

.docs-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.docs-section-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.docs-subsection {
    margin-bottom: 40px;
}

.docs-subsection-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 14px;
}

.docs-main p {
    margin-bottom: 14px;
}

/* ===== LISTS ===== */
.docs-steps {
    padding-left: 20px;
    margin-bottom: 20px;
}

.docs-steps li {
    margin-bottom: 10px;
    padding-left: 6px;
}

.docs-steps li::marker {
    color: var(--accent);
    font-weight: 600;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.docs-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.docs-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ===== CALLOUTS ===== */
.docs-callout {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin: 24px 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.docs-callout-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.docs-callout strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.docs-callout--tip {
    background: #f0fdf4;
    border-left-color: #059669;
}

.docs-callout--warning {
    background: #fffbeb;
    border-left-color: #d97706;
}

.docs-callout--note {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.docs-callout--info {
    background: var(--bg-secondary);
    border-left-color: #6b7280;
}

/* ===== TABLES ===== */
.docs-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.docs-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    white-space: nowrap;
}

.docs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-table .check {
    color: var(--accent);
    font-weight: 600;
}

.docs-table .cross {
    color: var(--text-muted);
}

/* ===== INLINE CODE ===== */
code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

/* ===== BACK TO TOP ===== */
.docs-back-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 32px;
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
        z-index: 1002;
        box-shadow: 4px 0 16px rgba(0,0,0,0.1);
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-sidebar-toggle {
        display: flex;
    }

    .docs-main {
        margin-left: 0;
        padding: 56px 20px 80px;
    }
}

@media (max-width: 600px) {
    .docs-navbar-links a:not(.docs-navbar-cta) {
        display: none;
    }

    .docs-section-title {
        font-size: 1.4rem;
    }

    .docs-subsection-title {
        font-size: 1.1rem;
    }

    .docs-table {
        font-size: 0.78rem;
    }
}
