:root {
    --bg-color: #0d1117;
    --sidebar-bg: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --border-color: #30363d;
    --code-bg: #161b22;
    --header-border: #21262d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar a:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.sidebar a.active {
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
}

/* Main Content */
.content {
    margin-left: 280px;
    padding: 3rem 4rem;
    max-width: 1000px;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 1px solid var(--header-border);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--header-border);
    padding-bottom: 0.3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul,
ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.25rem;
}

/* Code Blocks */
pre {
    background-color: var(--code-bg);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

code {
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.9em;
}

p code,
li code {
    background-color: rgba(110, 118, 129, 0.4);
    padding: 0.2em 0.4em;
    border-radius: 6px;
}

blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }

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