.sidebar {
    width: 220px;
    background-color: #D9A874;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white !important;
    text-decoration: none !important;
    display: block;
    padding: 10px;
    background: #C48751;
    border-radius: 5px;
}

.sidebar ul li a:hover,
.sidebar ul li.active a {
    background: #A66A3D;
}

/* Toggle Button (Hidden on Desktop) */
.sidebar-toggle {
    display: none;
}

/* Overlay (Hidden on Desktop) */
.sidebar-overlay {
    display: none;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {

    /* Show Toggle Button - Always visible */
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: #C48751;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 20px;
        transition: left 0.3s ease-in-out;
        padding: 0;
        box-shadow: none;
    }

    /* Reset hover effects for mobile toggle */
    .sidebar-toggle:hover {
        background: #C48751;
        transform: none;
    }

    /* Move button when active */
    .sidebar-toggle.active {
        left: 20px;
    }

    /* Overlay Backdrop */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Sidebar Hidden by Default on Mobile */
    .sidebar {
        width: 250px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -300px;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        display: block;
        box-sizing: border-box;
    }

    /* Show Sidebar when Active */
    .sidebar.active {
        left: 0;
    }

    /* Add padding to title to make room for button */
    .sidebar h2 {
        padding-left: 50px;
        text-align: left;
    }

    .sidebar ul {
        display: block;
    }

    .sidebar ul li {
        width: 100%;
        margin-bottom: 10px;
    }

    .sidebar ul li a {
        padding: 12px;
        font-size: 16px;
        text-align: left;
    }

    /* Content Adjustment */
    .content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 70px 20px 20px 20px !important;
        box-sizing: border-box;
    }
}