:root {
    --bg-light: #f9f9fb;
    --bg-dark: #121212;
    --text-light: #000000;
    --text-dark: #f0f0f0;
    --sidebar-light: #ffffff;
    --sidebar-dark: #1e1e2f;
    --accent: #082866;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.3s, color 0.3s;
}

body.light {
    background: var(--bg-light);
    color: var(--text-light);
}

body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.dark a{
    color: var(--text-dark);
}

.layout {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    padding: 20px;
    background: var(--sidebar-light);
    transition: transform 0.3s ease, background 0.3s;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(0);
    z-index: 1000;
}

body.dark .sidebar {
    background: var(--sidebar-dark);
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.sidebar a {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.sidebar a.active {
    background: var(--accent);
    color: #fff;
    font-weight: bold;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--sidebar-light);
    padding: 10px 20px;
    z-index: 1001;
    border-bottom: 1px solid #ddd;
}

.menu-toggle {
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        padding-top: 50px;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-navbar {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .content {
        padding: 20px;
    }

    section#features ul {
        columns: 1 !important;
    }

    img{
        width: 100% !important;
    }
}

h2, h3 {
    margin-top: 0;
}

ul,ol {
    line-height: 2;
}

code {
    background: #eee;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 90%;
}

body.dark code {
    background: #2b2b3b;
}

section {
    border: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

img{
    box-shadow: rgb(0 0 0 / 50%) 0 3px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 80%;
}

section#features ul {
    columns: 2;
    gap: 30px;
    list-style: disc;
    padding-left: 20px;
}
.list-style-none{
    list-style: none;
}