/* =========================================================
       ROOT
    ========================================================= */

    :root {

        --blue: #2563eb;
        --blue-dark: #1d4ed8;
        --blue-soft: #eff6ff;

        --cyan: #06b6d4;

        --green: #22c55e;
        --red: #ef4444;
        --orange: #f59e0b;

        --dark: #07111f;
        --dark-2: #0d1b2d;
        --dark-3: #12243a;

        --text: #64748b;
        --text-dark: #334155;

        --border: #e2e8f0;

        --light: #f8fafc;

        --white: #ffffff;

        --radius: 12px;

    }


    /* =========================================================
       RESET
    ========================================================= */

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }


    html {
        scroll-behavior: smooth;
    }


    body {

        font-family:
            Inter,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Roboto,
            Arial,
            sans-serif;

        background: var(--white);

        color: var(--text-dark);

        line-height: 1.6;

        overflow-x: hidden;

    }


    a {

        color: inherit;

        text-decoration: none;

    }


    button,
    input {

        font-family: inherit;

    }


    code,
    pre {

        font-family:
            "SFMono-Regular",
            Consolas,
            "Liberation Mono",
            monospace;

    }


    /* =========================================================
       HEADER
    ========================================================= */

    .docs-header {

        position: fixed;

        top: 0;
        left: 0;
        right: 0;

        height: 68px;

        z-index: 9999;

        display: flex;

        align-items: center;

        background:
            rgba(255,255,255,.96);

        border-bottom:
            1px solid var(--border);

        backdrop-filter:
            blur(15px);

    }


    .header-inner {

        width:
            min(1400px, calc(100% - 40px));

        height: 100%;

        margin: auto;

        display: flex;

        align-items: center;

        justify-content: space-between;

    }


    .brand {

        display: flex;

        align-items: center;

    }


    .brand img {

        width: 155px;

        max-height: 42px;

        object-fit: contain;

    }


    .docs-title {

        margin-left: 20px;

        padding-left: 20px;

        border-left:
            1px solid var(--border);

        color: #64748b;

        font-size: 12px;

        font-weight: 700;

    }


    .header-right {

        display: flex;

        align-items: center;

        gap: 10px;

    }


    .version {

        padding: 5px 9px;

        border-radius: 6px;

        background: var(--blue-soft);

        color: var(--blue);

        font-size: 10px;

        font-weight: 800;

    }


    .back-home {

        padding: 8px 13px;

        border-radius: 8px;

        color: #64748b;

        font-size: 11px;

        font-weight: 700;

        transition: .2s;

    }


    .back-home:hover {

        color: var(--blue);

        background: var(--blue-soft);

    }


    /* =========================================================
       LAYOUT
    ========================================================= */

    .docs-layout {

        display: grid;

        grid-template-columns:
            260px minmax(0, 1fr);

        max-width: 1400px;

        margin: auto;

        padding-top: 68px;

    }


    /* =========================================================
       SIDEBAR
    ========================================================= */

    .sidebar {

        position: sticky;

        top: 68px;

        height:
            calc(100vh - 68px);

        overflow-y: auto;

        padding:
            30px 20px;

        border-right:
            1px solid var(--border);

        background: #fff;

    }


    .sidebar-title {

        margin-bottom: 12px;

        color: #94a3b8;

        font-size: 9px;

        font-weight: 900;

        letter-spacing: 1.3px;

        text-transform: uppercase;

    }


    .sidebar-group {

        margin-bottom: 25px;

    }


    .sidebar a {

        display: flex;

        align-items: center;

        gap: 9px;

        padding: 8px 10px;

        margin-bottom: 3px;

        border-radius: 7px;

        color: #64748b;

        font-size: 11px;

        font-weight: 600;

        transition: .2s;

    }


    .sidebar a:hover {

        color: var(--blue);

        background: var(--blue-soft);

    }


    .sidebar a.active {

        color: var(--blue);

        background: var(--blue-soft);

        font-weight: 800;

    }


    .sidebar .method {

        width: 31px;

        padding: 2px 0;

        text-align: center;

        border-radius: 4px;

        font-size: 7px;

        font-weight: 900;

    }


    .method-get {

        background: #dcfce7;

        color: #15803d;

    }


    .method-post {

        background: #dbeafe;

        color: #1d4ed8;

    }


    /* =========================================================
       MAIN DOCUMENTATION
    ========================================================= */

    .docs-content {

        min-width: 0;

        padding:
            55px 70px 100px;

    }


    .content-inner {

        max-width: 900px;

    }


    /* =========================================================
       INTRO
    ========================================================= */

    .eyebrow {

        display: inline-block;

        margin-bottom: 10px;

        color: var(--blue);

        font-size: 10px;

        font-weight: 900;

        letter-spacing: 1.5px;

        text-transform: uppercase;

    }


    .intro h1 {

        margin-bottom: 15px;

        color: #0f172a;

        font-size:
            clamp(32px, 4vw, 48px);

        line-height: 1.1;

        letter-spacing: -1.5px;

    }


    .intro p {

        max-width: 720px;

        color: var(--text);

        font-size: 14px;

    }


    /* =========================================================
       INFO BOX
    ========================================================= */

    .info-box {

        display: flex;

        gap: 13px;

        margin-top: 30px;

        padding: 18px;

        border:
            1px solid #bfdbfe;

        border-radius: 10px;

        background: var(--blue-soft);

    }


    .info-icon {

        flex: 0 0 32px;

        width: 32px;
        height: 32px;

        display: flex;

        align-items: center;
        justify-content: center;

        border-radius: 8px;

        background: #dbeafe;

        color: var(--blue);

        font-size: 14px;

    }


    .info-box strong {

        display: block;

        margin-bottom: 3px;

        color: #1e40af;

        font-size: 12px;

    }


    .info-box p {

        color: #475569;

        font-size: 11px;

    }


    /* =========================================================
       SECTIONS
    ========================================================= */

    .doc-section {

        padding-top: 75px;

        scroll-margin-top: 90px;

    }


    .doc-section h2 {

        margin-bottom: 10px;

        color: #0f172a;

        font-size: 26px;

        letter-spacing: -.7px;

    }


    .doc-section h3 {

        margin-top: 35px;

        margin-bottom: 10px;

        color: #0f172a;

        font-size: 17px;

    }


    .doc-section p {

        color: var(--text);

        font-size: 13px;

    }


    /* =========================================================
       BASE URL
    ========================================================= */

    .base-url {

        margin-top: 20px;

        padding: 16px;

        border:
            1px solid var(--border);

        border-radius: 10px;

        background: #0b1628;

        color: #67e8f9;

        font-family: monospace;

        font-size: 12px;

    }


    .base-label {

        display: block;

        margin-bottom: 8px;

        color: #64748b;

        font-family: inherit;

        font-size: 9px;

        font-weight: 800;

        text-transform: uppercase;

        letter-spacing: 1px;

    }


    /* =========================================================
       AUTH
    ========================================================= */

    .auth-card {

        margin-top: 20px;

        padding: 20px;

        border:
            1px solid var(--border);

        border-radius: 12px;

        background: #fff;

    }


    .auth-row {

        display: grid;

        grid-template-columns:
            150px 1fr;

        gap: 20px;

        padding: 13px 0;

        border-bottom:
            1px solid var(--border);

    }


    .auth-row:last-child {

        border-bottom: none;

    }


    .auth-key {

        color: #0f172a;

        font-size: 11px;

        font-weight: 800;

    }


    .auth-value {

        color: var(--text);

        font-size: 11px;

    }


    .auth-value code {

        padding: 4px 7px;

        border-radius: 5px;

        background: #f1f5f9;

        color: #475569;

        font-size: 10px;

    }


    /* =========================================================
       ENDPOINT
    ========================================================= */

    .endpoint-card {

        margin-top: 25px;

        overflow: hidden;

        border:
            1px solid var(--border);

        border-radius: 12px;

        background: white;

    }


    .endpoint-header {

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 15px;

        padding: 13px 15px;

        background: #f8fafc;

        border-bottom:
            1px solid var(--border);

    }


    .endpoint-left {

        display: flex;

        align-items: center;

        gap: 10px;

        min-width: 0;

    }


    .endpoint-method {

        flex: 0 0 auto;

        padding: 5px 8px;

        border-radius: 5px;

        font-size: 8px;

        font-weight: 900;

    }


    .endpoint-method.get {

        background: #dcfce7;

        color: #15803d;

    }


    .endpoint-method.post {

        background: #dbeafe;

        color: #1d4ed8;

    }


    .endpoint-url {

        overflow: hidden;

        color: #334155;

        font-family: monospace;

        font-size: 11px;

        font-weight: 600;

        text-overflow: ellipsis;

        white-space: nowrap;

    }


    .copy-btn {

        flex: 0 0 auto;

        padding: 6px 9px;

        border:
            1px solid var(--border);

        border-radius: 6px;

        background: white;

        color: #64748b;

        cursor: pointer;

        font-size: 9px;

        font-weight: 800;

    }


    .copy-btn:hover {

        color: var(--blue);

        border-color: #bfdbfe;

        background: var(--blue-soft);

    }


    /* =========================================================
       PARAMETER TABLE
    ========================================================= */

    .table-wrap {

        margin-top: 20px;

        overflow-x: auto;

        border:
            1px solid var(--border);

        border-radius: 10px;

    }


    table {

        width: 100%;

        border-collapse: collapse;

    }


    th {

        padding: 11px 13px;

        background: #f8fafc;

        color: #64748b;

        font-size: 9px;

        text-align: left;

        text-transform: uppercase;

        letter-spacing: .5px;

    }


    td {

        padding: 12px 13px;

        border-top:
            1px solid var(--border);

        color: #64748b;

        font-size: 10px;

        vertical-align: top;

    }


    td strong {

        color: #334155;

    }


    td code {

        padding: 3px 6px;

        border-radius: 4px;

        background: #f1f5f9;

        color: #475569;

        font-size: 9px;

    }


    .required {

        color: var(--red);

        font-size: 8px;

        font-weight: 900;

    }


    /* =========================================================
       CODE BLOCK
    ========================================================= */

    .code-block {

        position: relative;

        margin-top: 18px;

        overflow: hidden;

        border-radius: 10px;

        background: #07111f;

    }


    .code-header {

        display: flex;

        align-items: center;

        justify-content: space-between;

        padding: 10px 13px;

        background: #0d1b2d;

        border-bottom:
            1px solid rgba(255,255,255,.06);

    }


    .code-language {

        color: #64748b;

        font-size: 9px;

        font-weight: 800;

        text-transform: uppercase;

    }


    .code-copy {

        border: none;

        background: transparent;

        color: #64748b;

        cursor: pointer;

        font-size: 9px;

        font-weight: 800;

    }


    .code-copy:hover {

        color: #60a5fa;

    }


    pre {

        padding: 20px;

        overflow-x: auto;

        color: #94a3b8;

        font-size: 11px;

        line-height: 1.8;

    }


    .json-key {

        color: #c084fc;

    }


    .json-string {

        color: #67e8f9;

    }


    .json-number {

        color: #fbbf24;

    }


    .json-boolean {

        color: #4ade80;

    }


    /* =========================================================
       STATUS
    ========================================================= */

    .status-list {

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;

        margin-top: 20px;

    }


    .status-item {

        display: flex;

        align-items: center;

        gap: 10px;

        padding: 13px;

        border:
            1px solid var(--border);

        border-radius: 9px;

    }


    .status-code {

        padding: 4px 7px;

        border-radius: 5px;

        font-family: monospace;

        font-size: 9px;

        font-weight: 900;

    }


    .status-200 {

        background: #dcfce7;

        color: #15803d;

    }


    .status-400 {

        background: #fef3c7;

        color: #b45309;

    }


    .status-401 {

        background: #fee2e2;

        color: #b91c1c;

    }


    .status-500 {

        background: #fee2e2;

        color: #991b1b;

    }


    .status-item span {

        color: #64748b;

        font-size: 10px;

    }


    /* =========================================================
       FOOTER
    ========================================================= */

    .docs-footer {

        margin-top: 100px;

        padding-top: 30px;

        border-top:
            1px solid var(--border);

        color: #94a3b8;

        font-size: 10px;

    }


    /* =========================================================
       MOBILE
    ========================================================= */

    .mobile-menu-btn {

        display: none;

        padding: 8px 10px;

        border:
            1px solid var(--border);

        border-radius: 7px;

        background: white;

        color: #475569;

        cursor: pointer;

    }


    @media(max-width: 900px) {

        .docs-layout {

            grid-template-columns: 220px 1fr;

        }

        .docs-content {

            padding:
                45px 35px 80px;

        }

        .docs-title {

            display: none;

        }

    }


    @media(max-width: 700px) {

        .header-inner {

            width:
                calc(100% - 28px);

        }

        .brand img {

            width: 125px;

        }

        .header-right .back-home {

            display: none;

        }

        .mobile-menu-btn {

            display: block;

        }

        .docs-layout {

            display: block;

        }

        .sidebar {

            position: fixed;

            left: -280px;

            top: 68px;

            width: 260px;

            height:
                calc(100vh - 68px);

            z-index: 999;

            transition: .3s;

            box-shadow:
                10px 0 30px rgba(15,23,42,.08);

        }

        .sidebar.active {

            left: 0;

        }

        .docs-content {

            padding:
                40px 20px 70px;

        }

        .auth-row {

            grid-template-columns: 1fr;

            gap: 5px;

        }

        .status-list {

            grid-template-columns: 1fr;

        }

        .endpoint-header {

            align-items: flex-start;

            flex-direction: column;

        }

        .endpoint-url {

            white-space: normal;

            word-break: break-all;

        }

    }
