/* Scanline overlay effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

/* Vignette effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.9);
}

/* Panel styling */
.panel {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(57, 255, 20, 0.05));
  border: 2px solid #39ff14;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(57, 255, 20, 0.03) 2px,
    rgba(57, 255, 20, 0.03) 4px
  );
  pointer-events: none;
}

/* Metric card styling */
.metric-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #39ff14;
  padding: 1rem;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.2);
}

/* Glitch text effect */
.glitch-text {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
    text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
  }
  25% {
    transform: translate(-2px, 2px);
    text-shadow: -2px 2px #ff00ff, 2px -2px #00ffff;
  }
  50% {
    transform: translate(2px, -2px);
    text-shadow: 2px -2px #ff00ff, -2px 2px #00ffff;
  }
  75% {
    transform: translate(-2px, -2px);
    text-shadow: -2px -2px #ff00ff, 2px 2px #00ffff;
  }
  100% {
    transform: translate(0);
    text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
  }
}

/* Glitch number effect */
.glitch-number {
  animation: glitch-number 0.5s infinite;
  text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
}

@keyframes glitch-number {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-1px, 1px);
  }
  40% {
    transform: translate(1px, -1px);
  }
  60% {
    transform: translate(-1px, -1px);
  }
  80% {
    transform: translate(1px, 1px);
  }
}

/* Glow effect */
.glow-effect {
  filter: drop-shadow(0 0 8px currentColor);
}

/* Pulse animation for warning symbols */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
  border: 1px solid #39ff14;
}

::-webkit-scrollbar-thumb {
  background: #39ff14;
  box-shadow: 0 0 10px #39ff14;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ffff;
  box-shadow: 0 0 15px #00ffff;
}

/* Button hover effects */
button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

/* Loading animation */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

button:disabled {
  animation: blink 1s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .panel {
    padding: 1rem;
  }
  
  .metric-card {
    padding: 0.75rem;
  }
}