/* notif-panel.css — Painel de notificações da SOMA */

/* ── Painel ── */
.np {
  position: fixed;
  top: var(--pl-header-h, 64px);
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: #0d1f35;
  border-left: 1px solid rgba(127,231,235,.14);
  box-shadow: -8px 0 32px rgba(5,11,23,.55);
  display: flex;
  flex-direction: column;
  z-index: 45;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.np.is-open { transform: translateX(0); }

/* ── Header do painel ── */
.np-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(127,231,235,.10);
  flex-shrink: 0;
}
.np-head h2 { font-size: 15px; font-weight: 600; color: #F5F9FC; margin: 0; }
.np-head-actions { display: flex; gap: 8px; }
.np-btn-text {
  font: 500 11.5px 'Inter', sans-serif; color: rgba(245,249,252,.60);
  background: transparent; border: 0; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: color .15s, background .15s;
}
.np-btn-text:hover { color: #7FE7EB; background: rgba(127,231,235,.08); }
.np-close {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(127,231,235,.14);
  border-radius: 8px; cursor: pointer; color: rgba(245,249,252,.70);
  transition: all .15s;
}
.np-close:hover { background: rgba(127,231,235,.12); color: #7FE7EB; }

/* ── Filtros de categoria ── */
.np-filters {
  display: flex; gap: 6px; padding: 10px 20px;
  border-bottom: 1px solid rgba(127,231,235,.08);
  flex-shrink: 0; flex-wrap: nowrap;
  overflow-x: hidden;
}
.np-filter { flex-shrink: 0; }
.np-filter {
  font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .10em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(127,231,235,.16); background: transparent;
  color: rgba(245,249,252,.55); cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.np-filter:hover { border-color: #02B8BF; color: #7FE7EB; }
.np-filter.is-active {
  background: rgba(2,184,191,.15); border-color: #02B8BF; color: #7FE7EB;
}

/* ── Lista de notificações ── */
.np-list { flex: 1; overflow-y: auto; padding: 0 0 16px; }
.np-list::-webkit-scrollbar { width: 4px; }
.np-list::-webkit-scrollbar-thumb { background: rgba(127,231,235,.18); border-radius: 2px; }

.np-group-label {
  font: 500 10px 'JetBrains Mono', monospace; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(245,249,252,.34);
  padding: 14px 20px 8px; display: block;
}

.np-item {
  display: flex; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid rgba(127,231,235,.06);
  cursor: pointer; transition: background .15s; position: relative;
}
.np-item:hover { background: rgba(255,255,255,.03); }
.np-item.is-unread { background: rgba(2,184,191,.05); }
.np-item.is-unread::before {
  content: ''; position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%); width: 6px; height: 6px;
  border-radius: 50%; background: #02B8BF;
}

.np-item-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
}
.np-item-icon.urgent   { background: rgba(239,68,68,.15);  color: #EF4444; }
.np-item-icon.clinical { background: rgba(2,184,191,.15);  color: #02B8BF; }
.np-item-icon.billing  { background: rgba(245,158,11,.15); color: #F59E0B; }
.np-item-icon.system   { background: rgba(99,102,241,.15); color: #818CF8; }
.np-item-icon.success  { background: rgba(16,185,129,.15); color: #10B981; }

.np-item-body { flex: 1; min-width: 0; }
.np-item-title { font-size: 13px; font-weight: 600; color: #F5F9FC; line-height: 1.3; }
.np-item-desc  { font-size: 12px; color: rgba(245,249,252,.60); margin-top: 2px; line-height: 1.4; }
.np-item-time  { font: 500 10.5px 'JetBrains Mono', monospace; color: rgba(245,249,252,.35); margin-top: 6px; }
.np-item-actions { display: flex; gap: 6px; margin-top: 8px; }
.np-item-btn {
  font: 500 11px 'Inter', sans-serif; padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(127,231,235,.20); background: transparent;
  color: rgba(245,249,252,.70); cursor: pointer; transition: all .15s;
}
.np-item-btn:hover { background: rgba(2,184,191,.12); border-color: #02B8BF; color: #7FE7EB; }
.np-item-btn.primary { background: rgba(2,184,191,.18); border-color: #02B8BF; color: #7FE7EB; }

/* ── Estado vazio ── */
.np-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 24px; text-align: center; gap: 12px;
}
.np-empty svg { opacity: .3; }
.np-empty p { color: rgba(245,249,252,.45); font-size: 13.5px; margin: 0; }

/* ── Backdrop ── */
.np-backdrop {
  position: fixed; inset: 0; z-index: 44;
  background: rgba(5,11,23,.40);
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.np-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ── Responsivo ── */
@media (max-width: 480px) { .np { width: 100vw; } }
