.menu-level-1 {
    border: none;
    width: 100%;
    position: relative;
    min-width: 15rem !important;
}

.dropdown-submenu {
    position: relative;
}

.menu-level-2 {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.dropdown-submenu:hover .menu-level-2 {
    display: block;
}

.menu-level-2 .dropdown-item {
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    display: block;
    width: 100%;
    clear: both;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.menu-level-2 .dropdown-item:hover {
    background-color: #e9ecef;
    color: #16181b;
}

/* Thêm icon mũi tên cho submenu */
.dropdown-submenu > .dropdown-item::after {
    content: "▶";
    float: right;
    margin-left: 10px;
    font-size: 0.8em;
}

/* Mobile responsive styles */
@media (max-width: 991.98px) {
    .menu-level-2 {
        position: static;
        display: none;
        background-color: #f8f9fa;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-left: 1rem;
        margin-top: 0.5rem;
        width: auto;
    }

    .dropdown-submenu:hover .menu-level-2 {
        display: none; /* Tắt hover effect trên mobile */
    }

    .dropdown-submenu.active .menu-level-2 {
        display: block;
    }

    .dropdown-submenu > .dropdown-item {
        cursor: pointer;
    }

    .dropdown-submenu > .dropdown-item::after {
        content: "▼";
        transition: transform 0.3s ease;
    }

    .dropdown-submenu.active > .dropdown-item::after {
        transform: rotate(180deg);
    }

    .menu-level-2 .dropdown-item {
        padding-left: 2rem;
        font-size: 0.9em;
        background-color: transparent;
    }

    .menu-level-2 .dropdown-item:hover {
        background-color: #e9ecef;
    }
}
