body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    background-color: #101010;
}

.container {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #1e1e2f;
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
}

.sidebar h2 {
    margin-top: 0;
    color: #f4f4f4;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 15px 0;
}

.sidebar a {
    color: #ccc;
    text-decoration: none;
}

.sidebar a:hover {
    color: white;
}

/* Content */
.content {
    margin-left: 270px;
    padding: 30px;
    width: 100%;
}

h1, h2, h3, h4 {
    color: #ffffff;
}

pre {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

p {
    color: white;
}
code {
    font-family: monospace;
    color: white;
}

/* Expandable menu */
.menu-group {
    margin-bottom: 10px;
}

.menu-title {
    cursor: pointer;
    font-weight: bold;
    padding: 8px;
    background: #2a2a40;
    border-radius: 6px;
    position: relative;
}

/* Arrow */
.menu-title::after {
    content: "▶";
    position: absolute;
    right: 10px;
    transition: transform 0.2s;
}

/* Rotate arrow when open */
.menu-group.active .menu-title::after {
    transform: rotate(90deg);
}

.menu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
}

.menu-items a {
    display: block;
    padding: 6px 0;
    color: #ccc;
    text-decoration: none;
}

.menu-items a:hover {
    color: white;
}

/* Expanded state */
.menu-group.active .menu-items {
    max-height: 200px;
}

/* Toggle button */
.toggle-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: #1e1e2f;
    color: white;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
}

/* Sidebar base */
.sidebar {
    width: 250px;
    background: #1e1e2f;
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
}

/* Hidden state */
.sidebar.closed {
    transform: translateX(-100%);
}

/* Content shift */
.content {
    margin-left: 270px;
    padding: 30px;
    transition: margin-left 0.3s ease;
}

/* When sidebar is closed */
.content.full {
    margin-left: 20px;
}

/* Hamburger button */
.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 26px;
    background: #1e1e2f;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    z-index: 1001;
    cursor: pointer;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

/* MOBILE STYLES */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        left: 0;
    }

    .overlay.show {
        display: block;
    }

    .content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }
    .hamburger.hide {
        display: none;
    }
}