/* web-v2/css/base.css — reset, typography, shared utilities */

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

html, body {
  height: 100%;
  font-size: 20px;
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
}

/* Apply scanlines texture to the entire app background in dark-cyber theme */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--scanlines);
  pointer-events: none;
  z-index: 9999;
}

/* ── Typography ── */
.label {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-label);
}
.muted { color: var(--text-muted); }



/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Connection pill ── */
.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .6rem;
  letter-spacing: .1em;
  padding: .15rem .5rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
}
.conn-pill.ok { color: #22c55e; border-color: rgba(34, 197, 94, .3); }
.conn-pill.ok .dot { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, .6); }
.conn-pill.err { color: #ef4444; border-color: rgba(239, 68, 68, .3); }
.conn-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Active alerts floating indicator (top-right of map container) ── */
.active-float {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: .55rem .7rem .4rem;
  border-radius: 8px;
  background: rgba(10, 12, 18, .88);
  border: 1.5px solid rgba(255, 45, 45, .55);
  box-shadow: 0 0 14px rgba(255, 45, 45, .25), 0 2px 8px rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: default;
  transition: opacity .25s, transform .25s;
}
.active-float[data-count="0"] {
  opacity: 0;
  pointer-events: none;
  transform: scale(.85);
}
.active-float__num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--threat-rockets, #ff2d2d);
  letter-spacing: -.02em;
}
.active-float__label {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255, 45, 45, .7);
  margin-top: .2rem;
  white-space: nowrap;
}

/* ── Tab indicator ── */
.tab-active-bar {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: var(--accent-glow);
}

/* ── Utility ── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
