:root {
    --bg-left: #0e1116;
    --bg-right: #05070a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --accent-hover: #818cf8;
    --code-bg: #0f141f;
    --border-color: #1e293b;
    
    /* Syntax Highlighting */
    --syn-keyword: #c678dd;
    --syn-string: #98c379;
    --syn-function: #61afef;
    --syn-variable: #e06c75;
    --syn-comment: #5c6370;
    --syn-number: #d19a66;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-left);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
}

/* Layout */
.sidebar {
    width: 250px;
    position: fixed;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    background: var(--bg-left);
    z-index: 10;
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    display: flex;
    flex-direction: column;
}

.section {
    display: flex;
    min-height: 100vh;
    border-bottom: 1px solid var(--border-color);
}

.content-pane {
    flex: 1;
    padding: 4rem;
    max-width: 800px;
}

.code-pane {
    flex: 1;
    background-color: var(--bg-right);
    border-left: 1px solid var(--border-color);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Styles */
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: block;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* Typography & Content */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    margin-bottom: 1rem;
}

.badge.post {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
th, td {
    text-align: left;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
th {
    color: #fff;
    font-weight: 600;
}
td {
    color: var(--text-secondary);
}
td code {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Code Viewer */
.code-window {
    background: var(--code-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

.code-header {
    display: flex;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: #fff;
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(255,255,255,0.03);
}

.code-content {
    padding: 1.5rem;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #abb2bf;
    overflow-x: auto;
    white-space: pre;
}

.snippet {
    display: none;
    animation: fadeIn 0.3s ease;
}
.snippet.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Syntax colors */
.kw { color: var(--syn-keyword); }
.str { color: var(--syn-string); }
.func { color: var(--syn-function); }
.var { color: var(--syn-variable); }
.com { color: var(--syn-comment); font-style: italic; }
.num { color: var(--syn-number); }

/* Request / Response block headers */
.block-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.alert {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    color: #fca5a5;
    font-size: 0.9rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5rem;
}

/* Responsive constraints for smaller screens */
@media (max-width: 1200px) {
    .section {
        flex-direction: column;
    }
    .content-pane, .code-pane {
        max-width: 100%;
        border-left: none;
    }
    .code-pane {
        border-top: 1px solid var(--border-color);
}

/* New Styles for Mintlify Aesthetic Upgrade */
.badge.get {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.2);
}

.badge-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
}

.type-tag {
    font-family: 'Fira Code', ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.model-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-success {
    background: rgba(52, 211, 153, 0.1);
    border-left-color: #34d399;
    color: #a7f3d0;
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border-left-color: #6366f1;
    color: #a5b4fc;
}

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-rose-500 { color: #f43f5e !important; }

/* Navigation categories */
.nav-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

/* Download Cards */
.download-cards {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.download-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.download-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.download-card span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.icon-lg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

/* Empty pane watermarks */
.empty-pane {
    justify-content: center;
    align-items: center;
}

.watermark {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    opacity: 0.3;
}

.watermark-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.watermark p {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin: 0;
}

