* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}

.page {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    min-height: 100vh;
}

.sidebar {
    background: #e9e9e9;
    padding: 20px;
    overflow-y: auto;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.content {
    display: flex;
    flex-direction: column;
    background: white;
    min-width: 0;
}

.content-header,
.content-footer {
    background: #ddd;
    padding: 20px;
}

.content-main {
    flex: 1;
    padding: 30px 20px;
}

nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

nav li {
    margin: 8px 0;
}

nav li ul {
    padding-left: 20px;
    margin-top: 6px;
}

nav a,
nav button.linklike {
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.mobile-topbar {
    display: none;
    background: #333;
    color: white;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.hamburger {
    background: #555;
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
    }

    .mobile-topbar {
        display: flex;
    }

    .sidebar {
        display: none;
        padding-top: 10px;
    }

    .sidebar.open {
        display: block;
    }

    .left-sidebar {
        border-bottom: 1px solid #ccc;
    }

    .right-sidebar {
        border-top: 1px solid #ccc;
    }
}
