/* ============================================================
   goud999safe — pagina-CSS: Meldingen
   Afgesplitst uit de oude pagina-CSS (fase 2). Alleen deze pagina('s).
   ============================================================ */

/* ============================================================
   MELDINGEN (notificaties.html) — nf-  · clean, iOS-stijl
   ============================================================ */
.nf-wrap { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Meldingen — zwevende popup die vanuit de bel-knop (rechtsboven) naar beneden uitschuift */
.nf-overlay { position: fixed; inset: 0; z-index: 200; }
.nf-overlay-backdrop { position: absolute; inset: 0; background: rgba(15,24,34,0.18); animation: nf-fade-in 0.2s ease; }
/* Pijltje dat naar het bel-icoon in de topbar wijst */
.nf-overlay::before {
  content: ""; position: absolute; z-index: 2;
  top: 53px; right: 166px;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 10px solid #fff;
  filter: drop-shadow(0 -2px 2px rgba(7,42,32,0.08));
  animation: nf-pop-in 0.24s cubic-bezier(0.4,0,0.2,1);
}
.nf-panel {
  position: absolute;
  top: 62px; right: 18px;
  z-index: 1;
  display: flex; flex-direction: column;
  width: 410px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 82px);
  background: #fff;                 /* effen wit, geen transparantie */
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
  transform-origin: top right;
  animation: nf-pop-in 0.24s cubic-bezier(0.4,0,0.2,1);
}
.nf-panel-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--grey-line); background: #fff; }
.nf-panel-title { font-size: var(--fs-18); font-weight: 700; color: var(--forest); line-height: 1.2; }
.nf-panel-count { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; margin-left: 8px; border-radius: 50%; background: var(--status-error); color: #fff; font-size: var(--fs-10); font-weight: 700; line-height: 1; vertical-align: middle; }
.nf-panel-close { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background var(--t-fast); }
.nf-panel-close:hover { background: var(--grey-soft); }
.nf-panel-close svg { width: 18px; height: 18px; }
.nf-panel-body { flex: 1; overflow-y: auto; padding: 8px 0 18px; }
.nf-panel .nf-wrap { max-width: none; margin: 0; }
/* Fade-out onderaan: de lijst vervaagt naar wit (suggereert meer inhoud) */
.nf-panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 54px; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
  border-radius: 0 0 18px 18px;
}
@keyframes nf-pop-in { from { opacity: 0; transform: translateY(-12px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes nf-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Kleine "alles markeren"-tekstlink bovenaan */
.nf-markall-row { display: flex; justify-content: flex-end; padding: 2px 20px 8px; }
.nf-markall { background: none; border: none; cursor: pointer; font-family: inherit; font-size: var(--fs-13); font-weight: 600; color: var(--forest); padding: 0; transition: color var(--t-fast); }
.nf-markall:hover { color: var(--forest-deep); text-decoration: underline; }

/* Lijst — vlakke rijen met fijne scheidingslijn */
.nf-list { list-style: none; margin: 0 0 6px; padding: 0; }
.nf-item { position: relative; border-bottom: 1px solid var(--grey-line); }
.nf-item:last-child { border-bottom: none; }

.nf-link {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 20px; text-decoration: none; color: inherit;
  transition: background var(--t-fast);
}
@media (hover: hover) { .nf-item:hover .nf-link { background: rgba(22,46,37,0.035); } }

/* Avatar/categorie-icoon (groter, rond) */
.nf-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nf-icon svg { width: 22px; height: 22px; }
.nf-icon--ok    { background: var(--status-ok-bg);  color: var(--status-ok); }
.nf-icon--error { background: #fae8ea;               color: var(--status-error); }
.nf-icon--info  { background: var(--forest-tint);    color: var(--forest); }
.nf-icon--gold  { background: var(--gold-light);     color: #9a7b3f; }

/* Tekst */
.nf-body { flex: 1; min-width: 0; }
.nf-title-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 3px;
}
.nf-item--unread .nf-title-row { padding-right: 18px; }
.nf-title { font-size: var(--fs-15); font-weight: 700; color: var(--ink); line-height: 1.3; }
.nf-time { flex-shrink: 0; font-size: var(--fs-12); color: var(--text-muted); white-space: nowrap; }
.nf-text { font-size: var(--fs-13); color: var(--text-soft); line-height: 1.55; }
.nf-text b { color: var(--ink); font-weight: 700; }

/* Inline actie-link binnen melding */
.nf-action {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 8px; font-size: var(--fs-13); font-weight: 400; color: var(--forest);
}
.nf-action svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.nf-item:hover .nf-action svg { transform: translateX(3px); }

/* Ongelezen-stip rechtsboven (groen, zoals referentie) */
.nf-unread {
  position: absolute; top: 22px; right: 20px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--status-ok);
}

@media (max-width: 768px) {
  .nf-wrap { max-width: none; margin-left: 0; margin-right: 0; }
  /* Popup bijna volledige breedte, net onder de mobiele header-bel */
  .nf-panel { top: 60px; right: 10px; left: 10px; width: auto; max-width: none; max-height: calc(100vh - 76px); }
  .nf-overlay::before { top: 51px; right: 76px; }
  .nf-link { padding: 14px 16px; gap: 13px; }
  .nf-icon { width: 42px; height: 42px; }
  .nf-icon svg { width: 20px; height: 20px; }
  .nf-title-row { flex-direction: column; gap: 2px; }
  .nf-time { order: 2; }
  .nf-unread { top: 16px; right: 16px; }
}
