/* Notification bell — public + admin chrome */

.notif-bell {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--border, #232838);
  background: var(--surface, #12161f);
  color: var(--text-muted, #8b93a7);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.notif-bell-btn:hover,
.notif-bell-btn[aria-expanded="true"] {
  color: var(--text, #e6e9f0);
  border-color: var(--accent-dim, #b8903a);
  background: var(--surface-2, #171c27);
}

.notif-badge {
  position: absolute;
  top: -0.2rem;
  inset-inline-end: -0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--danger, #e5637a);
  color: #1a0f12;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  direction: ltr;
  box-shadow: 0 0 0 2px var(--bg, #0b0e14);
}

/* Hidden by default — Bootstrap toggles .show on open.
   Never set display:flex here without .show or the menu stays always open. */
.notif-dropdown.dropdown-menu {
  width: min(22rem, 92vw);
  max-height: 70vh;
  overflow: hidden;
  background: var(--surface, #12161f) !important;
  border: 1px solid var(--border-soft, #1a1f2b) !important;
  border-radius: var(--radius, 10px) !important;
  box-shadow: var(--shadow-soft, 0 10px 30px -12px rgba(0,0,0,.6));
  padding: 0 !important;
  margin-top: 0.4rem !important;
}

.notif-dropdown.dropdown-menu.show {
  display: flex !important;
  flex-direction: column;
}

.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.notif-dropdown-head strong {
  font-size: 0.88rem;
  color: var(--text);
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-list {
  overflow-y: auto;
  max-height: 18rem;
}

.notif-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none !important;
  color: inherit;
  transition: background 0.12s ease;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.is-unread {
  border-inline-start: 3px solid var(--accent);
  background: var(--accent-soft, rgba(227,179,65,0.08));
}
.notif-item.is-read { opacity: 0.72; }
.notif-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.notif-item-body {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-dropdown-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
  font-size: 0.8rem;
}
.notif-dropdown-foot a {
  color: var(--text-muted);
  text-decoration: none;
}
.notif-dropdown-foot a:hover { color: var(--accent); }

/* Admin topbar spacing */
.admin-topbar .notif-bell { margin-inline: 0.15rem; }
