* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    background: #f8f9fc;
    color: #333;
}

/* TOPBAR */
.topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e6e8ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.top-left {
    display: flex;
    gap: 25px;
}

.dropdown {
    font-size: 13px;
    color: #777;
}

.dropdown span {
    color: #ff6b3d;
    font-weight: 600;
    margin-left: 5px;
}

.run-btn {
    background: #ff6b3d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.run-btn:hover {
    background: #e85a2d;
}

/* LAYOUT */
.container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e6e8ef;
    padding: 20px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #999;
}

.menu {
    list-style: none;
}

.menu-title {
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
}

.menu-title:hover {
    background: #f2f3f7;
}

.submenu {
    list-style: none;
    margin-top: 5px;
    display: none;
}

.menu-item.open .submenu {
    display: block;
}

.submenu li {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
}

.submenu li:hover {
    background: #f4f5fa;
}

.submenu .active {
    background: #ffece7;
    color: #ff6b3d;
    font-weight: 600;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.method {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    margin-right: 10px;
}

.post {
    background: #ffece7;
    color: #ff6b3d;
    font-weight: 600;
}

.endpoint {
    background: #eef1f6;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 25px;
}

section {
    margin-bottom: 30px;
}

h3 {
    margin-bottom: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th, table td {
    border: 1px solid #e6e8ef;
    padding: 12px;
}

table th {
    background: #f4f6fb;
}

.code-box {
    background: #f4f6fb;
    padding: 15px;
    border-radius: 6px;
    white-space: pre-line;
}

/* RIGHT PANEL */
.right-panel {
    width: 400px;
    background: #1e1f26;
    color: #fff;
    padding: 25px;
    overflow-y: auto;
}

.panel-section {
    margin-bottom: 30px;
}

.right-panel h3 {
    margin-bottom: 12px;
    font-size: 15px;
}

.right-panel pre {
    background: #2b2d36;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
}

.right-panel {
    width: 420px;
    background: linear-gradient(180deg, #2b2c31, #1f2025);
    color: #fff;
    padding: 25px;
    overflow-y: auto;
}

/* Section spacing */
.example-block {
    margin-bottom: 40px;
}

/* Header */
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.block-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.endpoint-title {
    font-size: 14px;
    color: #ddd;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.tabs span {
    cursor: pointer;
    color: #bbb;
}

.tabs .active {
    color: #fff;
    border-bottom: 2px solid #ff6b3d;
    padding-bottom: 4px;
}

.tabs .status {
    margin-left: auto;
    background: #2d2f36;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Code Wrapper */
.code-wrapper {
    background: #111216;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #2f3036;
}

/* Top bar inside code */
.code-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #1b1c21;
    border-bottom: 1px solid #2f3036;
}

.code-label {
    background: #2b2c31;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #ccc;
}

.code-actions .icon {
    cursor: pointer;
    font-size: 14px;
    color: #aaa;
}

/* Code block */
.code-block {
    padding: 18px;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    font-family: Consolas, monospace;
}

/* Syntax colors */
.key {
    color: #ff5c93;
}

.str {
    color: #a6e22e;
}

.num {
    color: #66d9ef;
}

/* Fade effect */
.fade-bottom::after {
    content: "";
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(17,18,22,0), #111216);
}

.view-more {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d2f36;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}
.tab {
    cursor: pointer;
    padding-bottom: 4px;
}

.tab.active {
    color: #fff;
    border-bottom: 2px solid #ff6b3d;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
.content {
    flex: 1;
    padding: 35px 40px;
    background: #f7f8fb;
    overflow-y: auto;
}

/* Title */
.endpoint-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.method {
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    letter-spacing: 0.5px;
}

.endpoint-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* Endpoint box */
.endpoint-box {
    background: #eceef3;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 35px;
    color: #333;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.subheading {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Table */
.table-wrapper {
    border: 1px solid #e3e6ed;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #f2f4f8;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e3e6ed;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Headers section */
.header-row {
    display: flex;
    gap: 60px;
    padding: 12px 0;
    font-size: 14px;
}

.header-name {
    width: 200px;
    font-weight: 500;
}

.header-value {
    color: #555;
}

/* Body section */
.body-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.body-heading h4 {
    font-size: 16px;
}

.body-type {
    color: #9aa0a6;
    font-size: 14px;
}

.body-row {
    display: flex;
    gap: 60px;
    margin-bottom: 25px;
}

.body-key {
    width: 200px;
    font-weight: 500;
}

.body-value {
    font-size: 14px;
}

.meta {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}
/* Syntax colors */
.json-modal-body .key {
    color: #ff5c93;
}

.json-modal-body .string {
    color: #a6e22e;
}

.json-modal-body .number {
    color: #66d9ef;
}

.json-modal-body .boolean {
    color: #fd971f;
}

.json-modal-body .null {
    color: #f44747;
}
/* JSON MODAL */
.json-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.json-modal.active {
    display: flex;
}

.json-modal-content {
    width: 80%;
    max-height: 85vh;
    background: #111216;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.json-modal-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #1b1c21;
    border-bottom: 1px solid #2f3036;
}

.json-modal-body {
    padding: 20px;
    overflow: auto;
    font-size: 13px;
}

/* =========================
   LAYOUT STRUCTURE
========================= */

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    /* background: #0f1014; */
    transition: transform 0.3s ease;
}

/* Main content + right panel wrapper */
.content {
    flex: 1;
    padding: 20px;
}

.right-panel {
    flex: 1;
    padding: 20px;
}

/* Equal width layout */
.content,
.right-panel {
    width: 50%;
}

/* =========================
   MOBILE MENU BUTTON
========================= */

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: #111;
    color: white;
    border: none;
    font-size: 22px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}


/* =========================
   RESPONSIVE (TABLET + MOBILE)
========================= */

@media (max-width: 992px) {

    .container {
        flex-direction: column;
    }

    /* Sidebar hidden */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 240px;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Show menu button */
    .mobile-menu-btn {
        display: block;
    }

    /* Content full width */
    .content {
        width: 100%;
        padding: 15px;
        margin-top: 60px;
    }

    /* Right panel below content */
    .right-panel {
        width: 100%;
        padding: 15px;
    }
}

/* Mobile Sidebar Header */
.sidebar-mobile-header {
    display: none;
}

/* Close button */
.close-sidebar {
    font-size: 22px;
    cursor: pointer;
}
.json-modal-header span{
    color: #fff;
}
.json-modal-header span.close-modal{
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 992px) {

    .sidebar-mobile-header {
        display: flex;
        justify-content: flex-end;
        padding: 15px;
        /* border-bottom: 1px solid #222; */
    }

    /* Hide hamburger when sidebar open */
    .mobile-menu-btn.hidden {
        display: none;
    }
}


