/* Premium Language Switcher Styling */
.ml-switcher-container {
    position: relative;
    display: inline-block;
    font-family: 'Rubik', 'Inter', sans-serif;
    user-select: none;
    z-index: 9999;
}

.ml-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 38, 57, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ml-switcher-toggle:hover {
    background: rgba(26, 38, 57, 0.95);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.ml-switcher-flag {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.ml-switcher-arrow {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
    margin-left: 4px;
}

.ml-switcher-container.open .ml-switcher-arrow {
    transform: rotate(180deg);
}

/* Dropdown list container limited in height with scrollbar */
.ml-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    min-width: 220px;
    max-height: 350px;
    overflow-y: auto;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: none;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10000;
}

.ml-switcher-container.open .ml-switcher-dropdown {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.ml-switcher-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ml-switcher-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ml-switcher-option.active {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.ml-switcher-option.active:hover {
    background: rgba(212, 175, 55, 0.2);
}

/* Custom Scrollbar Styles for the Language Dropdown */
.ml-switcher-dropdown::-webkit-scrollbar {
    width: 6px;
}

.ml-switcher-dropdown::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.ml-switcher-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.ml-switcher-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}
