* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #161b22;
}
::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

@keyframes pulse-neon {
  0%, 100% { box-shadow: 0 0 8px rgba(0,255,136,0.4), 0 0 20px rgba(0,255,136,0.1); }
  50% { box-shadow: 0 0 16px rgba(0,255,136,0.6), 0 0 40px rgba(0,255,136,0.2); }
}

@keyframes glow-border {
  0%, 100% { border-color: rgba(0,255,136,0.3); }
  50% { border-color: rgba(0,255,136,0.8); }
}

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

@keyframes brain-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

.glow-border {
  animation: glow-border 2s ease-in-out infinite;
}

.slide-in {
  animation: slide-in 0.3s ease-out;
}

.brain-pulse {
  animation: brain-pulse 1.5s ease-in-out infinite;
  display: inline-block;
}

.drop-zone-hover {
  border-color: #00ff88 !important;
  background: rgba(0,255,136,0.05) !important;
  box-shadow: 0 0 30px rgba(0,255,136,0.15) inset;
}

.neon-text {
  text-shadow: 0 0 10px rgba(0,255,136,0.5), 0 0 20px rgba(0,255,136,0.3);
}

.grid-bg {
  background-image: 
    linear-gradient(rgba(48,54,61,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,54,61,0.3) 1px, transparent 1px);
  background-size: 20px 20px;
}

canvas.gen-canvas {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.log-entry {
  animation: slide-in 0.2s ease-out;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #30363d;
  height: 4px;
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ff88;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,255,136,0.5);
}

input[type="number"], select {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #e6edf3;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  min-height: 40px;
}
input[type="number"]:focus, select:focus {
  border-color: #00ff88;
}

.latent-pad {
  cursor: crosshair;
  touch-action: none;
}

.training-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(0,255,136,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@media (max-width: 640px) {
  .config-grid {
    grid-template-columns: 1fr !important;
  }
  .sample-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .gen-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}