/* Global overrides and modern resets */
html {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
  font-family: 'Fira Code', monospace;
}

/* Custom Scrollbar for modern terminal aesthetic */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617; /* slate-950 */
}
::-webkit-scrollbar-thumb {
  background: #1e293b; /* slate-800 */
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155; /* slate-700 */
}

/* Tab button styling states */
.tab-btn {
  background-color: rgba(15, 23, 42, 0.4); /* slate-900/40 */
  border-color: #1e293b; /* slate-800 */
  color: #94a3b8; /* slate-400 */
}

.tab-btn.active {
  background-color: rgba(6, 182, 212, 0.1); /* cyan-500/10 */
  border-color: #06b6d4; /* cyan-500 */
  color: #22d3ee; /* cyan-400 */
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* Custom animations for threats */
@keyframes particle-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}

.threat-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: particle-drift 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* Custom styling for threat levels */
.threat-level-high {
  animation: bg-pulse-red 2s infinite;
}

@keyframes bg-pulse-red {
  0%, 100% {
    background-color: rgba(244, 63, 94, 0.05); /* rose-500/5 */
  }
  50% {
    background-color: rgba(244, 63, 94, 0.2); /* rose-500/20 */
  }
}

/* Glow effects */
.glow-cyan {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.glow-purple {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.glow-rose {
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.4);
}
