/* Admin notifications on every admin page (static/admin/js/admin_notifier.js):
   sidebar badge, toast and the sound on/off button. Loaded through UNFOLD["STYLES"]. */
:root {
  --an-action: #dc2626;
  --an-bg: #ffffff;
  --an-text: #111827;
  --an-muted: #6b7280;
  --an-border: #e5e7eb;
}
html.dark {
  --an-action: #ef4444;
  --an-bg: #171717;
  --an-text: #f3f4f6;
  --an-muted: #9ca3af;
  --an-border: #2e2e2e;
}
.an-sidebar-badge { display: inline-block; margin-left: 8px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--an-action); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.an-toast { position: fixed; right: 20px; bottom: 68px; z-index: 9999; max-width: 380px; padding: 12px 14px; border-radius: 10px; background: var(--an-bg); color: var(--an-text); border: 1px solid var(--an-action); box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.an-toast strong { display: block; margin-bottom: 2px; }
.an-toast a { color: var(--an-action); font-weight: 600; display: inline-block; margin-top: 6px; }
.an-toast button { margin-left: auto; background: none; border: 0; color: var(--an-muted); cursor: pointer; font-size: 18px; line-height: 1; }
.an-sound { position: fixed; right: 20px; bottom: 20px; z-index: 9998; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--an-border); background: var(--an-bg); color: var(--an-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.an-sound .material-symbols-outlined { font-size: 18px; }
/* Change forms: Unfold pins the Save bar (#submit-row) to the bottom on large screens, so sit
   above it instead of on top of the Save button */
@media (min-width: 1024px) {
  body:has(#submit-row) .an-sound { bottom: 92px; }
  body:has(#submit-row) .an-toast { bottom: 140px; }
}
