:root {
    --primary: #e74c3c;
    --text-main: #333333;
    --text-light: #666666;
    --bg-body: #ffffff;
    --bg-sidebar: #f8f9fa;
    --bg-code: #2c3e50;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    display: flex;
}

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

.sidebar h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.sidebar ul {
    list-style: none;
}

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

.sidebar a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar a:hover {
    color: var(--primary);
    background-color: #eeeeee;
}

.sidebar a.active {
    color: white;
    background-color: var(--primary);
}

/* Main content styles */
.content {
    margin-left: 250px;
    padding: 3rem 4rem;
    max-width: 900px;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Code styles */
code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background-color: #f1f3f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d6336c;
}

pre {
    background-color: var(--bg-code);
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

pre code {
    background-color: transparent;
    color: #f8f9fa;
    padding: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    .content {
        margin-left: 0;
        padding: 2rem;
    }
}
