/* ============================================================================
   Notifications Bell & Dropdown
   ============================================================================ */

/* Wrapper — relative so the dropdown can be absolutely positioned below it. */
.notifications-bell {
  position: relative;
}

/* The bell button inherits .btn-nav; this just removes horizontal padding since
   it's icon-only (no text label). */
#notifications-btn {
  padding: 10px 14px;
}

/* Unread count badge — sits on the top-right corner of the bell button. */
.notifications-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #0b0b0b;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* Dropdown panel. */
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  z-index: 100;
  overflow: hidden;
}

/* Header row inside the dropdown. */
.notifications-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* "Mark all read" button in the header. */
.notifications-dropdown-header button {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
}

.notifications-dropdown-header button:hover {
  filter: brightness(1.15);
}

/* Scrollable notification list. */
.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}

/* Empty-state message rendered as a list item. */
.notifications-list .notifications-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Individual notification row. */
.notification-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: background 0.15s;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Unread indicator — left accent bar. */
.notification-item:not(.notification-item--read) {
  border-left: 3px solid var(--accent);
  padding-left: 13px; /* compensate for the border so text stays aligned */
}

/* Read state — muted text. */
.notification-item--read {
  border-left: 3px solid transparent;
  padding-left: 13px;
}

.notification-item--read .notification-item__title,
.notification-item--read .notification-item__body {
  color: var(--muted);
}

.notification-item__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notification-item__body {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-item__time {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}
