/* ============================================
   NAVBAR FINAL - MENU MOBILE FUNCIONAL E BONITO
   ============================================ */

/* ============================================
   DESKTOP (>= 992px) - MENU SEMPRE VISÍVEL
   ============================================ */

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-nav {
        flex-direction: row !important;
        gap: 0 !important;
    }
    
    .nav-link {
        padding: 0.5rem 1.5rem !important;
        border-bottom: none !important;
    }
}

/* ============================================
   MOBILE (< 992px) - MENU DROPDOWN
   ============================================ */

@media (max-width: 991.98px) {
    
    /* Esconder menu por padrão */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Mostrar quando tem classe .show */
    .navbar-collapse.show {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 3px solid #1a4789;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Menu items em coluna */
    .navbar-nav {
        flex-direction: column !important;
        list-style: none;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Estilos dos links */
    .nav-link {
        display: block;
        padding: 1rem 1.5rem !important;
        color: #2a2f3a !important;
        font-weight: 500;
        text-decoration: none !important;
        transition: all 0.2s ease;
        border-bottom: none !important;
    }
    
    .nav-link::after {
        display: none !important;
    }
    
    .nav-link:hover {
        background-color: #f5f8fc;
        color: #1a4789 !important;
        padding-left: 2rem !important;
    }
    
    .nav-link.active {
        background-color: #e8f0ff;
        color: #1a4789 !important;
        border-left: 4px solid #1a4789;
        padding-left: calc(1.5rem - 4px) !important;
    }
}
