/* Messenger-style notification panel (matches sf-msg-dock layout) */

.sf-notif-dock {
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sf-notif-dock > * {
  pointer-events: auto;
}

.sf-notif-dock__backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: auto;
  z-index: 1050;
}

.sf-notif-dock__backdrop[hidden],
.sf-notif-dock__panel[hidden] {
  display: none !important;
  pointer-events: none;
}

.sf-notif-dock__panel {
  position: fixed;
  top: calc(var(--navbar-height, 3.25rem) + 0.35rem);
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  width: 22.5rem;
  max-height: min(32rem, calc(100vh - var(--navbar-height, 3.25rem) - 1.5rem));
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1051;
}

.sf-notif-dock__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e4e6eb;
  flex-shrink: 0;
}

.sf-notif-dock__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #050505;
}

.sf-notif-dock__subtitle {
  font-size: 0.8125rem;
  color: #65676b;
  margin-top: 0.15rem;
}

.sf-notif-dock__header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sf-notif-dock__icon-btn {
  border: none;
  background: #f0f2f5;
  color: #050505;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.sf-notif-dock__body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.sf-notif-dock__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.sf-notif-dock__item {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease;
  border: none;
  width: 100%;
  text-align: left;
  background: none;
}

.sf-notif-dock__item:hover {
  background: #f0f2f5;
}

.sf-notif-dock__item.is-unread {
  background: #f0f7ff;
}

.sf-notif-dock__item.is-unread:hover {
  background: #e7f3ff;
}

.sf-notif-dock__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-primary, #0b57d0);
  flex-shrink: 0;
  margin-top: 0.45rem;
  opacity: 0;
}

.sf-notif-dock__item.is-unread .sf-notif-dock__dot {
  opacity: 1;
}

.sf-notif-dock__content {
  flex: 1;
  min-width: 0;
}

.sf-notif-dock__item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.sf-notif-dock__type {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #65676b;
}

.sf-notif-dock__time {
  font-size: 0.75rem;
  color: #65676b;
  white-space: nowrap;
}

.sf-notif-dock__item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: #050505;
  line-height: 1.35;
}

.sf-notif-dock__item.is-unread .sf-notif-dock__item-title {
  font-weight: 700;
}

.sf-notif-dock__item-message {
  font-size: 0.8125rem;
  color: #65676b;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-notif-dock__empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: #65676b;
}

.sf-notif-dock__empty-icon {
  color: #bcc0c4;
  margin-bottom: 0.75rem;
}

.sf-notif-dock__footer {
  border-top: 1px solid #e4e6eb;
  padding: 0.65rem 1rem;
  text-align: center;
  flex-shrink: 0;
}

.sf-notif-dock__footer-link {
  color: var(--color-primary, #0b57d0);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.sf-notif-dock__footer-link:hover {
  text-decoration: underline;
}

.sf-nav-icon-btn.is-panel-open {
  background: #e7f3ff;
  color: var(--color-primary, #0b57d0);
}

@media (max-width: 575.98px) {
  .sf-notif-dock__panel {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
  }
}
