/* Pulse Analytics - Cyber Dark SaaS Stylesheet */

:root {
  --cyber-bg: #070a13;
  --cyber-card: rgba(15, 23, 42, 0.7);
  --cyber-border: rgba(6, 182, 212, 0.2);
  --cyber-border-hover: rgba(0, 240, 255, 0.5);
  --cyber-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.25);
  --cyber-glow-purple: 0 0 20px rgba(139, 92, 246, 0.25);
  --cyber-glow-emerald: 0 0 20px rgba(0, 255, 157, 0.25);
}

/* Background Cyber Grid */
body {
  background-color: var(--cyber-bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 17, 32, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 4px;
}

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

/* Glassmorphism Card Base */
.cyber-card {
  background: var(--cyber-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--cyber-border);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card:hover {
  border-color: var(--cyber-border-hover);
  box-shadow: var(--cyber-glow-cyan), 0 8px 32px -2px rgba(0, 0, 0, 0.6);
}

/* Cyber Glass Navigation */
.cyber-nav {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

/* Glowing text utilities */
.glow-cyan {
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.glow-purple {
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.glow-emerald {
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}

/* Pulsing radar dot */
.pulse-beacon {
  position: relative;
}

.pulse-beacon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.8;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.2);
    opacity: 0;
  }
}

/* Event Feed Slide Animation */
.event-item-enter {
  animation: slideDownEvent 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownEvent {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Shimmer Scanning line */
.cyber-scanner {
  position: relative;
  overflow: hidden;
}

.cyber-scanner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.08),
    transparent
  );
  animation: scan 4s infinite linear;
}

@keyframes scan {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Active Nav Indicator */
.nav-link-active {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.02) 100%);
  border-left: 3px solid #00f0ff;
  color: #00f0ff;
}

/* Range Filter Pill Active */
.filter-btn-active {
  background: #06b6d4 !important;
  color: #070a13 !important;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
}

/* Notification Drawer Transitions */
#notification-drawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#notification-drawer.drawer-closed {
  transform: translateX(100%);
  pointer-events: none;
  opacity: 0;
}

#notification-drawer.drawer-open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}

/* Command Palette Modal */
#command-palette {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#command-palette.modal-closed {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

#command-palette.modal-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .cyber-card {
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #000000 !important;
  }
  aside, header, #command-palette, #notification-drawer, .no-print {
    display: none !important;
  }
}
