/* AuraToolkit360 - Global Language Switcher Styles (Clean Light Spec) */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.75rem;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.lang-switcher-btn:hover,
.lang-switcher-btn:focus-visible {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 2000;
    animation: langFadeIn 0.18s ease-out;
}

[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

.lang-dropdown-menu.show {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.lang-option:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.lang-option.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.lang-option .flag {
    font-size: 1rem;
    line-height: 1;
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
