.header-bell-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2937;
  border: 1px solid #374151;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.header-bell-button i { color: #e5e7eb; font-size: 16px; display: flex; align-items: center; justify-content: center; }

.notifications-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 12px;
  background: #22d3ee;
  color: #111827;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  border: 1px solid #111827;
}

.notifications-bell-container { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); display: inline-block; }

.notifications-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 280px;
  max-width: 92vw;
  background: #1a1f2e;
  border: 1px solid #374151;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  z-index: 2000;
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #374151;
}

.notifications-title {
  color: #e5e7eb;
  font-weight: 600;
}

.notifications-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f2937;
  border: 1px solid #374151;
  color: #e5e7eb; /* light text on dark background */
  border-radius: 8px;
  padding: 4px 8px;
  height: 28px;
  font-size: 12px;
  cursor: pointer;
}

.notifications-action i { color: #e5e7eb !important; }
.notifications-action span { color: #e5e7eb !important; }

.notifications-list {
  max-height: 360px;
  overflow: auto;
}

.notifications-empty {
  color: #9ca3af;
  padding: 16px;
}

.notification-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid #374151;
  cursor: pointer;
  position: relative;
}

.notification-item:hover { background: #1f2937; }

.notification-title { color: #e5e7eb; font-weight: 500; }
.notification-meta { color: #9ca3af; font-size: 12px; }
.notification-placements { color: #9ca3af; font-size: 12px; }

.notification-unread .notification-title { font-weight: 700; }
.notification-unread { background: #1f2937; }

/* Unread indicator badge (top-right) */
.notification-indicator {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee; /* blue dot */
  border: 1px solid #111827; /* contrast on dark bg */
}

.notifications-footer { padding: 8px 12px; border-top: 1px solid #374151; display: flex; justify-content: center; }
.notifications-toggle {
  display: inline-flex;
  align-items: center;
  background: #1f2937;
  border: 1px solid #374151;
  color: #e5e7eb !important;
  border-radius: 8px;
  padding: 4px 10px;
  height: 28px;
  font-size: 12px;
  cursor: pointer;
}
.notifications-footer { gap: 8px; }
.notifications-none { color: #e5e7eb; font-size: 12px; align-self: center; }

/* Ensure header not blocking clicks when panels are open: use via runtime toggle in JS */
header.header-disabled { pointer-events: none; }
header.header-disabled .notifications-bell-container { display: none; }
header.header-disabled h1 { display: none; }
header.header-disabled #profile-button { display: none; }

@media (max-width: 480px) {
  .notifications-dropdown { left: 0; right: auto; min-width: 260px; max-width: calc(100vw - 24px); }
  .header-bell-button { width: 34px; height: 34px; }
  .notifications-action span { display: none; }
  .notifications-action { padding: 4px; width: 28px; justify-content: center; }
}

/* Active/pressed state for visibility on dark background */
.header-bell-button:active i,
.header-bell-button.active i { color: #e5e7eb; }
.notifications-action:active,
.notifications-action:focus { color: #e5e7eb; }
.notifications-action:active i,
.notifications-action:focus i { color: #e5e7eb; }

