
/* ─── NOTIFICATION PANEL ─────────────────────────────────── */
.nhm-notif-wrap {
  position: relative;
}

.nhm-notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--topbar-bg);
  pointer-events: none;
}

.nhm-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow: hidden;
  animation: notifSlideIn .15s ease;
}

@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nhm-notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nhm-notif-read-all {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast);
}

.nhm-notif-read-all:hover { background: var(--primary-light); }

.nhm-notif-list {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nhm-notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--trans-fast);
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.nhm-notif-item:last-child { border-bottom: none; }
.nhm-notif-item:hover { background: var(--bg-hover); }

.nhm-notif-item.unread { background: var(--primary-light); }
.nhm-notif-item.unread:hover { background: #dbeafe; }

[data-theme="dark"] .nhm-notif-item.unread { background: rgba(0,74,173,.15); }

.nhm-notif-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nhm-notif-item__icon.project  { background: var(--primary-light); }
.nhm-notif-item__icon.status   { background: var(--warning-light); }
.nhm-notif-item__icon.progress { background: var(--success-light); }
.nhm-notif-item__icon.leave    { background: var(--danger-light); }
.nhm-notif-item__icon.task     { background: var(--success-light); }
.nhm-notif-item__icon.info     { background: var(--info-light); }

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

.nhm-notif-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nhm-notif-item__msg {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nhm-notif-item__time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.nhm-notif-unread-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.nhm-notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.nhm-notif-empty__icon { font-size: 32px; margin-bottom: 8px; }
