/* Custom retro-futuristic styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

.glow-text {
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.glow-button {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow-button:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.scan-lines {
  background: linear-gradient(
    transparent 50%,
    rgba(0, 255, 0, 0.03) 50%
  );
  background-size: 100% 4px;
  height: 100%;
  width: 100%;
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.grid-pattern {
  background-image: 
    linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.device-container {
  background: linear-gradient(135deg, #c4c4c4 0%, #8a8a8a 50%, #5a5a5a 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

.device-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
}

.control-button {
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.control-button:active {
  transform: translateY(2px);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 2px 4px rgba(0,0,0,0.3);
}

.slider {
  background: linear-gradient(to right, #22c55e 0%, #22c55e var(--value, 75%), #374151 var(--value, 75%), #374151 100%);
}

.slider::-webkit-slider-thumb {
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.slider::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* LCD Screen Effect */
.bg-gray-900 {
  background: radial-gradient(circle at center, #1f2937 0%, #111827 100%);
}

/* Metallic text effect */
.text-silver {
  background: linear-gradient(135deg, #f8fafc, #cbd5e1, #64748b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulsing animation for active states */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.6); }
}

.control-button.active {
  animation: pulse-green 2s infinite;
}

/* Retro CRT effect */
body {
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
}

/* Smooth transitions for interactive elements */
* {
  transition: all 0.2s ease-in-out;
}

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

::-webkit-scrollbar-track {
  background: #1f2937;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}