:root {
    --primary: #198754;
    --primary-light: #e9f7ef;
    --sidebar-width: 280px;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #212529;
    --border: #e9ecef;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Segoe UI, sans-serif;
    margin: 0;
    scroll-behavior: smooth;
}

/* Progress Bar */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary);
    z-index: 9999;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #fff;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 1000;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 20px;
}

/* Content */
.content {
    margin-left: var(--sidebar-width);
    padding: 40px;
}

/* Hero */
.hero {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    margin-bottom: 40px;
}

/* Search */
.search-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #999;
}

.search-input {
    padding-left: 38px;
}

/* Menu */
.menu-link {
    display: block;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #444;
    transition: .2s;
}

.menu-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.menu-link.active {
    background: var(--primary);
    color: white;
}

/* Section */
.doc-section {
    margin-bottom: 30px;
    scroll-margin-top: 30px;
}

.doc-section .card {
    border-radius: 20px;
}

/* Screenshot */
.screenshot {
    transition: .3s;
    cursor: pointer;
}

.screenshot:hover {
    transform: scale(1.01);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 1200;
    align-items: center;
    padding: 0 15px;
}

/* Dark Mode */
body.dark-mode {
    --bg: #111827;
    --card: #1f2937;
    --text: #f8fafc;
    --border: #374151;
}

body.dark-mode .sidebar {
    background: #1f2937;
}

body.dark-mode .card {
    background: #1f2937;
    color: #f8fafc;
}

body.dark-mode .hero {
    background: #1f2937;
    color: #f8fafc;
}

body.dark-mode .menu-link {
    color: #e5e7eb;
}

body.dark-mode .menu-link:hover {
    background: #374151;
}

body.dark-mode .accordion-item {
    background: #1f2937;
    color: white;
}

body.dark-mode .accordion-button {
    background: #1f2937;
    color: white;
}

body.dark-mode .accordion-body {
    background: #111827;
    color: white;
}

/* Responsive */
@media(max-width:991px) {

    .mobile-nav {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: .3s;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        margin-top: 70px;
        padding: 20px;
    }

    .hero {
        padding: 30px;
    }

}

.flow-box {
    padding: 30px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #eee;
}