@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* ── HTTP Method Badges ── */
.badge-method {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Inter', monospace;
    text-transform: uppercase;
    min-width: 52px;
    text-align: center;
    vertical-align: middle;
}
.badge-method.get  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.badge-method.post { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.badge-method.put  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-method.del  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Code Blocks ── */
.code-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.83rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}
.code-block code { background: none; padding: 0; color: #1e293b; }

/* ── Section Hero ── */
.section-hero { border-bottom: 2px solid #e2e8f0; padding-bottom: 1rem; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Endpoint Cards ── */
.endpoint-card { border-radius: 10px !important; transition: box-shadow 0.2s ease; }
.endpoint-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.10) !important; }
.endpoint-card .card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 10px 10px 0 0 !important;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    gap: 8px;
}

/* ── Docs Section spacing ── */
.docs-section, .endpoint-card, [id] { scroll-margin-top: 80px; }

/* ── Sidebar method badges ── */
.method-badge { font-size: 0.65rem !important; padding: 2px 5px !important; }
.method-badge.method-get   { background: #d1fae5 !important; color: #065f46 !important; }
.method-badge.method-post  { background: #dbeafe !important; color: #1e40af !important; }
.method-badge.method-put   { background: #fef3c7 !important; color: #92400e !important; }
.method-badge.method-delete{ background: #fee2e2 !important; color: #991b1b !important; }
.method-badge.method-filter{ background: #f3e8ff !important; color: #6b21a8 !important; }
.method-badge.method-token { background: #fef3c7 !important; color: #78350f !important; }
.method-badge.method-cookie{ background: #ecfdf5 !important; color: #064e3b !important; }
.method-badge.method-error { background: #fee2e2 !important; color: #7f1d1d !important; }

body {
    padding-top: 56px;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    height: 100%;
    font-style: normal;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll on small screens */
}

/* Ensure the footer has a background color and is aligned at the bottom */
.footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #fdfeff;
}

.bd-callout-info {
    --bd-callout-color: var(--bs-warning-text-emphasis);
    --bd-callout-bg: var(--bs-warning-bg-subtle);
    --bd-callout-border: var(--bs-warning-border-subtle);
}

.bd-callout {
    --bs-link-color-rgb: var(--bd-callout-link);
    --bs-code-color: var(--bd-callout-code-color);
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--bd-callout-color, inherit);
    border-left: 0.55rem solid var(--bd-callout-border, var(--bs-gray-300));
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    height: 100%;
    max-width: 300px;
    padding: 1.5rem;
    background-color: #f8f9fa;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.main-content {
    margin-left: 320px;
    padding: 1.5rem;
    transition: margin-left 0.3s ease;
}

.search-bar {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
}

.navbar-brand img {
    height: 40px;
    transition: height 0.3s ease;
}

.hidden {
    display: none;
}

.card-header {
    font-weight: 600;
    background-color: #e9ecef;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
}

.response-example {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
}

.response-example::-webkit-scrollbar {
    width: 12px;
}

.response-example::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.response-example::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.response-example::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.response-example {
    scrollbar-width: thin;
    scrollbar-color: rgb(2, 85, 194) #fafafa;
}

.copy-btn {
    cursor: pointer;
    font-size: 0.9rem;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e0e0e0;
    background: #ffffff;
    border: 1px solid #007bff;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
}

.copy-btn:hover {
    background-color: #e9ecef;
}

.dropdown-item {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sidebar {
        max-width: 250px;
        padding: 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        max-width: 100%;
        height: auto;
        overflow: visible;
        transition: transform 0.3s ease;
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .navbar-brand img {
        height: 30px;
    }

    .search-bar {
        max-width: 100%;
        margin: 0;
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .sidebar {
        padding: 0.75rem;
    }

    .card-header {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .response-example {
        padding: 0.75rem;
    }

    .copy-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

.method-get {
    color: green;
}

.method-post {
    color: blue;
}

.method-put {
    color: orange;
}

.method-delete {
    color: red;
}

.colors-text {
    font-size: 10px;
    font-weight: 700;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body {
    scrollbar-width: thin;
    scrollbar-color: rgb(2, 85, 194) #fafafa;
}
