/* Notification Bell — System Awareness layer (Unbenannt 15)
 * Monochrome shell; color only for severity semantics (allowed per tokens.css).
 * Injected globally via NotificationBellMiddleware — self-contained, no page CSS.
 */

.qrl-nb-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* NOTIFICATIONS pill button (matches the LIVE SIGNALS / ACTIVITY CENTER pills) */
.qrl-nb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  margin-right: 8px;
  border: 1px solid var(--color-border-subtle, var(--border, #30363d));
  border-radius: var(--radius-control, 6px);
  background: transparent;
  color: var(--color-text-secondary, var(--text2, #8b949e));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.qrl-nb-btn:hover {
  color: var(--color-text-primary, var(--text, #e6edf3));
  border-color: var(--color-accent, #C9CDD3);
  background: var(--color-surface-hover, var(--bg3, #21262d));
}
.qrl-nb-btn:focus-visible {
  outline: none;
  border-color: var(--color-accent, #C9CDD3);
}
.qrl-nb-btn svg { display: block; flex: 0 0 auto; }
/* Textlabel neben der Glocke (Marius: Glocken-Button um "Notifications" ergänzen) */
.qrl-nb-label { white-space: nowrap; line-height: 1; }

.qrl-nb-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--color-accent-negative, var(--red, #C56B70));
  color: #0B0D0F;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
}
.qrl-nb-badge.visible { display: block; }

/* ── Popover ── */
.qrl-nb-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--color-surface-secondary, var(--bg2, #171B20));
  border: 1px solid var(--color-border-strong, var(--border, #39414A));
  border-radius: var(--radius-modal, 8px);
  box-shadow: var(--shadow-modal, 0 4px 16px rgba(0,0,0,0.5));
  display: none;
  z-index: 9999;
  overflow: hidden;
}
.qrl-nb-pop.open { display: block; }

.qrl-nb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-subtle, var(--border, #262C33));
}
.qrl-nb-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary, var(--text2, #B3BAC2));
}
.qrl-nb-mark-all {
  font-size: 11px;
  color: var(--color-accent, #C9CDD3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
}
.qrl-nb-mark-all:hover { text-decoration: underline; }

.qrl-nb-list {
  max-height: 420px;
  overflow-y: auto;
}

.qrl-nb-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid var(--color-border-subtle, var(--border, #262C33));
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.qrl-nb-row:last-child { border-bottom: none; }
.qrl-nb-row:hover { background: var(--color-surface-hover, var(--bg3, #242A31)); }
.qrl-nb-row.unread { background: var(--color-surface-tertiary, var(--bg3, #1D2228)); }
.qrl-nb-row.unread:hover { background: var(--color-surface-hover, var(--bg3, #242A31)); }

.qrl-nb-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.qrl-nb-sev {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.qrl-nb-sev.INFO    { color: var(--color-accent-info, #9AA2AB); background: rgba(154,162,171,0.14); }
.qrl-nb-sev.SUCCESS { color: var(--status-success, #62A67B); background: rgba(98,166,123,0.14); }
.qrl-nb-sev.WARNING { color: var(--status-warning, #C2A25C); background: rgba(194,162,92,0.14); }
.qrl-nb-sev.CRITICAL{ color: var(--status-error, #C56B70); background: rgba(197,107,112,0.16); }

.qrl-nb-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary, var(--text, #F2F4F6));
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qrl-nb-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-negative, var(--red, #C56B70));
  flex-shrink: 0;
  display: none;
}
.qrl-nb-row.unread .qrl-nb-unread-dot { display: block; }

.qrl-nb-msg {
  font-size: 12px;
  color: var(--color-text-muted, var(--text2, #7F8892));
  line-height: 1.35;
  margin-bottom: 4px;
}
.qrl-nb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qrl-nb-time {
  font-size: 10px;
  color: var(--color-text-disabled, #59616A);
}
.qrl-nb-action {
  font-size: 11px;
  color: var(--color-accent, #C9CDD3);
  text-decoration: none;
}
.qrl-nb-action:hover { text-decoration: underline; }

.qrl-nb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid var(--color-border-subtle, var(--border, #262C33));
}
.qrl-nb-history {
  font-size: 11px;
  color: var(--color-accent, #C9CDD3);
  text-decoration: none;
}
.qrl-nb-history:hover { text-decoration: underline; }
.qrl-nb-foot-status { font-size: 10px; color: var(--color-text-disabled, #59616A); }

.qrl-nb-sound {
  font-size: 11px;
  color: var(--color-text-secondary, var(--text2, #B3BAC2));
  background: none;
  border: 1px solid var(--color-border-subtle, var(--border, #262C33));
  border-radius: var(--radius-control, 4px);
  padding: 2px 8px;
  cursor: pointer;
}
.qrl-nb-sound.on {
  color: var(--color-accent-positive, #62A67B);
  border-color: var(--color-accent-positive, #62A67B);
}
.qrl-nb-sound:hover { border-color: var(--color-accent, #C9CDD3); }

.qrl-nb-state {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted, var(--text2, #7F8892));
}
.qrl-nb-state-icon { font-size: 22px; display: block; margin-bottom: 8px; }
.qrl-nb-state.error { color: var(--status-error, #C56B70); }

/* Schmale Kopfzeile: kein eigenes `right` — der gemeinsame Platz fuer BEIDE
 * Header-Popover steht in header-actions.css (beide Dateien werden global
 * zusammen injiziert). Das fruehere `right:-160px` schob das Panel bei 460 px
 * Fensterbreite bis 1253 px nach rechts, also aus dem Bild. */
