/* Side Menu Styles */

#sideMenu {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0; /* Sidebar is shown by default */
    background-color: #333;
    overflow-x: hidden;
    padding-top: 20px;
    transition: left 0.3s ease-in-out; /* Smooth transition */
    z-index: 999;
     transition: 0.3s;
}


#sideMenu a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
}

#sideMenu a:hover {
    background-color: #575757;
}

/* Menu Toggle Button */
#menuToggle {
    font-size: 30px;
    color: #333;
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    left: 20px;
    display: none; /* Initially hidden on large screens */
    z-index: 1000;
}

/* Responsive Styles - Hide menu by default on small screens */
@media screen and (max-width: 768px) {
    #sideMenu {
        width: 0;
        padding-top: 60px;
    }

    #sideMenu a {
        font-size: 16px;
    }

    #menuToggle {
        display: block; /* Show toggle button on mobile */
    }
    
    #sideMenu a.active,
    #sideMenu a:hover {
        background-color: #575757;
        color: #fff;
    }
}

/* Sliding effect (menu hidden by default on mobile) */
#sideMenu.hidden {
    left: -250px; /* Hide the menu */
}

#sideMenu.show {
    left: 0; /* Show the menu */
}

/* Dim background overlay when the menu is active */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 998;
}

#overlay.active {
    display: block;
}

/* Ensure menu uses Bebas Neue */
#sideMenu a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px; /* Adjust size for better readability */
}

/* Custom Switch Styles */
.toggle-wrapper {
    position: absolute;
    bottom: 100px;
    width: 100%;
    text-align: center;
    padding-bottom: 10px; /* Optional: extra space inside the container */
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ddd;
    transition: 0.4s;
    border-radius: 34px;
}

.custom-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ON State */
.custom-switch input:checked + .custom-slider {
    background-color: #2ecc71; /* Calm green */
}

.custom-switch input:checked + .custom-slider:before {
    transform: translateX(36px);
}


