/* =====================================================
   ENLAÇA — Notificações (sino + painel dropdown)
===================================================== */

.notif-btn-wrap { position: relative; }

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px !important;
}
.nav-icon-btn svg { width: 19px; height: 19px; }
.nav-icon-btn .chat-badge {
  top: 2px;
  right: 2px;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  max-height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 120;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatPanelIn .16s ease;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-panel-header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0;
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
  padding: 4px;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-mark-all:disabled { opacity: .4; cursor: default; text-decoration: none; }

.notif-list { flex: 1; overflow-y: auto; }
.notif-empty { padding: 30px 20px; font-size: 13.5px; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s ease;
  position: relative;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: rgba(255, 184, 77, 0.06); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.notif-item .avatar { flex-shrink: 0; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-text { font-size: 13px; line-height: 1.4; }
.notif-item-text strong { font-weight: 700; }
.notif-item-preview {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-item-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 480px) {
  .notif-panel {
    position: fixed;
    top: 60px;
    right: 8px;
    left: 8px;
    width: auto;
  }
}
