.custom-sidebar-back.text-start {
    display: flex;
    align-items: center;
}

/* Sidebar base styling */
.custom-sidebar-nav {
    padding: 15px;
    background-color: #fff;
    width: 300px;
    max-height: 100vh;
    overflow-y: auto;
}

/* Back button */
.custom-sidebar-back {
    font-weight: bold;
    padding: 10px 0;
    cursor: pointer;
}

/* Main menu */
.custom-menu,
.custom-submenu,
.custom-sub-submenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* All submenus are hidden by default */
.custom-submenu,
.custom-sub-submenu {
    display: none;
    padding-left: 15px;
}

/* Expand class shows submenu */
.custom-menu-item.active > .custom-submenu,
.custom-submenu-item.active > .custom-sub-submenu {
    display: block;
}

li.custom-menu-item {
    width: 100%;
}
li.custom-submenu-item {
    width: 100%;
}

/* Toggle container (title + arrow) */
.custom-menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
}

/* Toggle arrow */
/* .custom-toggle-icon {
    float: right;
    transition: transform 0.3s ease;
    font-size: 1em; 
    display: inline-block; 
} */

.custom-menu-toggle a {
    flex-grow: 1;
    font-size: 1em; /* Or increase to 1.1em if needed */
    text-decoration: none;
    color: inherit;
}

.custom-toggle-icon {
    font-size: 1.1em; /* Match text, or use 1.2em for slightly bigger */
    transform-origin: center;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

/* When submenu is open, rotate arrow down */
.custom-toggle-icon.rotated {
    transform: rotate(90deg); /* Turns ▸ into ▾ visually */
}

.custom-submenu.open-submenu,
.custom-sub-submenu.open-submenu {
    display: block;
}