/* Notification center / inbox. */
.kb-notifications-page {
  display: grid;
  gap: 24px;
}

.kb-notifications-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid #e7edf6;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 18px 32px -28px rgba(15, 23, 42, 0.24);
}

.kb-notifications-hero-copy {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.kb-notifications-hero-copy p {
  color: var(--kb-text-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.kb-notifications-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.kb-notifications-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kb-notifications-stat {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #e7edf6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 32px -30px rgba(15, 23, 42, 0.24);
}

.kb-notifications-stat-label {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-notifications-stat strong {
  color: var(--kb-text);
  font-size: 26px;
  line-height: 1;
}

.kb-notifications-stat span:last-child {
  color: var(--kb-text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.kb-notifications-card {
  border: 1px solid #e7edf6;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 32px -28px rgba(15, 23, 42, 0.24);
}

.kb-notifications-toolbar {
  align-items: flex-end;
  gap: 20px;
}

.kb-notifications-note {
  margin-top: 4px;
  color: var(--kb-text-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.kb-notifications-controls {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.kb-notifications-controls .kb-input {
  min-height: 42px;
}

.kb-notifications-list {
  display: grid;
  gap: 16px;
}

.kb-notification-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 18px 18px 20px;
  border: 1px solid #d6e2f2;
  border-left: 5px solid #bfdbfe;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.05),
    0 18px 34px -32px rgba(15, 23, 42, 0.32);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.kb-notification-item:hover,
.kb-notification-item:focus-visible {
  border-color: rgba(37, 99, 235, 0.32);
  border-left-color: var(--kb-blue);
  box-shadow: 0 20px 34px -28px rgba(37, 99, 235, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.kb-notification-item[data-unread='true'] {
  border-left-color: var(--kb-blue);
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
}

.kb-notification-item + .kb-notification-item {
  margin-top: 2px;
}

.kb-notification-unread-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--kb-blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.kb-notification-unread-dot[hidden] {
  display: none;
}

.kb-notification-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.kb-notification-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kb-notification-category {
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-notification-time {
  color: var(--kb-text-muted);
  font-size: 12px;
}

.kb-notification-title {
  color: var(--kb-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.kb-notification-summary {
  color: var(--kb-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.kb-notification-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 700;
}

.kb-notification-route svg {
  width: 14px;
  height: 14px;
}

.kb-notification-status {
  align-self: start;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .kb-notifications-hero {
    display: grid;
  }

  .kb-notifications-hero-actions {
    justify-content: flex-start;
  }

  .kb-notifications-stats {
    grid-template-columns: 1fr;
  }

  .kb-notifications-toolbar {
    display: grid;
  }

  .kb-notifications-controls {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .kb-notification-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .kb-notification-status {
    grid-column: 2;
  }
}
