@charset "UTF-8";

/* ==========================================================================
   LIFE PULSE - LABORATORY STYLING & TELEMETRY THEME
   Obsidian: #070b14 | Grid: #0d1527 | Tactical Cyan: #38bdf8 | Green: #22c55e
   ========================================================================== */

:root {
  --bg-obsidian: #070b14;
  --bg-card: rgba(13, 21, 39, 0.75);
  --bg-card-border: rgba(56, 189, 248, 0.15);
  --cyan-glow: #38bdf8;
  --cyan-dim: #0284c7;
  --green-bio: #22c55e;
  --red-pred: #ef4444;
  --amber-warn: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-mono);
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #070b14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-panel-hover:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

/* Tactical Glow Effects */
.glow-text-cyan {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
}
.glow-text-green {
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.65);
}
.glow-text-red {
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.65);
}
.glow-box-cyan {
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

/* Mode Switcher Tabs */
.mode-tab {
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mode-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Custom Interactive Range Sliders */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: #0f172a;
  height: 6px;
  border-radius: 3px;
  border: 1px solid #1e293b;
  outline: none;
  transition: all 0.2s;
}
input[type=range]:hover {
  border-color: #38bdf8;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  border: 2px solid #070b14;
  transition: transform 0.15s, background-color 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #7dd3fc;
}

/* Canvas Viewport */
#canvas-container {
  background-color: #0d1527;
  background-image: 
    radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 0),
    radial-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 0);
  background-size: 24px 24px, 120px 120px;
  background-position: 0 0, 0 0;
  position: relative;
  cursor: crosshair;
}

#canvas-container.panning {
  cursor: grab;
}
#canvas-container.panning:active {
  cursor: grabbing;
}

/* Pulse Animation for Live Status */
@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.9);
  }
}
.pulse-indicator {
  animation: pulse-live 1.8s infinite ease-in-out;
}

/* Educational Drawer */
.edu-drawer {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.edu-drawer.open {
  transform: translateX(0);
}

/* Tooltip Badge */
.shortcut-badge {
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* Scanline Overlay (Optional retro lab screen effect) */
.scanlines::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.4;
}
