:root {
    --bg-color: #0f1115;
    --text-color: #e0e0e0;
    --primary-color: #3b82f6;
    --sidebar-width: 280px;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --code-bg: #1a1d23;
    --accent-color: #60a5fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(96, 165, 250, 0.05) 0%, transparent 40%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
    overflow-y: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    padding-left: 12px;
    font-weight: 600;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-color);
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 60px;
    scroll-behavior: smooth;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

p {
    margin-bottom: 1.2rem;
    color: #9ca3af;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Cards & Sections */
.endpoint-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.endpoint-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.method.get {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.method.post {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.method.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.method.put {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.endpoint-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.endpoint-desc {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 0;
}

/* Code Blocks */
pre {
    background: var(--code-bg);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    position: relative;
}

code {
    font-family: 'JetBrains Mono', monospace;
    color: #e5e7eb;
}

.inline-code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #fff;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    font-size: 0.9rem;
    color: #d1d5db;
}

tr:last-child td {
    border-bottom: none;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.03);
}

.alert-info {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.alert-warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .main-content {
        padding: 20px;
    }
}