:root {
    --color-bg: #0d1117;
    --color-text: #c9d1d9;
    --color-muted: #8b949e;
    --color-primary: #30a14e;
    --color-primary-light: rgba(48, 161, 78, 0.18);
    --color-border: #30363d;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    border-bottom: 1px solid var(--color-border);
    z-index: 1001;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-brand:hover {
    color: #40c060;
}

.navbar-logo {
    height: 60px;
    width: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.navbar-link {
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-primary);
}

.btn-login {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-login:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 12px rgba(48, 161, 78, 0.4);
}

/* Documentation Layout */
.docs-layout {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: rgba(13, 17, 23, 0.95);
    border-right: 1px solid var(--color-border);
    padding: 1.5rem 0;
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.sidebar-nav {
    padding: 0 0.5rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    font-weight: 700;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 0.25rem 0;
}

.nav-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.nav-link.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-sub {
    padding-left: 2rem;
    font-size: 0.85rem;
}

.sidebar-search {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(13, 17, 23, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

/* Main Content */
.docs-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    max-width: 900px;
}

.docs-container {
    max-width: 100%;
}

.docs-content h1 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.docs-content h2 {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 80px;
}

.docs-content h3 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.docs-content .lead {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.docs-content ul,
.docs-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.docs-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.docs-content a:hover {
    border-bottom-color: var(--color-primary);
}

.docs-content code {
    background: rgba(48, 161, 78, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--color-primary);
}

.docs-content pre {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: var(--color-text);
}

.docs-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--color-muted);
    font-style: italic;
}

.docs-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .docs-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .docs-content h1 {
        font-size: 2rem;
    }

    .docs-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .top-navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-link {
        display: none;
    }
}
