/* Notification settings modal — department subscription picker. */

.notif-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 16px;
}

.notif-settings-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222;
}

.notif-settings-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: #1f4b2f;
}

.notif-settings-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: #555;
}

.notif-settings-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.notif-settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.notif-settings-row:hover {
  background: #f3f6f3;
}

.notif-settings-check {
  width: 17px;
  height: 17px;
  accent-color: #1f4b2f;
  cursor: pointer;
}

.notif-settings-label {
  font-size: 14px;
}

.notif-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.notif-settings-btn {
  border: none;
  border-radius: 7px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.notif-settings-cancel {
  background: #eee;
  color: #333;
}

.notif-settings-cancel:hover {
  background: #e2e2e2;
}

.notif-settings-save {
  background: #1f4b2f;
  color: #fff;
}

.notif-settings-save:hover {
  background: #173a24;
}

.notif-settings-save:disabled {
  opacity: 0.7;
  cursor: default;
}

.notif-settings-error {
  background: #b3261e;
}

/* ── #134 dark mode overrides ─────────────────────────────── */
html[data-theme="dark"] .notif-settings-overlay {
  background: rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .notif-settings-modal {
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* The brand ink green is unreadable on slate — lift it to a light sage. */
html[data-theme="dark"] .notif-settings-title { color: #86c9a0; }
html[data-theme="dark"] .notif-settings-sub { color: #94a3b8; }

html[data-theme="dark"] .notif-settings-row:hover { background: #334155; }
html[data-theme="dark"] .notif-settings-check { accent-color: #4ea277; }

html[data-theme="dark"] .notif-settings-cancel {
  background: #334155;
  color: #e2e8f0;
}
html[data-theme="dark"] .notif-settings-cancel:hover { background: #475569; }

html[data-theme="dark"] .notif-settings-save {
  background: #2f7a4c;
  color: #f0fdf4;
}
html[data-theme="dark"] .notif-settings-save:hover { background: #276440; }

html[data-theme="dark"] .notif-settings-error { background: #b3261e; color: #fee2e2; }
