/* Nexora Analytics - Estilos customizados baseados no sistema real */

/* Animações personalizadas */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 180, 255, 0.6);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Estilo do scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 180, 255, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 255, 0.5);
}

/* Transições suaves */
* {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito de hover nos cards */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Gradientes de texto */
.gradient-text {
  background: linear-gradient(135deg, #0066ff, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #0066ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal backdrop blur */
.backdrop-blur-sm {
  backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

/* Estilo baseado no sistema real */
.nexora-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.nexora-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Badge de status LIVE */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 255, 127, 0.1);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #00FF7F;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #00FF7F;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}

/* Cores do sistema real */
:root {
  --nexora-bg0: #070A12;
  --nexora-bg1: #0B1224;
  --nexora-blue: #00B4FF;
  --nexora-blue2: #00E5FF;
  --nexora-orange: #FF7A00;
  --nexora-orange2: #FF9F43;
  --nexora-green: #00FF7F;
}

/* Typography baseada no sistema */
.brand-title {
  letter-spacing: 2px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.brand-sub {
  color: rgba(234, 242, 255, 0.7);
  font-size: 12px;
  letter-spacing: 1px;
}

/* Inputs personalizados */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Botões com efeito de brilho */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
  .mobile-menu-open {
    display: block !important;
  }
}

/* Animações de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Grid pattern background */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}
