/* Drawer Container (Hidden by default off-screen) */

body{
    background-color:red;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px; /* Hidden off to the left */
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: left 0.3s ease-in-out; /* Smooth sliding effect */
    display: flex;
    flex-direction: column;
}

/* Active class added via JS to slide it in */
.mobile-drawer.open {
    left: 0;
}

/* Backdrop Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.drawer-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Drawer Header & Content Styling */
.drawer-header {
    padding: 20px;
    background-color: #004aad;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    font-size: 18px;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.drawer-menu-list li a {
    display: block;
    padding: 15px 20px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    font-size: 15px;
}

.drawer-menu-list li a:hover {
    background-color: #f8f9fa;
    color: #004aad;
}