/* ── Topbar bell ────────────────────────────────────────────────────── */
.topbar-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.85);
  padding: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-bell:hover {
  color: #fff;
}

.bell-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #e23d3d;
  color: #fff;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  padding: 0 3px;
  font-weight: 600;
}

.bell-badge.hidden {
  display: none;
}

/* ── Notifications dropdown ─────────────────────────────────────────── */
.notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: .5rem;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  z-index: 1000;
  display: none;
}

.notifications-dropdown.open {
  display: block;
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
}

.notifications-header-title {
  font-weight: 600;
  font-size: .9rem;
  color: #222;
}

.notifications-mark-all {
  font-size: .75rem;
  color: #2b7de9;
  cursor: pointer;
  background: none;
  border: none;
}

.notifications-mark-all:hover {
  text-decoration: underline;
}

.notification-item {
  padding: .7rem 1rem;
  border-bottom: 1px solid #f3f3f3;
  cursor: pointer;
}

.notification-item:hover {
  background: #f7f9fc;
}

.notification-item.unread {
  border-left: 3px solid #2b7de9;
  background: #f3f8ff;
}

.notification-title {
  font-size: .85rem;
  font-weight: 600;
  color: #222;
  margin-bottom: .15rem;
}

.notification-item.unread .notification-title {
  font-weight: 700;
}

.notification-message {
  font-size: .78rem;
  color: var(--muted, #666);
  margin-bottom: .2rem;
}

.notification-time {
  font-size: .68rem;
  color: #aaa;
}

.notifications-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted, #888);
  font-size: .82rem;
}

/* ── Generic modal (shared by Sprint 5.1 admin features) ───────────── */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.app-modal-overlay.hidden {
  display: none;
}

.app-modal-box {
  background: #fff;
  border-radius: 12px;
  width: 420px;
  max-width: 92vw;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
}

.app-modal-title {
  font-weight: 600;
  font-size: 1rem;
}

.app-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #999;
}

.app-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.app-modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
}

/* ── User status badge ──────────────────────────────────────────────── */
.user-status-badge {
  font-size: .72rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-weight: 600;
}

.user-status-badge.active {
  background: #e7f7ee;
  color: #2fa66a;
}

.user-status-badge.inactive {
  background: #fdeaea;
  color: #c0392b;
}
