/* ── Botão sino no header ─────────────────────────────────────── */
.notif-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.notif-btn:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red, #ef4444);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* ── Backdrop ─────────────────────────────────────────────────── */
.notif-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1099;
}
.notif-panel.open ~ .notif-backdrop {
  display: block;
}

/* ── Painel ───────────────────────────────────────────────────── */
.notif-panel {
  position: fixed;
  top: 56px;
  right: 12px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 72px));
  background: var(--surface-1, #12121e);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.notif-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Cabeçalho do painel ─────────────────────────────────────── */
.notif-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  flex-shrink: 0;
}
.notif-header-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  flex: 1;
}
.notif-read-all {
  font-size: 11px;
  color: var(--blue, #3b82f6);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.notif-read-all:hover { background: rgba(59,130,246,.12); }
.notif-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s;
}
.notif-close:hover { background: var(--surface-2); }

/* ── Lista de itens ───────────────────────────────────────────── */
.notif-list {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}
.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Item ─────────────────────────────────────────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.notif-item:hover { background: var(--surface-2, rgba(255,255,255,.04)); }
.notif-item.unread { background: rgba(59,130,246,.06); }
.notif-item.unread:hover { background: rgba(59,130,246,.1); }

.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-content { flex: 1; min-width: 0; }
.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-body {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time {
  font-size: 11px;
  color: var(--text-tertiary, var(--text-secondary));
  margin-top: 4px;
  opacity: .7;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue, #3b82f6);
  flex-shrink: 0;
  margin-top: 5px;
}
