/* ─── Notifications Page ──────────────────────────────────────────────────────
   Full-page notifications center at #/notifications.
   Extends the header popover notification patterns from common.css.
   ─────────────────────────────────────────────────────────────────────────── */

.fx-notif-page {
  padding: 32px 40px;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Page header ─────────────────────────────────────────────────────────────── */
.fx-notif-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.fx-notif-page-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fx-notif-page-title {
  font: 700 22px/30px "Open Sans", sans-serif;
  color: var(--fx-title);
  margin: 0;
}
.fx-notif-agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(86,135,147,.08);
  border: 1px solid rgba(86,135,147,.2);
  border-radius: 100px;
  padding: 2px 10px 2px 6px;
  font: 600 11px/18px "Open Sans", sans-serif;
  color: var(--fx-primary-500);
  letter-spacing: 0.2px;
}
.fx-notif-agent-chip-star {
  font-size: 12px;
  color: var(--fx-primary-500);
}

/* ── Filter tabs ─────────────────────────────────────────────────────────────── */
.fx-notif-filters {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--fx-divider);
  margin-bottom: 24px;
}
.fx-notif-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font: 500 13px/20px "Open Sans", sans-serif;
  color: var(--fx-body);
  cursor: pointer;
  transition: all .12s;
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.fx-notif-filter-tab:hover { color: var(--fx-title); }
.fx-notif-filter-tab.active {
  color: var(--fx-primary-500);
  border-bottom-color: var(--fx-primary-500);
  font-weight: 600;
}
.fx-notif-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--fx-greyscale-200);
  color: var(--fx-body);
  border-radius: 9px;
  font: 600 11px/18px "Open Sans", sans-serif;
}
.fx-notif-filter-tab.active .fx-notif-tab-count {
  background: rgba(86,135,147,.12);
  color: var(--fx-primary-500);
}

/* ── Mark all + list container ──────────────────────────────────────────────── */
.fx-notif-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fx-notif-list-label {
  font: 600 10px/16px "Open Sans", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #A8B4B8;
}
.fx-notif-mark-all {
  font: 500 12px/18px "Open Sans", sans-serif;
  color: var(--fx-primary-500);
  cursor: pointer;
  transition: all .12s;
  background: transparent;
  border: 0;
  padding: 0;
  transition: color .15s;
}
.fx-notif-mark-all:hover { color: var(--fx-primary-700); text-decoration: underline; }

/* ── Notification list ──────────────────────────────────────────────────────── */
.fx-notif-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Notification item ──────────────────────────────────────────────────────── */
.fx-notif-item {
  transition: background .1s, transform .1s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--fx-radius);
  cursor: pointer;
  transition: background .15s;
  position: relative;
  border-bottom: 1px solid var(--fx-divider);
}
.fx-notif-item:last-child { border-bottom: 0; }
.fx-notif-item:hover { background: var(--fx-greyscale-100); }
.fx-notif-item.fx-notif-unread { background: rgba(86,135,147,.04); }
.fx-notif-item.fx-notif-unread:hover { background: rgba(86,135,147,.08); }
.fx-notif-item.fx-notif-ai { border-left: 3px solid rgba(86,135,147,.35); padding-left: 13px; }

/* Unread dot */
.fx-notif-item.fx-notif-unread::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-primary-500);
}

/* ── Icon bubble ─────────────────────────────────────────────────────────────── */
.fx-notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fx-notif-icon .icon { font-size: 18px !important; }
.fx-notif-icon-teal  { background: rgba(86,135,147,.12);  color: var(--fx-primary-500); }
.fx-notif-icon-green { background: rgba(39,174,96,.1);    color: #27AE60; }
.fx-notif-icon-blue  { background: rgba(45,156,219,.1);   color: #2D9CDB; }
.fx-notif-icon-orange{ background: rgba(242,153,74,.1);   color: #F2994A; }
.fx-notif-icon-purple{ background: rgba(187,107,217,.1);  color: #BB6BD9; }
.fx-notif-icon-red   { background: rgba(235,87,87,.1);    color: #EB5757; }

/* ── Item body ─────────────────────────────────────────────────────────────────*/
.fx-notif-body { flex: 1; min-width: 0; }
.fx-notif-title {
  font: 500 13px/20px "Open Sans", sans-serif;
  color: var(--fx-title);
  margin: 0 0 3px;
}
.fx-notif-title b { font-weight: 700; }
.fx-notif-desc {
  font: 400 12px/18px "Open Sans", sans-serif;
  color: var(--fx-body);
  margin: 0 0 4px;
}
.fx-notif-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 11px/16px "Open Sans", sans-serif;
  color: var(--fx-greyscale-400);
}
.fx-notif-meta .icon { font-size: 13px !important; }
.fx-notif-action-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font: 500 11px/16px "Open Sans", sans-serif;
  color: var(--fx-primary-500);
}
.fx-notif-action-link .icon { font-size: 11px !important; }

/* ── AI section label ─────────────────────────────────────────────────────────── */
.fx-notif-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 8px;
  font: 600 10px/16px "Open Sans", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #A8B4B8;
}
.fx-notif-section-header .fx-ai-star {
  font-size: 12px;
  color: var(--fx-primary-500);
}

/* ── Empty state ─────────────────────────────────────────────────────────────── */
.fx-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  gap: 12px;
}
.fx-notif-empty-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--fx-greyscale-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fx-greyscale-400);
}
.fx-notif-empty-icon .icon { font-size: 24px !important; }
.fx-notif-empty-title {
  font: 600 15px/22px "Open Sans", sans-serif;
  color: var(--fx-title);
  margin: 0;
}
.fx-notif-empty-body {
  font: 400 13px/20px "Open Sans", sans-serif;
  color: var(--fx-body);
  margin: 0;
}
