/* ========= MOBILE ========= */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background: #1f2937; /* Modern dark background */
    color: #fff;
    padding: 20px;
    overflow: auto;
    transition: .3s;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0,0,0,.15);
}

.sidebar.active {
    left: 0;
}

/* sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.sidebar-overlay.active {
    display: block;
}

/* sidebar text & links */
.sidebar-header h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.sidebar a {
    color: #f5f5f5;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

.sidebar a:hover {
    background: rgba(255,255,255,.15);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* ========= DESKTOP ========= */
@media(min-width:992px) {
    /* sidebar always visible */
    .sidebar {
        left: 0 !important;
        width: 240px;
        box-shadow: none;
    }

    /* remove overlay */
    .sidebar-overlay {
        display: none !important;
    }

    /* hide hamburger button on desktop */
    .header-btn {
        display: none;
    }

    /* content shift */
    .page-wrap {
        margin-left: 240px;
        padding: 20px;
    }

    header {
        padding-left: 240px;
    }
}