.language-switcher {
    position: fixed;
    top: 13%;
    right: 0;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out;
}

@media (max-width: 392px) {
    .language-switcher {
        right: 57%;
    }
}

html[dir="rtl"] .language-switcher {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
}

/* Button */
.language-btn {
    background-color: #FF9500;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    border: none;
    transition: all 0.2s ease-in-out;
    min-width: 35px;
    height: 35px;
}

html[dir="rtl"] .language-btn {
    border-radius: 20px !important;
}

.language-btn:hover {
    background-color: #e78900;
    transform: scale(1.05);
}

.language-btn::after {
    display: none !important;
}

/* Dropdown */
.language-switcher .dropdown-menu {
    border-radius: 8px;
    min-width: 50px !important;
    font-size: 0.85rem;
    padding: 0.3rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.language-switcher .dropdown-item:hover {
    background-color: #f5f5f5;
}
