/* notifications.css — bell badge and the notifications side panel (theme variables, light and dark) */
#btn-topbar-alerts { position: relative; }
.bell-dot.has-count { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; color: #fff; background: #dc2626; top: -4px; right: -4px; box-sizing: border-box; }

.notif-drawer { position: fixed; top: 0; right: 0; /* top is set from the top bar height in notifications.js */ bottom: 0; width: 380px; max-width: 100vw; z-index: 3000; display: flex; flex-direction: column; background: var(--bg-card, #fff); color: var(--text-primary, #111); border-left: 1px solid var(--border-subtle, rgba(0,0,0,0.12)); box-shadow: -8px 0 28px rgba(0,0,0,0.18); }
.notif-drawer[hidden] { display: none; }
.notif-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px 8px; }
.notif-h { font-size: 16px; font-weight: 600; }
.notif-sub { font-size: 12px; color: var(--text-muted, #6b7280); margin-top: 2px; }
.notif-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary, #4b5563); font-size: 22px; line-height: 1; cursor: pointer; }
.notif-x:hover, .notif-x:focus-visible { background: var(--bg-elevated, rgba(0,0,0,0.06)); outline: none; }
.notif-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.1)); }
.notif-btn { padding: 5px 10px; font-size: 12px; border: 1px solid var(--border-medium, rgba(0,0,0,0.2)); border-radius: 8px; background: transparent; color: var(--text-primary, #111); cursor: pointer; }
.notif-btn:disabled { opacity: 0.5; cursor: default; }
.notif-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; }
.notif-item { border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.08)); }
.notif-open { display: flex; gap: 10px; width: 100%; padding: 11px 16px; text-align: left; border: 0; background: transparent; color: inherit; cursor: pointer; font-family: inherit; }
.notif-open:hover, .notif-open:focus-visible { background: var(--bg-elevated, rgba(0,0,0,0.04)); outline: none; }
.notif-unread { background: var(--bg-accent, rgba(79,131,241,0.08)); }
.notif-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: rgba(22,163,74,0.16); color: #15803d; }
.notif-threat .notif-icon, .notif-critical .notif-icon { background: rgba(220,38,38,0.14); color: #b91c1c; }
.notif-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.notif-title { font-size: 12px; font-weight: 700; }
.notif-new { margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: 10px; background: var(--accent-primary, #4f83f1); color: #fff; font-weight: 600; }
.notif-msg { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notif-time { font-size: 11px; color: var(--text-muted, #6b7280); }
.notif-empty { padding: 36px 20px; text-align: center; font-size: 14px; color: var(--text-secondary, #4b5563); }
.notif-empty span { font-size: 12px; color: var(--text-muted, #6b7280); }
@media (max-width: 600px) { .notif-drawer { width: 100vw; } }
