@layer lf-components {
.notification-menu {
  position: relative;
  z-index: 8200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-bell-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--lf-color-on-primary);
  border-radius: var(--lf-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lf-color-primary), var(--lf-color-secondary));
  color: var(--lf-color-on-primary);
  font-size: var(--lf-font-size-xs);
  font-weight: var(--lf-font-weight-900);
  line-height: 1;
  box-shadow: 0 10px 18px rgba(var(--lf-rgb-primary), 0.22);
}

.notification-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: -10px;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.24);
  border-radius: var(--lf-radius-xl);
  background: rgba(var(--lf-rgb-surface-muted), 0.96);
  box-shadow: 0 24px 60px rgba(var(--lf-rgb-text), 0.14);
  backdrop-filter: blur(18px);
}

.notification-popover[hidden],
.notification-empty[hidden],
.notification-row[hidden],
.notification-clear-button[hidden],
.notification-badge[hidden] {
  display: none;
}

.notification-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: rgba(var(--lf-rgb-surface-muted), 0.96);
  border-left: 1px solid rgba(var(--lf-rgb-muted), 0.22);
  border-top: 1px solid rgba(var(--lf-rgb-muted), 0.22);
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
}

.notification-popover-head span {
  color: var(--lf-color-text, var(--lf-color-text));
  font-size: var(--lf-font-size-md);
  font-weight: var(--lf-font-weight-900);
}

.notification-popover-head small,
.notification-row-copy span,
.notification-row em {
  color: var(--lf-color-muted, var(--lf-color-muted));
  font-size: var(--lf-font-size-xs);
  font-style: normal;
  font-weight: var(--lf-font-weight-800);
}

.notification-list-panel {
  display: grid;
  gap: 8px;
}

.notification-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(var(--lf-rgb-muted), 0.18);
  border-radius: var(--lf-radius-md);
  color: var(--lf-color-text, var(--lf-color-text));
  text-decoration: none;
  background: transparent;
}

.notification-row:hover {
  border-color: rgba(var(--lf-rgb-primary), 0.24);
  background: rgba(239, 246, 255, 0.72);
}

.notification-row.is-due {
  border-color: rgba(var(--lf-rgb-secondary), 0.28);
  background: rgba(var(--lf-rgb-secondary), 0.06);
}

.notification-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--lf-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lf-color-primary);
  background: rgba(var(--lf-rgb-primary), 0.1);
}

.notification-row.is-due .notification-row-icon {
  color: var(--lf-color-secondary);
  background: rgba(var(--lf-rgb-secondary), 0.12);
}

.notification-row-icon svg {
  width: 18px;
  height: 18px;
}

.notification-row-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.notification-row-copy strong,
.notification-row-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-row-copy strong {
  color: var(--lf-color-text, var(--lf-color-text));
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-900);
}

.notification-empty {
  display: grid;
  gap: 5px;
  padding: 18px 12px;
  text-align: center;
  color: var(--lf-color-muted, var(--lf-color-muted));
}

.notification-empty strong {
  color: var(--lf-color-text, var(--lf-color-text));
  font-size: var(--lf-font-size-sm);
}

.notification-empty span {
  font-size: var(--lf-font-size-sm);
  line-height: 1.35;
}

.notification-popover-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.notification-popover-link,
.notification-clear-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--lf-radius-md);
  text-decoration: none;
  font-size: var(--lf-font-size-sm);
  font-weight: var(--lf-font-weight-900);
}

.notification-popover-link {
  color: var(--lf-color-primary);
  background: rgba(var(--lf-rgb-primary), 0.08);
}

.notification-clear-button {
  padding: 0 12px;
  color: var(--lf-color-secondary);
  background: rgba(var(--lf-rgb-secondary), 0.08);
  cursor: pointer;
}

.notification-popover-link:hover {
  color: var(--lf-color-on-primary);
  background: linear-gradient(135deg, var(--lf-color-primary), var(--lf-color-secondary));
}

.notification-clear-button:hover {
  color: var(--lf-color-on-primary);
  background: var(--lf-color-secondary);
}
}
