:root {
    --primary-color: #4f46e5;
    --primary-light: #eef2ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-sidebar: #f8fafc;
    --bg-content: #ffffff;
    --border-color: #e2e8f0;
    --accent-success: #10b981;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.75;
    /* Improved readability */
    background-color: var(--bg-content);
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container-fluid {
    display: flex;
    min-height: 100vh;
}

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

.logo-container {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    list-style: none;
}

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

.nav-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.nav-item a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: all 0.2s;
}

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

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

/* Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 4rem 6rem;
    max-width: 1200px;
}

section {
    margin-bottom: 4rem;
    scroll-margin-top: 4rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: #475569;
}

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

li {
    margin-bottom: 0.875rem;
    color: #475569;
}

li strong {
    color: var(--text-main);
    font-weight: 600;
}

ul {
    list-style-type: none;
}

ul>li {
    position: relative;
    padding-left: 1.5rem;
}

ul>li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5rem;
}

ul ul,
ol ol,
ul ol,
ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Code Blocks */
pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.875rem;
}

code {
    font-family: 'Fira Code', 'Monaco', monospace;
    background-color: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-sidebar);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Tips/Alerts */
.alert {
    padding: 1.25rem 1.75rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 5px solid #cbd5e1;
    background-color: #f8fafc;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

.alert-info {
    border-left-color: var(--primary-color);
    background-color: var(--primary-light);
}

.alert-warning {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
}

/* Images */
.img-wrapper {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--bg-sidebar);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.img-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.img-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mode-tag {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: normal;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 9999px;
    margin-left: 0.4rem;
    vertical-align: baseline;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

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