/* Sidenav Styles */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2500;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidenav .close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    margin-left: 50px;
    text-decoration: none;
    color: #818181;
    display: block;
    cursor: pointer;
}

.sidenav h2 {
    padding: 0 20px;
    margin-top: 0;
    color: #333;
}

.sidenav-item {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidenav-divider {
    margin: 10px 20px;
    border: 0;
    border-top: 1px solid #eee;
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2400;
}

.full-width {
    width: 100%;
    justify-content: flex-start;
}

/* Dark mode overrides for sidenav */
@media (prefers-color-scheme: dark) {
    .sidenav {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    .sidenav h2 {
        color: #e0e0e0;
    }
    .sidenav-divider {
        border-top-color: #333;
    }
}

/* Manual Dark Mode Overrides */
body[data-theme="dark"] .sidenav {
    background-color: #1a1a1a;
    color: #e0e0e0;
}
body[data-theme="dark"] .sidenav h2 {
    color: #e0e0e0;
}
body[data-theme="dark"] .sidenav-divider {
    border-top-color: #333;
}

/* Hamburger Button */
#hamburger-btn {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    padding: 10px;
    margin-right: 10px;
}