/* ===== Base reset ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #f4f1ea;
}

/* ===== Toggle ===== */
#menu-toggle {
    display: none;
}

/* ===== Header ===== */
header {
    background: #2c3e50;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.2rem;
}

/* ===== Hamburger ===== */
.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* ===== Layout ===== */
.container {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    background: #ecf0f1;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: #333;
}

/* ===== Content (CRITICAL) ===== */
.content {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

/* ===== Overlay ===== */
.overlay {
    display: none;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    #menu-toggle:checked ~ .container .sidebar {
        transform: translateX(0);
    }

    .overlay {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
    }

    #menu-toggle:checked ~ .container .overlay {
        display: block;
    }
}

