:root {
    --primary-color: #54A7BD;
    --secondary-color: #EB6E3D;
    --text-color: #333;
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --sidebar-text: #475569;
    --sidebar-hover: #f1f5f9;
    --sidebar-active: #e2e8f0;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.sidebar .logo img {
    max-width: 150px;
    height: auto;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 0.5rem;
}

.sidebar nav a {
    text-decoration: none;
    color: var(--sidebar-text);
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar nav a:hover {
    background-color: var(--sidebar-hover);
    color: var(--primary-color);
}

.sidebar nav a.active {
    background-color: var(--sidebar-active);
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 3rem 4rem;
    width: calc(100% - 280px);
    max-width: 1000px;
}

.main-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.main-content h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.main-content h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem;
}

.main-content p {
    margin-bottom: 1.2rem;
}

.main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.main-content ul, .main-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.main-content li {
    margin-bottom: 0.5rem;
}

.main-content pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

.main-content code {
    font-family: 'Fira Code', monospace;
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.main-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        margin-left: 240px;
        padding: 2rem;
        width: calc(100% - 240px);
    }
}

@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);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 2rem 1rem;
    }
}
/* Sidebar Nav Updates */
/* Long Sidebar CSS */
.sidebar {
    background-color: #ffffff;
    color: #4a5568;
    border-right: 1px solid #e2e8f0;
    padding: 0;
    font-size: 0.95rem;
}

.sidebar .logo {
    padding: 1.5rem;
    margin-bottom: 0;
    text-align: center;
}

.sidebar .logo img {
    max-width: 150px;
    height: auto;
}

.doc-nav {
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

.nav-group-title {
    padding: 0.75rem 1.5rem;
    color: #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.nav-group-title:hover {
    color: #3182ce;
}

.chevron {
    color: #a0aec0;
    font-size: 1.2rem;
    transition: transform 0.2s;
    font-weight: 400;
}

.expanded > .nav-group-title .chevron,
.expanded > .submenu-title .chevron {
    transform: rotate(90deg);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.expanded > .nav-list {
    display: block;
}

.nav-list a, .submenu-title {
    padding: 0.5rem 1.5rem 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4a5568;
    text-decoration: none;
    cursor: pointer;
}

.nav-list a:hover, .submenu-title:hover {
    color: #3182ce;
}

.nav-list a.active {
    color: #5a67d8;
    font-weight: 600;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.expanded > .submenu {
    display: block;
}

.submenu a {
    padding: 0.5rem 1.5rem 0.5rem 3rem;
    color: #718096;
    border-left: 2px solid transparent;
}

.submenu a:hover {
    color: #3182ce;
}

.submenu a.active {
    color: #5a67d8;
    font-weight: 600;
    border-left: 2px solid #5a67d8;
    background-color: #f8faff;
}

