/* Seletor compacto de idioma — telas públicas (Login, RecoveryPassword, Error, etc.)
   Posicionamento absoluto no canto superior direito, fora de qualquer Layout padrão.
   Para telas com Layout próprio, basta @await Html.PartialAsync("_LanguageSwitcherCompact")
   dentro do header. */

.lang-switcher-compact {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1100;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-switcher-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    opacity: 0.6;
    border: 2px solid transparent;
}

.lang-switcher-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lang-switcher-flag:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.lang-switcher-flag:focus-visible {
    outline: 2px solid #005bc7;
    outline-offset: 2px;
    opacity: 1;
}

.lang-switcher-flag--active {
    opacity: 1;
    border-color: #005bc7;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 91, 199, 0.18);
}

/* Em telas pequenas, encolhe um pouco */
@media (max-width: 480px) {
    .lang-switcher-compact {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        gap: 6px;
    }
    .lang-switcher-flag {
        width: 28px;
        height: 28px;
    }
}
