:root {
    --bg-color: #fcfcfc;
    --text-color: #1a1a1a;
    --sidebar-bg: #f3f3f3;
    --border-color: #e5e5e5;
    --accent-color: #0066cc;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    height: 100vh;
    overflow: hidden;
    line-height: 1.6;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%;
    overflow: hidden;
}

.search-container {
    margin-bottom: 24px;
}

#searchInput {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

#searchInput:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

nav {
    flex: 1;
    overflow-y: auto;
    /* hide scrollbar but still scrollable */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 8px;
}

nav a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

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

/* Main Content Styling */
.content {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.searchable-section {
    margin-bottom: 48px;
    max-width: 800px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    color: #000;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #111;
}

.section-content p {
    margin-bottom: 16px;
    font-size: 15px;
}

.section-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
    font-size: 15px;
}

.section-content li {
    margin-bottom: 6px;
}

pre {
    background-color: #f1f1f1;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    border: 1px solid var(--border-color);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: #f1f1f1;
    padding: 2px 4px;
    border-radius: 3px;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
    }
    .content {
        padding: 20px;
    }
}
