:root {
    --bg-body: #0f172a;
    --bg-sidebar: #1e293b;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --method-get: #4ade80;
    --method-post: #facc15;
    --code-bg: #0b1120;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform 0.3s ease;
}

.sidebar-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    font-size: 10px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    padding: 2px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

.version {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    font-family: 'Fira Code', monospace;
    opacity: 0.8;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
    padding-left: 12px;
}

.nav-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.nav-link.active {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    border-color: rgba(56, 189, 248, 0.2);
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 48px 64px;
    max-width: 1200px;
    width: calc(100% - 280px); 
}

section {
    margin-bottom: 80px;
    scroll-margin-top: 40px;
    position: relative;
}

h1 {
    font-size: 42px;
    margin-bottom: 16px;
    background: linear-gradient(to right, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

h2 {
    font-size: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-top: 40px;
    font-weight: 600;
    color: var(--text-primary);
}

h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s;
}

a:hover {
    border-bottom-color: var(--accent-color);
}

/* Endpoint Card */
.endpoint-card {
    background-color: rgba(30, 41, 59, 0.5); 
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.endpoint-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1), var(--shadow-hover);
}

.method-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 6px;
    color: #0f172a;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.method-post {
    background: linear-gradient(135deg, #facc15, #eab308);
}

.method-get {
    background: linear-gradient(135deg, #4ade80, #22c55e); 
}

.url-bar {
    background-color: var(--code-bg);
    padding: 16px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.url-text {
    color: var(--accent-color);
    word-break: break-all;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-copy:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background-color: rgba(255,255,255,0.05);
}

/* Tables */
.params-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 24px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.params-table th, .params-table td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.params-table th {
    background-color: rgba(0,0,0,0.2);
    color: var(--text-secondary);
    font-weight: 600;
    width: 30%;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.params-table tr:last-child td {
    border-bottom: none;
}

.param-name {
    font-family: 'Fira Code', monospace;
    color: var(--accent-color);
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.param-type {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    display: block;
    margin-top: 4px;
}

/* Code Blocks */
pre {
    background-color: var(--code-bg);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
    position: relative;
}

/* Syntax Highlighting */
.json-key { color: #f472b6; }
.json-string { color: #a5f3fc; }
.json-number { color: #fbbf24; }
.json-boolean { color: #818cf8; }
.json-null { color: #94a3b8; }

.disclaimer-box {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.disclaimer-icon {
    font-size: 24px;
}

.disclaimer-content p {
    margin-bottom: 0;
    color: #fca5a5;
    font-size: 14px;
}

/* Footer */
footer {
    margin-top: 120px;
    padding-top: 40px;
    padding-bottom: 60px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 2px solid transparent;
    display: inline-block;
    padding-bottom: 4px;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
}

/* Toggle Menu */
.toggle-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 32px 24px;
    }

    .toggle-menu {
        display: block;
    }
    
    h1 { font-size: 32px; }
}
