
/* imported from Main.css.template */

/* WebSocket reconnect notifier (Green Hill).
   Site-owned Template (Main.css wird daraus generiert -- NIE direkt
   in Main.css schreiben, das ueberschreibt der Build).
   "body #" erhoeht die Spezifitaet, damit diese Regeln gegen die
   pinke #WebSocketStatusNotifier-Regel aus theme-dark.css gewinnen.
   Farben ueber die Theme-Variablen aus styles.css: hell = :root-Default,
   dunkel = [data-theme="dark"]-Overrides -> passt sich automatisch an. */

body #WebSocketStatusNotifier {
  position: fixed;
  right: 20px;
  bottom: -100px;
  z-index: 10000;
  width: auto;
  max-width: min(380px, 90vw);
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-color, #D4D4D4);
  border-left: 3px solid var(--accent-green, #7CB342);
  background: var(--card-bg, #FFFFFF);
  color: var(--text-primary, #333333);
  box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1)),
    0 0 24px rgba(124, 179, 66, 0.20);
  font-size: 0.88rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: bottom 0.5s cubic-bezier(0.2, 0.13, 0.27, 1.55);
}

body #WebSocketStatusNotifier::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: var(--accent-green, #7CB342);
  box-shadow: 0 0 10px rgba(124, 179, 66, 0.9);
  animation: gh-pulse 1.2s ease-in-out infinite;
}

body #WebSocketStatusNotifier .ws-count {
  color: var(--text-secondary, #6B7280);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@keyframes gh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
