/* Seletor de idioma (Views/Shared/_LanguageSelector.cshtml).
   Não depende de Bootstrap nem de Tailwind: funciona igual em todos os layouts do cliente. */

.lang-selector {
    position: relative;
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    color: #eee;
}

.lang-selector-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    list-style: none;
    user-select: none;
    white-space: nowrap;
}

    .lang-selector-current::-webkit-details-marker {
        display: none;
    }

    /* Seta do combobox */
    .lang-selector-current::after {
        content: "";
        width: 6px;
        height: 6px;
        margin-left: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        opacity: 0.6;
    }

    .lang-selector-current:hover {
        background-color: rgba(0, 0, 0, 0.4);
    }

.lang-selector img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-selector-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1050;
    min-width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    border: 1px solid #334155;
    border-radius: 6px;
    background-color: #1e293b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.lang-selector-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #eee;
    font: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

    .lang-selector-option:hover,
    .lang-selector-option:focus-visible,
    .lang-selector-option.active {
        background-color: #334155;
        outline: none;
    }

/* Páginas avulsas (login, cadastro, senha): seletor fixo no canto superior direito */
.lang-selector-corner {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1050;
}
