:root {
    --primary: #0071e3;
    --secondary: #88888b;
    --bg-light: #ffffff;
    --sidebar-bg: #f5f5f7;
    --text-main: #1d1d1f;
    --code-bg: #111111;
    --accent-success: #34c759;
    --accent-warning: #ff9f0a;
    --accent-danger: #ff3b30;
    --border-color: #d2d2d7;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #424245;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    margin-bottom: 2px;
}

.nav-link:hover, .nav-link.active {
    background: #e8e8ed;
    color: var(--primary);
}

/* Content */
.main-wrapper { margin-left: 260px; display: flex; }
.doc-content { flex: 1; padding: 4rem; max-width: 900px; }

/* Right Panel (Beautified) */
.code-panel {
    width: 480px;
    background: var(--code-bg);
    color: #ffffff;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem;
    overflow-y: auto;
    border-left: 1px solid #333;
}

.code-block-container {
    background: #1c1c1e;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #333;
}

.code-tabs {
    display: flex;
    background: #2c2c2e;
    padding: 0 10px;
    border-bottom: 1px solid #333;
}

.tab-btn {
    background: none;
    border: none;
    color: #888;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

pre {
    margin: 0;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #d4d4d4;
    overflow-x: auto;
}

/* Interactive Console UI */
.console-card {
    background: #1c1c1e;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #333;
}

.console-input {
    background: #2c2c2e !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
}

.console-label {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

/* API Badges */
.method-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    color: #fff;
    margin-right: 10px;
}
.method-badge.get { background: var(--accent-success); }
.method-badge.post { background: var(--primary); }
.method-badge.error { background: var(--accent-danger); }


h1 { font-size: 32px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px; }
h2 { font-size: 24px; font-weight: 600; margin-top: 40px; margin-bottom: 15px; }
p { font-size: 15px; line-height: 1.6; color: #424245; }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .main-wrapper { flex-direction: column; margin-left: 260px; }
    .code-panel { width: 100%; height: auto; position: relative; border-left: none; border-top: 1px solid #333; }
    .doc-content { padding: 2rem; max-width: 100%; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; z-index: 2000; }
    .sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .mobile-header { display: flex !important; }
    .doc-content { padding: 4rem 1.5rem 2rem 1.5rem; }
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1500;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

