/* A147 Shared Theme */
:root {
  --bg0: #000508;
  --bg1: #000c1a;
  --bg2: #001028;
  --bg3: #001a3a;
  --c1: #00d4ff;
  --c2: #00ff88;
  --c3: #ffaa00;
  --c4: #ff4466;
  --c5: #a855f7;
  --glow1: rgba(0,212,255,0.6);
  --glow2: rgba(0,255,136,0.4);
  --border: rgba(0,180,255,0.12);
  --border2: rgba(0,212,255,0.22);
  --text: #c0dcff;
  --muted: rgba(140,200,255,0.4);
}

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

body {
  background: var(--bg0);
  font-family: 'Share Tech Mono', monospace;
  color: var(--text);
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--border2); }
::-webkit-scrollbar-track { background: transparent; }

/* Common badge styles */
.badge { font-size: 8px; letter-spacing: 2px; padding: 4px 10px; border: 1px solid; text-transform: uppercase; font-weight: 700; }
.b-ok, .badge-ok { color: var(--c2); border-color: rgba(0,255,120,0.3); background: rgba(0,255,120,0.05); }
.b-no, .badge-off { color: var(--muted); border-color: rgba(100,150,200,0.15); background: transparent; }
.b-warn { color: var(--c3); border-color: rgba(255,170,0,0.3); background: rgba(255,170,0,0.05); }

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; border: 1px solid var(--border2);
  background: rgba(0,8,20,0.95); font-size: 10px; letter-spacing: 2px;
  opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 10000;
}
.toast.show { opacity: 1; }

/* Common animations */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Button reset */
.btn {
  background: transparent; border: 1px solid var(--border2); color: var(--c1);
  font-family: 'Share Tech Mono', monospace; font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 14px; cursor: pointer; transition: all 0.3s;
}
.btn:hover { border-color: var(--c1); box-shadow: 0 0 15px rgba(0,180,255,0.15); }
