/* ===========================================================================
   배지 · LED · KPI 카운터 · 사양 표 · 체크 목록 · 알림
   components.css 가 300줄 한도를 넘어 상태 표시 계열을 이쪽으로 옮겼다.
   =========================================================================== */

/* ── 배지 ─────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-sp-2);
  padding: 3px var(--nx-sp-3);
  border: 1px solid var(--nx-divider);
  border-radius: var(--nx-r-pill);
  background: rgba(0, 229, 255, 0.06);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  font-weight: 700;
  /* 한글 배지도 섞이므로 자간을 넓히지 않는다 ('운 영' 처럼 벌어진다). */
  letter-spacing: 0.02em;
  color: var(--nx-text-2);
  white-space: nowrap;
}

.badge--ai {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.12);
  color: #b9a6ff;
}

.badge--ok {
  border-color: rgba(0, 255, 163, 0.4);
  color: var(--nx-ok);
}

.badge--warn {
  border-color: rgba(255, 194, 75, 0.4);
  color: var(--nx-warn);
}

/* ── LED 인디케이터 ──────────────────────────────────────── */

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--nx-text-muted);
}

.led--on {
  background: var(--nx-ok);
  box-shadow: var(--nx-glow-ok);
  animation: led-breathe 1.6s ease-in-out infinite;
}

.led--off {
  background: var(--nx-error);
  box-shadow: var(--nx-glow-error);
}

@keyframes led-breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* ── KPI / 카운터 ────────────────────────────────────────── */

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--nx-sp-1);
  padding: var(--nx-sp-5);
  background: rgba(4, 10, 14, 0.7);
  border: 1px solid var(--nx-divider);
  border-radius: var(--nx-r-md);
  box-shadow: var(--nx-e1);
}

.stat__value {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-2xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--nx-accent-glow);
  text-shadow: var(--nx-glow-strong);
  font-variant-numeric: tabular-nums;
}

.stat__suffix {
  font-size: var(--nx-fs-md);
  color: var(--nx-text-2);
  text-shadow: none;
  margin-left: 2px;
}

.stat__label {
  font-size: var(--nx-fs-sm);
  font-weight: 700;
  color: var(--nx-text);
}

.stat__note {
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-muted);
  line-height: 1.6;
}

/* ── 사양 표 ─────────────────────────────────────────────── */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--nx-fs-base);
}

.spec th,
.spec td {
  padding: var(--nx-sp-3) var(--nx-sp-4);
  text-align: left;
  border-bottom: 1px solid var(--nx-divider);
  vertical-align: top;
}

.spec th {
  width: 32%;
  color: var(--nx-text-2);
  font-weight: 700;
  font-size: var(--nx-fs-sm);
  letter-spacing: 0.02em;
}

.spec tr:last-child th,
.spec tr:last-child td {
  border-bottom: 0;
}

/* ── 체크 목록 ───────────────────────────────────────────── */

.checklist li {
  position: relative;
  padding-left: var(--nx-sp-6);
  color: var(--nx-text-2);
  font-size: var(--nx-fs-base);
}

.checklist li + li {
  margin-top: var(--nx-sp-3);
}

.checklist li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--nx-accent);
  text-shadow: var(--nx-glow-soft);
}

/* ── 알림 ─────────────────────────────────────────────────── */

.notice {
  display: flex;
  gap: var(--nx-sp-3);
  padding: var(--nx-sp-4) var(--nx-sp-5);
  border: 1px solid var(--nx-divider);
  border-left: 2px solid var(--nx-accent);
  border-radius: var(--nx-r-sm);
  background: rgba(0, 229, 255, 0.05);
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-2);
}

.notice--ok {
  border-left-color: var(--nx-ok);
  background: rgba(0, 255, 163, 0.06);
}

.notice--error {
  border-left-color: var(--nx-error);
  background: rgba(255, 77, 109, 0.07);
}
