/* ==========================================================================
   SMART OFFLINE QUEUE INDICATOR — Floating Glass Pill
   ========================================================================== */
.sr-offline-pill {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 12px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 99995;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  user-select: none;
}

.sr-offline-pill.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-24px);
  pointer-events: none;
}

.pill-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.pill-queue-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
}

/* Offline state (Amber/Orange glass) */
.pill-offline .pill-inner {
  background: rgba(180, 83, 9, 0.92);
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Syncing state (Blue/Cyan glass) */
.pill-syncing .pill-inner {
  background: rgba(3, 105, 161, 0.92);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Success state (Emerald glass) */
.pill-success .pill-inner {
  background: rgba(0, 135, 81, 0.94);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.4);
}
