/* ================================================================
   14-notifikasi.css
   Notifikasi/Reminder proaktif (lonceng + panel) di topbar. Mengikuti
   pola visual .utility-btn dan .user-menu-dropdown yang sudah ada di css/02.
   ================================================================ */

/* ==================== NOTIFIKASI ==================== */
.notif-wrap { position: relative; flex-shrink: 0; }

.notif-badge {
  position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px;
  padding: 0 3px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface2);
}

.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-width: calc(100vw - 32px);
  background: var(--dd-surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 32px var(--shadow-color);
  padding: 0; z-index: 300; max-height: 440px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.notif-wrap.open .notif-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.notif-panel-header strong { font-size: 13.5px; color: var(--text); }
.notif-mark-all {
  background: transparent; border: none; color: var(--info); font-size: 11.5px;
  font-weight: 600; cursor: pointer; font-family: inherit; padding: 2px;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-panel-list { overflow-y: auto; padding: 6px; }

.notif-item {
  display: flex; gap: 10px; padding: 10px 8px; border-radius: 10px; cursor: pointer;
  transition: background .15s ease; align-items: flex-start;
}
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: var(--alert-info-bg); }
.notif-item.unread:hover { background: var(--alert-info-bg); filter: brightness(.97); }
.notif-item-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.notif-item-body { min-width: 0; flex: 1; }
.notif-item-title { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.notif-item-desc { font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.notif-item-meta { font-size: 10.5px; color: var(--muted); margin-top: 4px; opacity: .8; }
.notif-item.sev-urgent .notif-item-title { color: var(--danger); }
.notif-item.sev-warn .notif-item-title { color: var(--warn); }
.notif-item-dismiss {
  flex-shrink: 0; background: transparent; border: none; color: var(--muted);
  cursor: pointer; font-size: 13px; padding: 2px 4px; border-radius: 6px; line-height: 1;
}
.notif-item-dismiss:hover { background: var(--border); color: var(--text); }

.notif-panel-empty { padding: 28px 14px; text-align: center; color: var(--muted); font-size: 12.5px; }
.notif-panel-footer {
  padding: 9px 14px; border-top: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.notif-panel-footer label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }

@media (max-width: 480px) {
  .notif-panel { width: calc(100vw - 24px); right: -60px; }
}
