body {
    margin: 0;
    font-family: sans-serif;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column; /* Stack header, sidebar, and content vertically initially if needed, but the final layout handles this */
}

.site-header {
    position: sticky; /* Keeps the header at the top of the viewport */
    top: 0;
    z-index: 10; /* Ensures the header stays on top of other elements */
    background-color: #333;
    color: white;
    padding: 10px;
    width: 100%;
}

.sidebar {
    width: 250px; /* Initial width of the sidebar */
    position: fixed; /* Fixed position relative to the viewport... fixed */
    top: 140px; /* Position below the header (adjust based on header height) */
    left: 0;
    height: calc(100vh - 50px); /* Full height minus header height */
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s; /* Smooth transition for show/hide */
    padding-top: 20px;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 20px;
    color: #818181;
    display: block;
}

.main-content {
    margin-left: 250px; /* Initial margin equal to sidebar width */
    padding: 20px;
    transition: margin-left 0.5s; /* Smooth transition for margin adjustment */
    /* Add extra height to main content to demonstrate scrolling */
    min-height: 150vh;
}

/* Class to apply when the sidebar is hidden/collapsed */
.sidebar.collapsed {
    width: 0;
}

.main-content.expanded {
    margin-left: 0;
}