/* ── Notifications Page ── */
.notif-page { display: grid; gap: 20px; min-width: 0; max-width: 100%; overflow-x: hidden; }

.notif-page__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}
.notif-page__title { margin: 0; font-size: 22px; font-weight: 700; color: var(--text-primary); }
.notif-page__subtitle { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }

.notif-page__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notif-page__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid transparent; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s ease;
}
.notif-page__btn svg { width: 14px; height: 14px; }
.notif-page__btn--secondary {
  background: var(--bg-card); color: var(--text-primary); border-color: var(--border);
}
.notif-page__btn--secondary:hover { background: var(--bg-hover); }
.notif-page__btn--ghost {
  background: transparent; color: var(--text-secondary); border-color: var(--border);
}
.notif-page__btn--ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Filters */
.notif-page__filters {
  display: flex; gap: 4px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 3px; width: fit-content;
}
.notif-page__filter {
  padding: 6px 14px; border: none; background: none; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: .15s ease;
}
.notif-page__filter:hover { color: var(--text-primary); }
.notif-page__filter--active {
  background: var(--bg-hover); color: var(--text-primary); font-weight: 600;
}

/* List */
.notif-page__list {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden;
}

.notif-page__loading, .notif-page__empty {
  padding: 48px 20px; text-align: center; color: var(--text-muted); font-size: 14px;
}
.notif-page__empty svg { width: 48px; height: 48px; color: var(--text-muted); opacity: .4; margin-bottom: 12px; }

/* Single notification item */
.notif-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  transition: background .12s ease; cursor: pointer; text-decoration: none; color: inherit;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-hover); }
.notif-item--unread { background: rgba(99, 102, 241, .04); }
.notif-item--unread:hover { background: rgba(99, 102, 241, .08); }

.notif-item__icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.notif-item__icon svg { width: 16px; height: 16px; }
.notif-item__icon--task { background: #fef3c7; color: #d97706; }
.notif-item__icon--chat { background: #dbeafe; color: #2563eb; }
.notif-item__icon--bug { background: #fce7f3; color: #db2777; }
.notif-item__icon--default { background: #f1f5f9; color: #64748b; }

[data-theme="dark"] .notif-item__icon--task { background: rgba(217,119,6,.15); color: #fbbf24; }
[data-theme="dark"] .notif-item__icon--chat { background: rgba(37,99,235,.15); color: #60a5fa; }
[data-theme="dark"] .notif-item__icon--bug { background: rgba(219,39,119,.15); color: #f472b6; }
[data-theme="dark"] .notif-item__icon--default { background: rgba(100,116,139,.15); color: #94a3b8; }

.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  line-height: 1.3; margin: 0;
}
.notif-item--unread .notif-item__title { font-weight: 700; }
.notif-item__desc {
  font-size: 13px; color: var(--text-secondary); margin: 2px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-item__meta {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.notif-item__time { font-size: 12px; color: var(--text-muted); }
.notif-item__badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  background: #eef2ff; color: #4338ca;
}
[data-theme="dark"] .notif-item__badge { background: rgba(99,102,241,.15); color: #a5b4fc; }
.notif-item__unread-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #6366f1; flex-shrink: 0;
}

/* Actions column */
.notif-item__actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.notif-item__action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); color: var(--text-muted); cursor: pointer;
  transition: .12s ease; opacity: 0;
}
.notif-item:hover .notif-item__action-btn { opacity: 1; }
.notif-item__action-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.notif-item__action-btn--danger:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
[data-theme="dark"] .notif-item__action-btn--danger:hover { background: rgba(220,38,38,.15); color: #f87171; border-color: rgba(220,38,38,.3); }
.notif-item__action-btn svg { width: 14px; height: 14px; }

/* Pagination */
.notif-page__pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
}
.notif-page__page-btn {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); color: var(--text-primary); font-size: 13px;
  font-weight: 500; cursor: pointer; transition: .12s ease;
}
.notif-page__page-btn:hover { background: var(--bg-hover); }
.notif-page__page-btn:disabled { opacity: .4; cursor: not-allowed; }
.notif-page__page-info { font-size: 13px; color: var(--text-secondary); }

/* Mobile */
@media (max-width: 640px) {
  .notif-page__head { flex-direction: column; }
  .notif-page__title { font-size: 18px; }
  .notif-page__actions { width: 100%; }
  .notif-page__actions .notif-page__btn { flex: 1; justify-content: center; font-size: 12px; padding: 8px 10px; }

  .notif-item { padding: 12px 14px; gap: 10px; }
  .notif-item__icon { width: 32px; height: 32px; border-radius: 8px; }
  .notif-item__icon svg { width: 14px; height: 14px; }
  .notif-item__title { font-size: 13px; }
  .notif-item__desc { font-size: 12px; }
  .notif-item__time { font-size: 11px; }
  .notif-item__action-btn { opacity: 1; width: 28px; height: 28px; }
  .notif-item__action-btn svg { width: 12px; height: 12px; }
}
