/* Notificări — butonul din sidebar (deasupra comutatorului de temă) și pop-up-ul lui.
   Vezi js/notificari/notificari.js. */

/* Butonul — aceeași paletă proprie a sidebar-ului ca .theme-toggle-btn (css/sidebar.css), ca
   cele două casete să arate ca o pereche. */
.notif-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  background: var(--sidebar-bg-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.notif-btn:hover { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); }
/* Notificări necitite: fundalul pâlpâie până deschizi pop-up-ul (vezi renderNotifBadge()). */
.notif-btn.has-unread {
  border-color: var(--red);
  color: #fff;
  animation: notif-pulse 1.1s ease-in-out infinite;
}
.notif-btn.has-unread:hover { animation-play-state: paused; background: var(--red); color: #fff; }
@keyframes notif-pulse {
  0%, 100% { background: var(--sidebar-bg-2); box-shadow: 0 0 0 0 rgba(220,38,38,0); }
  50% { background: var(--red); box-shadow: 0 0 0 4px rgba(220,38,38,.3); }
}
.notif-btn.has-unread .notif-badge { background: #fff; color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .notif-btn.has-unread { animation: none; background: var(--red); }
}
.notif-btn-label { display: flex; align-items: center; gap: 8px; }

.notif-badge {
  flex-shrink: 0;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.notif-badge.hidden { display: none; }

/* Pe bara orizontală de mobil rămâne doar clopoțelul (+ bulina), lângă email și switch-ul de temă. */
@media (max-width: 760px) {
  .notif-btn {
    width: auto;
    margin: 0;
    padding: 4px 6px;
    gap: 4px;
    flex-shrink: 0;
  }
  .notif-btn-text { display: none; }
}

/* Lista din pop-up */
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.notif-item:hover { background: var(--hover-bg); border-color: var(--accent); }
/* Noi (necitite la deschiderea pop-up-ului) — fundal colorat; cele vechi rămân pe fundalul obișnuit. */
.notif-item.unread { border-color: var(--accent); background: var(--blue-bg); }
.notif-item.unread:hover { background: var(--blue-bg); filter: brightness(.97); }
.notif-icon { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; }
.notif-item:not(.unread) .notif-title { font-weight: 500; }
.notif-detail, .notif-msg { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.notif-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
}
