/* Expandable menu styles */
.expandable-menu {
    position: relative;
    width: 100%;
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 15px;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    width: auto;
}

.toggle-submenu {
    position: relative;
}

.menu-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.arrow-rotate {
    transform: rotate(180deg);
}

.expandable-menu.active > .submenu {
    display: block;
}

/* Adjust submenu icons size */
.submenu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    object-fit: contain; /* This ensures the icon maintains its aspect ratio */
}

/* Adjust the submenu items to align properly */
.submenu .nav-item {
    padding: 8px 20px 8px 25px; /* More padding on the left for indentation */
    font-size: 13px; /* Slightly smaller font */
}

/* For the icons in the deeper submenu levels */
.submenu .submenu .nav-item {
    padding-left: 30px; /* Even more indentation for deeper levels */
}