/**
 * EvovE Box - Navbar Unificada
 * Estilos específicos para a barra de navegação
 */

.navbar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1030;
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #f0f0ff !important;
    transform: translateY(-1px);
}

.navbar-brand i {
    color: #ffffff;
    font-size: 1.75rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(5deg);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.nav-link-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.5rem 1rem !important;
    margin-left: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-link-admin:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.nav-link-admin::after {
    display: none;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
}

.navbar-toggler-icon {
    /* Cor branca para melhor contraste no fundo roxo */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f0f0ff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler-text {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 0.25rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-text {
    color: #f0f0ff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
    }
    
    /* Remover o risco inferior em mobile e usar indicador lateral */
    .nav-link::after {
        display: none;
    }
    
    /* Indicador lateral para página ativa em mobile */
    .nav-link.active {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.25);
        font-weight: 600;
        border-left: 4px solid #ffffff;
        padding-left: calc(1rem - 4px) !important;
    }
    
    /* Melhorar visualização do ícone e texto ativo */
    .nav-link.active i {
        color: #ffffff !important;
    }
    
    .nav-link.active span {
        color: #ffffff !important;
    }
    
    .nav-link-admin {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
    
    /* Ajustar hambúrguer em telas muito pequenas */
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .navbar-toggler-icon {
        width: 1.25em;
        height: 1.25em;
    }
    
    .navbar-toggler-text {
        font-size: 0.875rem;
        display: inline-block;
    }
    
    /* Melhorar contraste do indicador ativo em mobile pequeno */
    .nav-link.active {
        border-left-width: 3px;
        padding-left: calc(1rem - 3px) !important;
    }
}

