/* ===== NOTIFICATIONS PAGE ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: color 0.18s;
}
.nav-link:hover { color: var(--text); }

.user-dropdown { position: relative; }
.user-dropdown-trigger {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: none; font-family: inherit;
  padding: 4px 8px; border-radius: 8px; transition: background 0.18s;
}
.user-dropdown-trigger:hover { background: #f5f5f5; }
.user-avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff6b5b);
  color: #fff; font-weight: 800; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name-sm { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.user-dropdown-trigger svg { color: var(--text-2); transition: transform 0.2s; }
.user-dropdown.open .user-dropdown-trigger svg { transform: rotate(180deg); }
.user-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); padding: 6px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.user-dropdown.open .user-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: var(--text);
  text-decoration: none; transition: background 0.15s;
}
.user-dropdown-item:hover { background: #f5f5f5; }
.user-dropdown-item.active { background: rgba(232,68,58,0.06); color: var(--accent); font-weight: 600; }
.user-dropdown-item svg { color: var(--text-2); flex-shrink: 0; }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.user-dropdown-logout { color: var(--accent) !important; }
.user-dropdown-logout svg { color: var(--accent) !important; }
.mob-divider { height: 1px; background: var(--border); margin: 8px 16px; }

/* ===== PAGE ===== */
.notif-page {
  background: var(--bg-2);
  min-height: 100vh;
  padding: 32px 0 60px;
}

.notif-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* ===== HEADER ===== */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.notif-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.notif-header-actions { display: flex; gap: 8px; }
.notif-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1.5px solid var(--border);
  border-radius: 9px; background: var(--bg); font-family: inherit;
  font-size: 0.83rem; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all 0.18s;
}
.notif-action-btn:hover { border-color: var(--text); color: var(--text); }

/* Filter tabs */
.notif-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 5px;
}

.notif-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.notif-tab:hover { background: var(--bg-2); color: var(--text); }
.notif-tab.active { background: var(--bg-3); color: var(--text); font-weight: 600; }

.notif-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ===== NOTIFICATION ITEMS ===== */
.notif-list { display: flex; flex-direction: column; gap: 0; }

/* Date group */
.notif-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
  padding: 14px 0 8px;
}
.notif-group-label:first-child { padding-top: 0; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.notif-item:hover { border-color: #d1d5db; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.notif-item.unread { border-left: 3px solid var(--accent); padding-left: 16px; }
.notif-item.unread .notif-item-title { font-weight: 700; }

/* Icon */
.notif-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-icon.invite    { background: #ecfdf5; color: #059669; }
.notif-icon.reject    { background: #fef2f2; color: var(--accent); }
.notif-icon.view      { background: #eff6ff; color: #2563eb; }
.notif-icon.message   { background: #fef3c7; color: #d97706; }
.notif-icon.recommend { background: #f5f3ff; color: #7c3aed; }
.notif-icon.system    { background: var(--bg-3); color: var(--text-2); }

/* Body */
.notif-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.4;
}
.notif-item-sub {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 8px;
}
.notif-item-sub strong { color: var(--text); font-weight: 600; }

/* Action buttons inside notification */
.notif-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.notif-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-family: inherit;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.18s; text-decoration: none;
}
.notif-btn-primary:hover { background: #c0392b; }
.notif-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: none; color: var(--text-2);
  border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit;
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: all 0.18s; text-decoration: none;
}
.notif-btn-secondary:hover { border-color: var(--text); color: var(--text); }

/* Meta */
.notif-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.notif-time {
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
}
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.notif-del {
  width: 28px; height: 28px; border: none; background: none;
  cursor: pointer; border-radius: 7px; display: flex;
  align-items: center; justify-content: center; color: var(--text-2);
  transition: all 0.15s; opacity: 0;
}
.notif-item:hover .notif-del { opacity: 1; }
.notif-del:hover { background: #fef2f2; color: var(--accent); }

/* Empty state */
.notif-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}
.notif-empty-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  color: var(--text-2);
}
.notif-empty-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* ===== SIDEBAR ===== */
.notif-sidebar { position: sticky; top: 80px; }

.notif-sidebar-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
.notif-sidebar-card:last-child { margin-bottom: 0; }

.notif-sidebar-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

/* Stats */
.notif-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.notif-stat-box {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.notif-stat-val { font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.notif-stat-lbl { font-size: 0.75rem; color: var(--text-2); margin-top: 2px; }

/* Quick links */
.notif-quick-links { display: flex; flex-direction: column; gap: 6px; }
.notif-quick-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; text-decoration: none;
  font-size: 0.86rem; font-weight: 500; color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.notif-quick-link:hover { background: var(--bg-2); color: var(--text); }
.notif-quick-link svg { flex-shrink: 0; }

/* Settings promo */
.notif-settings-card {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-color: transparent;
}
.notif-settings-card .notif-sidebar-title { color: #fff; }
.notif-settings-sub {
  font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 14px;
}
.notif-settings-btn {
  display: block; width: 100%; padding: 9px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-family: inherit; font-size: 0.86rem;
  font-weight: 600; cursor: pointer; text-align: center;
  text-decoration: none; transition: background 0.18s;
}
.notif-settings-btn:hover { background: #c0392b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .notif-layout { grid-template-columns: 1fr; }
  .notif-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .notif-sidebar-card { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .notif-tabs { flex-wrap: wrap; }
  .notif-sidebar { grid-template-columns: 1fr; }
}
