/* ===== Fonts ===== */
body {
    font-family: 'Inter', sans-serif;
}

code, pre, kbd, samp, .font-monospace {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== Sidebar fixed positioning (Bootstrap has no fixed sidebar) ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

.sidebar {
    background: #1a1e2e;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

@media (min-width: 1200px) {
    .sidebar-offcanvas {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 25vw;
        z-index: 1000;
        visibility: visible !important;
        transform: none !important;
        overflow-y: auto;
    }

    .main-content {
        margin-left: 25vw;
    }
}

@media (max-width: 1199.98px) {
    .main-content {
        margin-top: 56px;
    }

    html {
        scroll-padding-top: 80px;
    }
}

/* ===== Sidebar link states (Bootstrap has no dark sidebar nav theme) ===== */
.sidebar-link {
    color: #a4a9b8 !important;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: #ffffff !important;
    background: #252a3a;
}

.sidebar-link.active {
    color: #ffffff !important;
    background: #2d3348;
    border-left-color: #4e6ef5;
}

/* ===== Method badge colors (Swagger-style, not in Bootstrap) ===== */
.method-post {
    background-color: rgba(73, 204, 144, 0.15) !important;
    color: #49cc90 !important;
}

.method-get {
    background-color: rgba(97, 175, 254, 0.15) !important;
    color: #61affe !important;
}

.method-put {
    background-color: rgba(252, 161, 48, 0.15) !important;
    color: #fca130 !important;
}

.method-delete {
    background-color: rgba(249, 62, 62, 0.15) !important;
    color: #f93e3e !important;
}

/* ===== Table word-break for long hashes ===== */
.endpoint-card-body .table {
    table-layout: fixed;
    word-break: break-all;
}

/* ===== Monospace field names in tables ===== */
.endpoint-card-body .table tbody th {
    font-family: 'JetBrains Mono', monospace;
    color: #4e6ef5;
}

/* ===== Dark code blocks (Bootstrap has no dark pre theme) ===== */
.endpoint-card-body pre {
    background: #1e2a3a;
    color: #e4e8f0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.5rem;
    padding-right: 4.5rem;
}

/* ===== Copy button (no Bootstrap equivalent) ===== */
.code-wrapper {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #6c7293;
    cursor: pointer;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.copy-btn.copied {
    background: rgba(73, 204, 144, 0.2);
    color: #49cc90;
    border-color: rgba(73, 204, 144, 0.3);
}
