﻿.language-switcher-container {
    position: fixed;
    bottom: 100px; /* Positioned above the contact button */
    right: 25px;
    left: auto; /* Explicitly set for LTR */
    z-index: 1000;
}

/* --- RTL SUPPORT --- */
/*html[dir="rtl"] .language-switcher-container {
    right: auto;*/ /* Unset the right property */
/*left: 25px;*/ /* Set the left property */
/*}*/
/* --- END OF RTL SUPPORT --- */


.language-fab {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4a5568, #2d3748); /* Neutral dark gradient */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: none;
    cursor: pointer;
    /*    box-shadow: 0 4px 12px rgba(0,0,0,0.3);*/
    transition: all 0.3s ease;
}

    .language-fab:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }

.language-menu {
    position: absolute;
    bottom: 75px; /* Position the menu above the button */
    right: 0; /* Default position for LTR */
    left: auto;
    background: #353f50;
    /*    background: var(--bg-color, #ffffff);*/
    border: 1px solid var(--light-border, rgba(255,255,255,0.2));
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease;
}

    /* --- RTL SUPPORT FOR MENU --- */
    /*html[dir="rtl"] .language-menu {
    right: auto;
    left: 0;
}*/
    /* --- END OF RTL SUPPORT --- */

    .language-menu.open {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .language-menu button {
        background: rgba(255, 255, 255, 0.3);
        /*    background: var(--light-transparent, rgba(255,255,255,0.1));*/
        color: var(--text-color, white);
        border: none;
        padding: 12px;
        border-radius: 8px;
        cursor: pointer;
        text-align: start; /* Use 'start' for better LTR/RTL support */
        font-size: 1rem;
        transition: background-color 0.2s ease;
    }

        .language-menu button:hover {
            background: var(--light-transparent-hover, rgba(255,255,255,0.2));
        }
