/* Base styles for switcher */
.myplugin-wrap.mls-switcher {
    display: inline-block !important;
    vertical-align: middle !important;
    padding: 0 7px !important;
    position: relative !important;
    z-index: 1000 !important;
    background-color: transparent !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    line-height: 20px !important;
    height: 100% !important;
    min-width: 80px !important;
}

.myplugin-wrap.mls-switcher:focus,
.myplugin-wrap.mls-switcher:active {
    outline: none !important;
    border: 1px solid #e2e2e2 !important;
}

.myplugin-wrap.mls-switcher .mls-current {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 10px 15px !important;
    cursor: pointer !important;
    color: #5F5F5F !important;
}

.myplugin-wrap.mls-switcher .mls-current img {
    max-width: 15% !important;
    height: auto !important;
    margin-right: 5px !important;
    vertical-align: middle !important;
}

.myplugin-wrap.mls-switcher .mls-current span {
    font-size: 11px !important;
    color: #5F5F5F !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    line-height: 20px !important;
}

.myplugin-wrap.mls-switcher .mls-arrow {
    margin-left: 5px !important;
    font-size: 11px !important;
    color: #5F5F5F !important;
    line-height: 20px !important;
    vertical-align: middle !important;
    transition: transform 0.3s ease !important;
}

.myplugin-wrap.mls-switcher .mls-arrow.active {
    transform: rotate(180deg) !important;
}

.myplugin-wrap.mls-switcher .mls-dropdown {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 160px !important;
    border-radius: 2px !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e2e2 !important;
    z-index: 1000 !important;
}

.myplugin-wrap.mls-switcher .mls-dropdown.active {
    display: block !important;
}

.myplugin-wrap.mls-switcher .mls-dropdown a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
    color: #797979 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.myplugin-wrap.mls-switcher .mls-dropdown a:hover {
    background-color: #f8f8f8 !important;
}

.myplugin-wrap.mls-switcher .mls-dropdown a img {
    max-width: 15% !important;
    height: auto !important;
    margin-right: 5px !important;
    vertical-align: middle !important;
    padding-top: 5px;
}

/* Dropdown direction based on position */
.mls-switcher-header .mls-dropdown {
    top: 100% !important;
    bottom: auto !important;
}
.mls-switcher-footer .mls-dropdown {
    bottom: 100% !important;
    top: auto !important;
}

/* Disable Bootstrap dropdown */
.nav.navbar-nav.over.lan-menu .dropdown-toggle {
    pointer-events: none !important;
}

/* Hide mobile switcher by default */
.navbar-header .mls-mobile-switcher {
    display: none !important;
}

/* Desktop: hide mobile switcher, show desktop switcher */
@media (min-width: 1025px) {
    .navbar-header .mls-mobile-switcher {
        display: none !important;
    }
    .nav.navbar-nav.over.lan-menu .myplugin-wrap.mls-switcher-menu {
        display: inline-block !important;
    }
}

/* Mobile: show mobile switcher, hide desktop switcher */
    @media (max-width: 1024px) {
    .navbar-header .mls-mobile-switcher {
        display: inline-block !important;
        position: absolute !important;
        right: 10px !important;
        top: -20px !important;
        transform: translateY(-50%) !important;
        
    }
    .mls-mobile-switcher .myplugin-wrap.mls-switcher-mobile {
        display: inline-block !important;
        padding: 0 !important;
        min-width: auto !important;
        background-color: transparent !important;
        border: none !important;
    }
    .mls-mobile-switcher .myplugin-wrap.mls-switcher-mobile .mls-current {
        padding: 0 !important;
    }
    .mls-mobile-switcher .myplugin-wrap.mls-switcher-mobile .mls-current img {
        max-width: 24px !important;
        height: auto !important;
        margin-right: 5px !important;
    }
    .mls-mobile-switcher .myplugin-wrap.mls-switcher-mobile .mls-current span:not(.mls-arrow) {
        display: none !important;
    }
    .mls-mobile-switcher .myplugin-wrap.mls-switcher-mobile .mls-arrow {
        font-size: 12px !important;
        color: #5F5F5F !important;
    }
    .mls-mobile-switcher .myplugin-wrap.mls-switcher-mobile .mls-dropdown {
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        min-width: 120px !important;
        border-radius: 2px !important;
        border: 1px solid #e2e2e2 !important;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
    }
    .nav.navbar-nav.over.lan-menu .myplugin-wrap.mls-switcher-menu {
        display: none !important;
    }
}