/* Notificações em pop-up pequeno, perto do sino, no jeito do ChatGPT (pedido do Josué, 2026-12-05).
   No computador (a partir de 1025 px) o #notifications-modal de sempre (mesma lista, mesmos botões,
   mesmo abre e fecha do header.php) deixa de ser uma janela no centro com o fundo escurecido e vira
   um cartão ao lado do sino: sem fundo escuro, sem desfoque. O lugar vem de --np-left / --np-top,
   postos por shell/sidebar-peek.js na hora do clique (sino do painel ou sino da barra do topo); sem
   eles o cartão fica no canto de cima, à direita. O fundo some e não segura cliques: quem fecha ao
   clicar fora é o shell/sidebar-peek.js, e o clique segue para onde foi. No celular nada muda. */
/* "Nenhuma notificação" aparecia junto com a lista: o display:flex do styles.css vinha depois do
   .hidden do Tailwind e ganhava. Vale para computador e celular. */
#notifications-modal .notifications-empty.hidden { display: none; }
@media (min-width: 1025px) {
  #notifications-modal:not(.hidden) { display: block; animation: none; }
  #notifications-modal:not(.hidden) { pointer-events: none; }
  #notifications-modal .notifications-modal-overlay { display: none; }
  #notifications-modal .notifications-modal-content { pointer-events: auto; }
  #notifications-modal .notifications-modal-content {
    position: fixed; left: var(--np-left, auto); right: var(--np-right, 16px); top: var(--np-top, 64px);
    width: 384px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100vh - var(--np-top, 64px) - 8px));
    border: 0; border-radius: 16px; background: var(--ui-surface, #fff); color: var(--ui-text-primary, #111112);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 8px 28px rgba(0, 0, 0, .12);
    animation: kl-np-in .12s cubic-bezier(.16, 1, .3, 1);
  }
  html.dark #notifications-modal .notifications-modal-content { background: var(--ui-surface, #1f1f20); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 28px rgba(0, 0, 0, .5); }
  @keyframes kl-np-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

  #notifications-modal .notifications-modal-header { padding: 10px 10px 10px 16px; background: transparent; border-bottom: 1px solid var(--ui-border, rgba(0, 0, 0, .1)); }
  #notifications-modal .notifications-modal-title { gap: 8px; }
  #notifications-modal .notifications-modal-title > div { display: flex; align-items: baseline; gap: 8px; }
  #notifications-modal .notifications-title-icon { display: none; }
  #notifications-modal .notifications-modal-title h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ui-text-primary, #111112); }
  #notifications-modal .notifications-count-text { margin: 0; font-size: 12px; font-weight: 400; color: var(--ui-text-muted, #7c7f84); }
  #notifications-modal .notifications-modal-close { width: 32px; height: 32px; border-radius: 9px; color: var(--ui-text-secondary, #5e6166); }
  #notifications-modal .notifications-modal-close:hover { background: var(--ui-surface-hover, #ededed); color: var(--ui-text-primary, #111112); }
  #notifications-modal .notifications-modal-close :is(i, svg) { width: 18px; height: 18px; }

  #notifications-modal .notifications-list { flex: 1 1 auto; min-height: 0; max-height: none; padding: 6px; }
  #notifications-modal .notifications-empty { padding: 40px 28px 44px; gap: 10px; }
  #notifications-modal .notifications-empty-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 8px; background: var(--ui-surface-subtle, #f3f4f5); }
  #notifications-modal .notifications-empty-icon :is(i, svg) { width: 22px; height: 22px; opacity: 1; color: var(--ui-text-primary, #111112); }
  #notifications-modal .notifications-empty h3 { font-size: 16px; font-weight: 600; color: var(--ui-text-primary, #111112); }
  #notifications-modal .notifications-empty p { font-size: 13px; line-height: 1.45; color: var(--ui-text-muted, #7c7f84); max-width: 300px; }

  /* Pé numa linha só, com botões de texto neutros (sem o contorno vermelho). */
  #notifications-modal .notifications-modal-footer { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 6px; background: transparent; border-top: 1px solid var(--ui-border, rgba(0, 0, 0, .1)); }
  #notifications-modal .notifications-dismiss-all,
  #notifications-modal .notifications-view-all { width: auto; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 500; gap: 6px; }
  #notifications-modal .notifications-dismiss-all { color: var(--ui-text-secondary, #5e6166); }
  #notifications-modal .notifications-view-all { color: var(--ui-text-primary, #111112); }
  #notifications-modal .notifications-dismiss-all:hover,
  #notifications-modal .notifications-view-all:hover { background: var(--ui-surface-hover, #ededed); color: var(--ui-text-primary, #111112); gap: 6px; }
  #notifications-modal .notifications-dismiss-all :is(i, svg),
  #notifications-modal .notifications-view-all :is(i, svg) { width: 15px; height: 15px; transform: none; }
}
