/* Optics Pulse - Laboratory Aesthetic & UI Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-obsidian: #070b14;
  --bg-workbench: #0d1527;
  --bg-panel: rgba(15, 23, 42, 0.82);
  --border-cyan: rgba(56, 189, 248, 0.28);
  --glow-cyan: rgba(56, 189, 248, 0.45);
  --laser-red: #ef4444;
  --laser-cyan: #38bdf8;
  --laser-green: #10b981;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-obsidian);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.6);
}

/* Optical Breadboard Grid Canvas Background */
.workbench-container {
  background-color: var(--bg-workbench);
  background-image: 
    radial-gradient(circle, rgba(56, 189, 248, 0.12) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 120px 120px, 120px 120px;
  background-position: 0 0, 0 0, 0 0;
}

/* Neon Glow Accents */
.glow-cyan-sm {
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.glow-cyan {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
.glow-red {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
}
.text-glow-cyan {
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
}

/* Range Input Styling */
input[type="range"] {
  accent-color: #38bdf8;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
}

/* Pulsing Status Dot */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.6;
    transform: scale(0.92);
    box-shadow: 0 0 2px #10b981;
  }
}

.tracer-live-dot {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Custom Tactical Buttons */
.tactical-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e2e8f0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tactical-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}
.tactical-btn:active {
  transform: translateY(0);
}

/* Toolbox Item Card */
.toolbox-card {
  transition: all 0.18s ease;
  cursor: grab;
}
.toolbox-card:hover {
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}
.toolbox-card:active {
  cursor: grabbing;
}

/* Laser dust / Ambient light atmosphere effect */
.smoke-overlay {
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.015) 0%, transparent 80%);
}
