/* ========================================================================
   MENU DE NAVEGAÇÃO UEMS - ESTILOS COMPARTILHADOS (PORTAL E ADMIN)
   PADRÃO DE DIMENSÕES: HELIOS UEMS (80rem, h-11 / 2.75rem, sticky)
   PADRÃO DE CORES: CONCURSOS E SELEÇÕES (#1F6795 / HOVER #04984b)
   ======================================================================== */

.blue-tab-navbar {
    background-color: #1f6795;
    background: #1f6795;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.blue-tab-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.75rem;
}

@media (min-width: 640px) {
    .blue-tab-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .blue-tab-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.blue-tab-left-items {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    height: 100%;
}

.blue-tab-right-items {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

/* BOTÃO TOGGLE HAMBURGUER (MOBILE) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 150ms ease-in-out;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background-color: #04984b;
    color: #ffffff;
    outline: none;
}

/* LINKS DO MENU */
.tab-item-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
    height: 100%;
    white-space: nowrap;
}

/* HOVER COM FUNDO VERDE INSTITUCIONAL (#04984b) - SEM CAIXA ESCURA NO ATIVO */
.tab-item-link:hover {
    color: #ffffff !important;
    font-weight: 700;
    background-color: #04984b !important;
    box-shadow: none;
    border: none !important;
}

.tab-item-link--active {
    color: #ffffff !important;
    font-weight: 700;
    background-color: transparent;
    border: none !important;
}

.tab-item-link--active:hover {
    background-color: #04984b !important;
}

/* DROPDOWNS DO MENU (ADMIN / PÚBLICO) */
.tab-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.tab-dropdown:hover .tab-item-link {
    background-color: #04984b;
    color: #ffffff;
}

.tab-dropdown:hover .tab-dropdown-menu,
.tab-dropdown:focus-within .tab-dropdown-menu {
    display: block;
}

.tab-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    z-index: 1000;
}

.tab-dropdown-menu-right {
    left: auto;
    right: 0;
}

.tab-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 500;
    transition: background 0.15s;
    text-transform: none;
}

.tab-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #1f6795;
}

/* CÁPSULA PILL DO RELÓGIO MS */
.timezone-pill-live-blue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    padding: 0.22rem 0.75rem;
    white-space: nowrap;
    user-select: none;
}

.timezone-pill-live-blue i {
    color: #93c5fd;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

.timezone-pill-live-blue strong {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.775rem;
    font-family: monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
    letter-spacing: 0.05em;
}

.timezone-pill-live-blue .fuso-divider-line {
    display: inline-block;
    width: 1px;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.35);
    margin: 0 0.1rem;
}

.timezone-pill-live-blue .fuso-indicator {
    color: #e0f2fe;
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ========================================================================
   DROPDOWN DE IDIOMA NO MENU AZUL (#1F6795) - À DIREITA DA HORA
   ======================================================================== */
.lang-dropdown-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    padding: 0.22rem 0.45rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    outline: none;
}

.lang-dropdown-btn:hover,
.lang-dropdown-menu-wrapper:hover .lang-dropdown-btn,
.lang-dropdown-btn:focus {
    background: #04984b;
    border-color: #04984b;
    color: #ffffff;
}

.lang-dropdown-btn .lang-flag {
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.lang-dropdown-btn .lang-short {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.lang-dropdown-btn .lang-chevron {
    font-size: 0.65rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.lang-dropdown-menu-wrapper:hover .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    min-width: 175px;
    padding: 0.35rem 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    color: #1E293B;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.15s, color 0.15s;
}

.lang-dropdown-item:hover {
    background: #EFF6FF;
    color: #1D4ED8;
}

.lang-dropdown-item--active {
    background: #F8FAFC;
    color: #1F6795;
    font-weight: 700;
}

@media (max-width: 900px) {
    .blue-tab-container {
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem 1rem;
        position: relative;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .blue-tab-left-items {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 0.4rem;
        order: 3;
    }

    .blue-tab-left-items.show-mobile {
        display: flex;
        animation: slideDownMenu 0.2s ease-out forwards;
    }

    .tab-item-link {
        height: auto;
        padding: 0.65rem 1rem;
        border-radius: 4px;
    }

    .tab-item-link:hover {
        background-color: #04984b !important;
        border: none !important;
    }

    .blue-tab-right-items {
        order: 2;
        margin-left: auto;
        gap: 0.4rem;
    }

    .timezone-pill-live-blue {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }

    .lang-dropdown-btn {
        padding: 0.2rem 0.55rem;
    }
}

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

.lang-flag-img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    display: inline-block;
}

.lang-flag-dropdown-img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    display: inline-block;
}
