/* Notifications settings page — extends dashboard shell */

:root {
  --ntf-purple: var(--dash-accent);
  --ntf-purple-soft: var(--dash-surface-hover);
  --ntf-card-elevated: var(--dash-elevated);
  --ntf-border: rgba(255, 255, 255, 0.08);
  --ntf-text: #f4f4f5;
  --ntf-right-w: 320px;
}

body.ntf-page {
  --dash-purple: var(--ntf-purple);
  --dash-purple-soft: var(--ntf-purple-soft);
}

.ntf-page .dash-pro__btn,
.ntf-page .ntf-btn--primary {
  background: var(--ntf-purple);
}

.ntf-page .dash-pro__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ntf-page .dash-search input:focus {
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--dash-surface-hover);
}

.ntf-page .ntf-test-header {
  border: none;
  background: var(--ntf-card-elevated);
  color: var(--ntf-text);
}



.ntf-content {
  padding: var(--dash-content-y, 32px) var(--dash-page-x, 32px);
  padding-left: calc(var(--dash-page-x, 32px) + var(--dash-mobile-nav-gutter, 0px));
  padding-bottom: calc(var(--dash-content-y, 32px) + var(--dash-content-pad-bottom, 0px));
  flex: 1;
  min-width: 0;
  container: ntf-content / inline-size;
}

.ntf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, var(--ntf-right-w));
  gap: var(--dash-gap, 24px);
  align-items: start;
}

.ntf-main {
  display: flex;
  flex-direction: column;
  gap: var(--dash-gap, 24px);
  min-width: 0;
  container: ntf-main / inline-size;
}

.ntf-aside {
  display: flex;
  flex-direction: column;
  gap: var(--dash-gap, 24px);
  position: sticky;
  top: var(--dash-gap, 24px);
  min-width: 0;
  margin-top: calc(21.5px + 10px + 40px + var(--dash-gap, 24px));
}

.ntf-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.ntf-crumb a {
  color: var(--dash-text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.ntf-crumb a:hover { color: var(--ntf-purple); }

.ntf-crumb__sep { opacity: 0.5; }

.ntf-crumb [aria-current="page"] { color: var(--ntf-text); }

.ntf-head {
  margin-bottom: 4px;
}

.ntf-head .settings-crumb {
  margin-bottom: 10px;
}

.ntf-title {
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ntf-text);
}

.ntf-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--dash-text-muted);
  line-height: 1.45;
}

/* Notification cards */
.ntf-card {
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card, 20px);
  box-shadow: none;
  overflow: hidden;
  transition: background 150ms ease;
}

.ntf-card:hover {
  background: var(--dash-card);
}

.ntf-card__title {
  margin: 0;
  padding: 20px 20px 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--ntf-text);
}

.ntf-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 56px 72px;
  gap: 8px;
  padding: 0 20px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(238, 238, 238, 0.44);
  text-align: center;
}

.ntf-table-head span:first-child {
  text-align: left;
}

.ntf-rows {
  padding: 0 8px 8px;
}

.ntf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 56px 72px;
  gap: 8px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border-radius: 14px;
  transition: background 150ms ease;
}

.ntf-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ntf-row__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ntf-row__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ntf-card-elevated);
  color: var(--dash-text-muted);
  flex: 0 0 36px;
}

.ntf-row__icon svg {
  width: 16px;
  height: 16px;
}

.ntf-row__info > div {
  min-width: 0;
}

.ntf-row__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ntf-text);
}

.ntf-row__desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.4;
}

/* Toggle switches — nv-switch from DS; center in table columns */
.ntf-row > .nv-switch {
  justify-self: center;
}

/* Right panel */
.ntf-panel {
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card, 20px);
  padding: 20px;
  box-shadow: none;
  transition: background 150ms ease;
}

.ntf-panel:hover {
  background: var(--dash-card);
}

.ntf-panel__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--ntf-text);
}

.ntf-panel__copy {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.45;
}

.ntf-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ntf-donut-figure {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.ntf-donut {
  width: 100%;
  height: 100%;
}

.ntf-donut svg {
  width: 100%;
  height: 100%;
}

.ntf-donut__total {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.ntf-donut__value {
  color: var(--ntf-text);
  font-family: var(--font-numeric, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.ntf-donut__label {
  margin-top: 3px;
  color: var(--dash-text-subtle);
  font-size: 8px;
  line-height: 1;
}

.ntf-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ntf-summary__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.ntf-summary__list strong {
  color: var(--ntf-text);
  font-weight: 600;
}

.ntf-summary__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ntf-quiet__label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.ntf-quiet__time {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ntf-text);
}

.ntf-quiet__time span {
  color: var(--dash-text-muted);
  font-weight: 400;
  font-size: 16px;
  margin: 0 4px;
}

.ntf-quiet__tz {
  margin: 0;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.ntf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.ntf-btn--primary {
  color: var(--dash-accent-text, #0a0a0a);
}

.ntf-btn--primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ntf-purple) 90%, white);
}

.ntf-btn--primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.ntf-btn--block { width: 100%; }

.ntf-link-btn {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--ntf-card-elevated);
  color: var(--ntf-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.ntf-link-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ntf-text);
}

.ntf-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ntf-history li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ntf-text);
}

.ntf-history__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ntf-history__dot--green { background: var(--dash-green); }
.ntf-history__dot--purple { background: var(--ntf-purple); }
.ntf-history__dot--amber { background: #f59e0b; }

.ntf-history__time {
  font-size: 12px;
  color: var(--dash-text-muted);
}

.ntf-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--dash-popover-bg-solid, #202020);
  color: var(--ntf-text);
  box-shadow: var(--dash-popover-shadow, 0 16px 48px rgba(0, 0, 0, 0.45));
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ntf-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@container ntf-content (max-width: 900px) {
  .ntf-layout {
    grid-template-columns: 1fr;
  }

  .ntf-aside {
    position: static;
    margin-top: 0;
  }
}

@container ntf-main (max-width: 720px) {
  .ntf-table-head {
    grid-template-columns: minmax(0, 1fr) repeat(3, 52px);
    padding-inline: 16px;
  }

  .ntf-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, 52px);
  }

  .ntf-row__icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

@container ntf-main (max-width: 560px) {
  .ntf-table-head {
    display: none;
  }

  .ntf-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ntf-row > .nv-switch {
    justify-self: start;
  }

  .ntf-row > .nv-switch + .nv-switch,
  .ntf-row > .nv-switch + .nv-switch + .nv-switch {
    margin-left: 44px;
  }
}

@media (max-width: 800px) {
  .ntf-content {
    padding-right: var(--dash-page-x, 20px);
  }
}
