/* ============================================================
   BACKEND STATUS INDICATOR
   ============================================================ */
#backend-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: 'Inter', -apple-system, sans-serif;
}

#bi-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  min-width: 180px;
}

#bi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.4s ease;
}

#bi-text {
  flex: 1;
  letter-spacing: 0.01em;
}

#bi-timer {
  font-size: 11px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  text-align: right;
}

.bi-connecting #bi-dot {
  background: #f59e0b;
  animation: pulse-ring 1.4s infinite;
}

.bi-waking #bi-dot {
  background: #f97316;
  animation: pulse-ring 1.2s infinite;
}

.bi-ready #bi-dot {
  background: var(--green);
  animation: pulse-ring 2s infinite;
}

.bi-error #bi-dot {
  background: #ef4444;
  animation: none;
}

.bi-ready #bi-pill {
  border-color: rgba(76, 175, 80, 0.2);
  background: rgba(240, 253, 244, 0.95);
}

.bi-error #bi-pill {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(254, 242, 242, 0.95);
}

.bi-fadeout {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.6s ease;
}
