/* ============================================
 * ESTILOS DO MENU DE AUTENTICAÇÃO
 * ============================================ */

/* Menu de usuário base */
.nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-user i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.nav-user:hover i {
  transform: scale(1.1);
}

/* Estado: Usuário logado */
.nav-user-logado {
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.nav-user-logado:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.5);
}

/* Estado: Admin logado */
.nav-user-admin {
  background: rgba(40, 167, 69, 0.1) !important;
  border-color: rgba(40, 167, 69, 0.3) !important;
}

.nav-user-admin:hover {
  background: rgba(40, 167, 69, 0.2) !important;
  border-color: rgba(40, 167, 69, 0.5) !important;
}

.nav-user-admin .nav-text {
  color: #28a745;
  font-weight: 600;
}

/* Estado: Usuário comum logado */
.nav-user-comum .nav-text {
  color: #007bff;
  font-weight: 600;
}

/* Animação de entrada */
.nav-user-logado {
  animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Badge de notificação (opcional para futuras features) */
.nav-user-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #dc3545;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-user {
    padding: 0.4rem 0.8rem;
  }
  
  .nav-user i {
    font-size: 1.1rem;
  }
  
  .nav-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* Ocultar texto em telas muito pequenas, mostrar só ícone */
  .nav-user .nav-text {
    display: none;
  }
  
  .nav-user {
    padding: 0.5rem;
    min-width: 44px;
    justify-content: center;
  }
}