/* ===========================================
   Navbar and Navigation Styles
   Shared across all base templates
   =========================================== */

body {
    margin: 0;
    padding: 0;
}

/* Estilos do Menu Moderno */
.navbar {
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.nav-link:hover {
    color: #ffc107 !important;
    background-color: rgba(255, 193, 7, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #ffc107 !important;
    background-color: rgba(255, 193, 7, 0.15);
}

/* Dropdown Moderno - ESPECÍFICO para navbar */
.navbar .dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 200px;
    position: absolute;
    top: 100%;
    left: 0;
    overflow: hidden;
    z-index: 1050;
}

.navbar .dropdown-item {
    border-radius: 8px;
    margin: 2px 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.navbar .dropdown-item:hover {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    transform: translateX(2px);
    position: relative;
    z-index: 1;
}

.navbar .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.navbar .dropdown-item:hover::before {
    background-color: rgba(255, 193, 7, 0.1);
}

.navbar .dropdown-header {
    font-weight: 600;
    color: #ffc107;
    padding: 8px 16px;
    margin: 0;
}

/* Garantir que os ícones fiquem alinhados */
.navbar .dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Sobrescreve o background padrão quando o item do dropdown estiver ativo */
.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item.show {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Botões de Ação */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        margin: 2px 0;
    }

    /* Dropdown menus DENTRO da navbar em mobile */
    .navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: rgba(255, 193, 7, 0.05);
        position: static !important;
        margin-top: 0;
        min-width: auto;
    }

    .navbar .dropdown-item:hover {
        transform: none;
    }
}

/* Alinhamento dos botões do menu autenticado */
.navbar-nav.ms-auto {
    align-items: center !important;
}

.navbar-nav.ms-auto .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav.ms-auto .btn {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Layout dos botões de ação em dispositivos móveis */
@media (max-width: 991.98px) {
    .navbar-nav.ms-auto {
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
    }

    .navbar-nav.ms-auto .nav-item {
        margin: 0;
    }

    .navbar-nav.ms-auto .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Alinhamento específico para telas maiores */
@media (min-width: 992px) {
    .navbar-nav.ms-auto {
        height: 100%;
    }

    .navbar-nav.ms-auto .nav-item {
        height: 100%;
        display: flex;
        align-items: center;
    }
}