* {
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #e5e5e5;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.app-title {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
}

.notification-btn {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
  }
}

.refresh-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.event-card {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card.spike {
  animation: fadeIn 0.3s ease-out, spikeGlow 2s ease-in-out infinite;
}

@keyframes spikeGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
  }
  50% {
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.4);
  }
}

.spike-badge {
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Table hover effect */
tbody tr {
  transition: background-color 0.15s ease;
}

/* Animate skeleton loading */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.animate-pulse > div {
  background: linear-gradient(90deg, #1a1a1a 0%, #222 50%, #1a1a1a 100%);
  background-size: 400px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Mobile optimization */
@media (max-width: 640px) {
  .app-title {
    font-size: 1.75rem;
  }
}

/* Sticky table header */
@media (min-width: 768px) {
  thead {
    position: sticky;
    top: 0;
    background: #0d0d0d;
    z-index: 10;
  }
}