/* ── Notification Bell ─────────────────────────────────────────── */

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1000;
  overflow: hidden;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 600;
  font-size: .875rem;
  color: #111;
}

.notif-panel-title {
  font-size: .875rem;
  font-weight: 600;
  color: #111;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.notif-list .notif-empty {
  padding: 16px;
  color: #9ca3af;
  font-size: .875rem;
  text-align: center;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
}

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

.notif-item:hover {
  background: #f9fafb;
}

/* Clickable area wrapping icon + body */
.notif-item-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.notif-item-link:hover {
  color: inherit;
}

.notif-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-text {
  font-size: .8125rem;
  color: #111;
  line-height: 1.4;
  white-space: normal;
}

.notif-time {
  font-size: .6875rem;
  color: #9ca3af;
  margin-top: 2px;
}

.notif-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  transition: color .15s, background .15s;
}

.notif-dismiss:hover {
  color: #374151;
  background: #f3f4f6;
}
