/* =========================================================
   Gibefintech API Documentation
   ========================================================= */

:root {
    --api-primary: #6c5ce7;
    --api-primary-dark: #5648c7;
    --api-bg: #f7f8fc;
    --api-surface: #ffffff;
    --api-border: #e7e9f2;
    --api-text: #202331;
    --api-muted: #70758a;
    --api-code-bg: #171923;
    --api-code-text: #e9ecf5;
    --api-sidebar-width: 280px;
    --api-radius: 12px;
    --api-shadow: 0 8px 30px rgba(31, 35, 50, .06);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--api-bg);
    color: var(--api-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.page {
    min-height: 100vh;
    display: flex;
    background: var(--api-bg);
}

/* =========================================================
   Sidebar
   ========================================================= */

.page > aside,
.page .sidebar {
    width: var(--api-sidebar-width);
    min-width: var(--api-sidebar-width);
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    background: #11131c;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.06);
    overflow-y: auto;
    z-index: 1000;
}

.page > aside a,
.page .sidebar a {
    color: #b9bed0;
    text-decoration: none;
    transition: .2s ease;
}

.page > aside a:hover,
.page .sidebar a:hover {
    color: #fff;
}

.page > aside ul,
.page .sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page > aside li,
.page .sidebar li {
    list-style: none;
}

.page > aside .active,
.page .sidebar .active {
    color: #fff;
    background: rgba(108,92,231,.18);
}

/* =========================================================
   Main content
   ========================================================= */

.content {
    flex: 1;
    min-width: 0;
}

.content-container {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.tab-content {
    width: 100%;
}

.tab-pane {
    outline: none;
}

.tab-pane h1 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 750;
    letter-spacing: -.03em;
    color: #151824;
    margin-bottom: 28px !important;
}

.tab-pane h2 {
    font-size: 28px;
    font-weight: 720;
    letter-spacing: -.025em;
    color: #171a25;
}

.tab-pane h4 {
    font-weight: 650;
    color: #252938;
}

.tab-pane > p,
.tab-pane p {
    color: var(--api-muted);
}

.tab-pane strong {
    color: #292d3d;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
    border: 1px solid var(--api-border) !important;
    border-radius: var(--api-radius) !important;
    background: var(--api-surface);
    box-shadow: var(--api-shadow);
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid var(--api-border) !important;
    background: #fff !important;
}

.card-header h4 {
    font-size: 17px;
}

.card-body {
    background: #fff;
}

.card-text {
    color: var(--api-muted);
}

/* =========================================================
   Inline endpoint code
   ========================================================= */

p code,
li code {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f0efff;
    color: var(--api-primary-dark);
    font-size: .86em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* =========================================================
   Endpoint code blocks
   ========================================================= */

.code {
    position: relative;
    margin: 12px 0 28px;
    border: 1px solid #292d3b;
    border-radius: 12px;
    background: var(--api-code-bg);
    color: var(--api-code-text);
    box-shadow: 0 10px 28px rgba(17,19,28,.10);
    overflow: hidden;
}

.code code {
    display: block;
    color: inherit;
    background: transparent;
}

.code pre {
    margin: 0 !important;
    padding: 22px 24px;
    color: inherit;
    background: transparent;
    border: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.code .copy {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    background: rgba(255,255,255,.07);
    color: #cbd0df;
    cursor: pointer;
    transition: .2s ease;
}

.code .copy:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
    transform: translateY(-1px);
}

.code .copy.copied {
    color: #69e6a5;
}

/* =========================================================
   HTTP method + endpoint
   ========================================================= */

.code pre .method {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    margin-right: 12px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.4;
}

.code pre .method.get {
    background: rgba(56,189,248,.15);
    color: #67d5ff;
}

.code pre .method.post {
    background: rgba(108,92,231,.22);
    color: #b7adff;
}

.code pre .endpoint {
    display: inline;
    color: #f0f2f8;
    word-break: break-all;
}

/* =========================================================
   Alerts
   ========================================================= */

.alert {
    border-radius: 10px !important;
    border-width: 1px !important;
    box-shadow: none;
}

.alert-warning {
    background: #fff8e7;
    border-color: #f5dfaa;
    color: #76591b;
}

.alert-warning span,
.alert-warning i {
    color: inherit;
}

/* =========================================================
   Parameters
   ========================================================= */

.tab-pane ul {
    padding-left: 22px;
    margin-bottom: 28px;
}

.tab-pane li {
    margin-bottom: 9px;
    color: var(--api-muted);
}

.tab-pane li strong {
    font-family: "SFMono-Regular", Consolas, monospace;
    color: #34384a;
}

/* =========================================================
   Success/error responses
   ========================================================= */

.code pre.text-success {
    color: #9ae6b4 !important;
}

.code pre.text-danger {
    color: #ff9aab !important;
}

/* =========================================================
   Section spacing
   ========================================================= */

.tab-pane > .mb-4 {
    margin-bottom: 32px !important;
}

.tab-pane h4.mb-3 {
    margin-top: 28px;
}

/* =========================================================
   Scrollbars
   ========================================================= */

.page > aside::-webkit-scrollbar,
.page .sidebar::-webkit-scrollbar,
.code pre::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.page > aside::-webkit-scrollbar-thumb,
.page .sidebar::-webkit-scrollbar-thumb,
.code pre::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 20px;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 991.98px) {
    .page {
        display: block;
    }

    .page > aside,
    .page .sidebar {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: auto;
        max-height: none;
    }

    .content-container {
        width: calc(100% - 32px);
        padding: 32px 0 60px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .content-container {
        width: calc(100% - 24px);
        padding-top: 24px;
    }

    .tab-pane h1 {
        font-size: 27px;
    }

    .tab-pane h2 {
        font-size: 23px;
    }

    .card-body {
        padding: 20px !important;
    }

    .code pre {
        padding: 18px 15px;
        font-size: 12px;
    }

    .code .copy {
        right: 8px;
        top: 8px;
    }

    .code pre .method {
        margin-bottom: 7px;
    }

    .code pre .endpoint {
        display: block;
    }
}
