/* ================================
   CUSTOM SLIDE LEFT SIDEBAR
=================================== */

/* Sidebar container */
#cs-sidebar {
    width: 260px;
    height: 100vh;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: -260px;           /* hidden by default */
    transition: left 0.35s ease;
    z-index: 999999;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

/* When open */
#cs-sidebar.active {
    left: 0;
}


/* --------------------
   Toggle (hamburger)
---------------------- */
.cs-header {
    background: #ffffff;
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

#cs-toggle {
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

#cs-toggle:hover {
    opacity: 0.7;
}


/* -------------------------
   Menu styling
---------------------------- */
.cs-menu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.cs-menu li {
    margin: 0;
    padding: 0;
}

.cs-menu li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
    font-size: 18px;
    padding: 14px 20px;
    transition: background 0.2s ease;
    font-weight: 500;
}

.cs-menu li a:hover {
    background: #f2f2f2;
}

/* Icon spacing */
.cs-menu li a i {
    margin-right: 12px;
    font-size: 20px;
}


/* -------------------------
   Scrollbar styling (optional)
---------------------------- */

#cs-sidebar::-webkit-scrollbar {
    width: 6px;
}

#cs-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#cs-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
}

#cs-sidebar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}


/* -------------------------
   Mobile adjustments
---------------------------- */
@media (max-width: 768px) {
    #cs-sidebar {
        width: 230px;
        left: -230px;
    }
}