/* Notification Center Phase N1 — bell, panel, full page */

.nc-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nc-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--text, #1a1f2c);
  cursor: pointer;
}

.nc-bell:hover,
.nc-bell:focus-visible {
  border-color: var(--accent, #5b4bdb);
  outline: none;
}

.nc-bell__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.nc-bell__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.nc-bell__badge[hidden] {
  display: none !important;
}

.nc-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border, #d8dde6);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26, 31, 44, 0.12);
  z-index: 40;
  overflow: hidden;
}

.nc-panel[hidden] {
  display: none !important;
}

.nc-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e6e9ef);
}

.nc-panel__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.nc-panel__mark-all {
  border: 0;
  background: transparent;
  color: var(--accent, #5b4bdb);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.nc-panel__body {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.nc-panel__footer {
  border-top: 1px solid var(--border, #e6e9ef);
  padding: 10px 14px;
  text-align: center;
}

.nc-panel__footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #5b4bdb);
  text-decoration: none;
}

.nc-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted, #6b7280);
  font-size: 13px;
}

.nc-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.nc-item:hover,
.nc-item:focus-visible {
  background: #f5f6fa;
  outline: none;
}

.nc-item--unread {
  background: #f8f5ff;
}

.nc-item--action {
  box-shadow: inset 3px 0 0 #c2410c;
}

.nc-item__dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #9aa3b5;
}

.nc-item--unread .nc-item__dot {
  background: #5b4bdb;
}

.nc-item--action .nc-item__dot {
  background: #c2410c;
}

.nc-item__title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
}

.nc-item__message {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  line-height: 1.4;
}

.nc-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #8b93a7;
}

.nc-item__action {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border, #d8dde6);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #5b4bdb);
  text-decoration: none;
}

.nc-item__resolved {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

/* Full page */
.nc-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.nc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.nc-filter {
  border: 1px solid var(--border, #d8dde6);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nc-filter.is-active {
  border-color: #5b4bdb;
  color: #5b4bdb;
  background: #f3f0ff;
}

.nc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nc-card {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border, #e6e9ef);
  border-radius: 12px;
  background: #fff;
}

.nc-card--unread {
  background: #fbfaff;
}

.nc-card--action {
  border-color: #fdba74;
}

@media (max-width: 640px) {
  .nc-panel {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .nc-card {
    grid-template-columns: 28px 1fr;
  }

  .nc-card__aside {
    grid-column: 2;
  }
}
