/*
 * base.css — Sistem Vizual Tactical Dark-Ops & Calibrare Optică Proiector (AEGIS-9 v2)
 */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(../vendor/fonts/inter-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(../vendor/fonts/inter-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/jetbrains-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/jetbrains-mono-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Orbitron"; font-weight: 700; font-display: swap; src: url(../vendor/fonts/orbitron-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 900; font-display: swap; src: url(../vendor/fonts/orbitron-latin-900-normal.woff2) format("woff2"); }

:root {
  --bg: #04070d;
  --bg2: #080e1a;
  --panel: rgba(9, 15, 28, 0.90);
  --panel-solid: #0a101d;
  --panel2: #10192b;
  --line: rgba(90, 138, 196, 0.18);
  --line2: rgba(90, 138, 196, 0.34);
  --cyan: #38bdf8;
  --cyan-d: rgba(56, 189, 248, 0.15);
  --green: #10b981;
  --emerald: #10b981;
  --green-d: rgba(16, 185, 129, 0.16);
  --yellow: #f59e0b;
  --amber: #f59e0b;
  --yellow-d: rgba(245, 158, 11, 0.16);
  --red: #ef4444;
  --crimson: #ef4444;
  --red-d: rgba(239, 68, 68, 0.17);
  --purple: #a855f7;
  --violet: #a855f7;
  --purple-d: rgba(168, 85, 247, 0.16);
  --text: #e2e8f0;
  --text2: #94a3b8;
  --muted: #64748b;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --display: "Orbitron", "Inter", sans-serif;
  --radius: 8px;
}

/* Mod Calibrare Optică Proiector (High-Contrast pentru săli de operațiuni luminoase) */
body.projector-hc {
  --bg: #020409;
  --panel: rgba(8, 16, 32, 0.96);
  --line: rgba(125, 211, 252, 0.36);
  --line2: rgba(125, 211, 252, 0.62);
  --cyan: #7dd3fc;
  --emerald: #34d399;
  --amber: #fbbf24;
  --crimson: #f87171;
  --violet: #c084fc;
  --text: #ffffff;
  --text2: #cbd5e1;
  --muted: #94a3b8;
  filter: contrast(1.08) brightness(1.06);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); }

.i, [data-icon] svg {
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
  flex: none;
  display: inline-block;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.text-emerald { color: var(--emerald) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-amber { color: var(--amber) !important; }
.text-crimson { color: var(--crimson) !important; }
.text-violet { color: var(--violet) !important; }
.muted { color: var(--muted); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(100, 140, 190, 0.34); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== COMPONENTE COMUNE (BUTOANE, BADGE-URI, MODALE) ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line2);
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s;
}
.btn:hover:not(:disabled) {
  border-color: var(--cyan);
  background: rgba(14, 116, 144, 0.28);
  color: #fff;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-sm { padding: 6px 10px; font-size: 10px; }
.btn-xs { padding: 4px 8px; font-size: 9.5px; }

.btn-cyan {
  border-color: var(--cyan);
  background: rgba(14, 116, 144, 0.28);
  color: #7dd3fc;
}
.btn-emerald {
  border-color: var(--emerald);
  background: rgba(6, 95, 70, 0.35);
  color: #6ee7b7;
}
.btn-amber {
  border-color: var(--amber);
  background: rgba(146, 64, 14, 0.35);
  color: #fcd34d;
}
.btn-crimson {
  border-color: var(--crimson);
  background: rgba(153, 27, 27, 0.42);
  color: #fecaca;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--line2);
  color: #e2e8f0;
  white-space: nowrap;
}
.badge-cyan { border-color: var(--cyan); color: #7dd3fc; background: rgba(14, 116, 144, 0.25); }
.badge-emerald { border-color: var(--emerald); color: #6ee7b7; background: rgba(6, 95, 70, 0.28); }
.badge-amber { border-color: var(--amber); color: #fcd34d; background: rgba(146, 64, 14, 0.28); }
.badge-crimson { border-color: var(--crimson); color: #fecaca; background: rgba(153, 27, 27, 0.35); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.84);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 14px;
}
.modal-backdrop.open {
  display: grid;
}
.modal-card {
  background: rgba(8, 14, 28, 0.98);
  border: 1px solid var(--cyan);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--line2);
}
.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}
