/* MyBizWait — 연결 상태 뱃지 (customer / staff / admin / display 공통)
 * tool-btn 과 동일 칩 규격(--chip-*) · Wi‑Fi SVG · glow 없음
 */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--chip-h, 30px);
  height: var(--chip-h, 30px);
  padding: var(--chip-pad-y, 4px) var(--chip-pad-x, 8px);
  font-size: var(--chip-fs, 0.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #86868b;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  white-space: nowrap;
  cursor: default;
  line-height: 1.2;
  text-shadow: none;
  box-shadow: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.status-badge .status-text {
  line-height: 1.2;
}

.status-dot,
.status-signal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
  filter: none;
  color: #8e8e93;
}
.status-signal-svg {
  display: block;
  width: 16px;
  height: 16px;
  overflow: visible;
}
.status-signal-slash {
  display: none;
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* 연결됨 */
.status-badge.connected {
  color: #1d1d1f;
  border-color: rgba(52, 199, 89, 0.4);
  background: #ffffff;
  text-shadow: none;
}
.status-dot.connected,
.status-badge.connected .status-dot,
.status-badge.connected .status-signal {
  color: #34c759;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
  filter: none;
}
.status-badge.connected .signal-arc-outer {
  animation: signalWaveOuter 1.8s ease-in-out infinite;
}
.status-badge.connected .signal-arc-mid {
  animation: signalWaveMid 1.8s ease-in-out infinite;
}
@keyframes signalWaveOuter {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
@keyframes signalWaveMid {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* 재연결 / 대기 */
.status-badge.reconnecting,
.status-badge.pending {
  color: #1d1d1f;
  border-color: rgba(255, 159, 10, 0.45);
  background: #ffffff;
  text-shadow: none;
}
.status-badge.reconnecting .status-signal,
.status-badge.pending .status-signal,
.status-badge.reconnecting .status-dot,
.status-badge.pending .status-dot {
  color: #ff9f0a;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
}

/* 연결 안 됨 */
.status-badge.disconnected {
  color: #1d1d1f;
  border-color: rgba(255, 59, 48, 0.35);
  background: #ffffff;
  text-shadow: none;
}
.status-badge.disconnected .status-signal,
.status-badge.disconnected .status-dot {
  color: #ff3b30;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
}
.status-badge.disconnected .signal-arc {
  opacity: 0.35;
}
.status-badge.disconnected .status-signal-slash {
  display: block;
  color: #ff3b30;
}

@media (max-width: 600px) {
  .status-badge {
    min-height: var(--chip-h, 28px);
    height: var(--chip-h, 28px);
    padding: var(--chip-pad-y, 4px) var(--chip-pad-x, 6px);
    font-size: var(--chip-fs, 0.66rem);
  }
  .status-dot,
  .status-signal,
  .status-signal-svg,
  .status-signal-slash {
    width: 14px;
    height: 14px;
  }
}
