/* Estilos do módulo notifications (central, preferências, aviso de instalação do app) e da tela de privacidade. */

.nt-page > .card + .card, .nt-page > .card { margin-bottom: 16px; }

/* Aparelho */
.nt-dev-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nt-dev-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--text-2); flex: none; }
.nt-dev-ico svg { width: 22px; height: 22px; }
.nt-dev-ico.ok { background: var(--ok-bg); color: var(--ok); }
.nt-dev-ico.bad { background: var(--bad-bg); color: var(--bad); }
.nt-dev-ico.warn { background: var(--warn-bg); color: var(--warn); }
.nt-dev-txt { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nt-dev-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Lista */
.nt-list-card { padding: 6px; }
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt-list li + li { border-top: 1px solid var(--line); }
.nt-list li.empty { border: 0; }
.nt-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px; border-radius: 10px; color: var(--text); position: relative; }
.nt-item:hover { background: var(--surface-2); text-decoration: none; }
.nt-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nt-item.unread { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.nt-item.unread:hover { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.nt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nt-body b { font-weight: 700; }
.nt-item:not(.unread) .nt-body b { font-weight: 600; color: var(--text-2); }
.nt-text { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.nt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); flex: none; margin-top: 6px; }
.nt-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bg-2); color: var(--text-2); }
.nt-ico svg { width: 19px; height: 19px; }
.nt-ico.k-turn { background: var(--ok-bg); color: var(--ok); }
.nt-ico.k-game { background: var(--info-bg); color: var(--accent); }
.nt-ico.k-tour { background: var(--brand); color: var(--brand-ink); }
.nt-ico.k-task { background: var(--info-bg); color: var(--accent); }
.nt-ico.k-charge { background: var(--warn-bg); color: var(--warn); }
.nt-ico.k-live { background: var(--bad-bg); color: var(--bad); }

/* Preferências (interruptores) */
.nt-prefs { display: flex; flex-direction: column; }
.nt-pref { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; cursor: pointer; font-weight: 500; }
.nt-pref + .nt-pref { border-top: 1px solid var(--line); }
.nt-switch { position: relative; width: 44px; height: 26px; flex: none; }
.nt-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.nt-switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; }
.nt-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.nt-switch input:checked + i { background: var(--ok); }
.nt-switch input:checked + i::after { transform: translateX(18px); }
.nt-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Aviso "Instalar o app" (discreto, só no painel) */
.pwa-install { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 380px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 12px; box-shadow: var(--shadow-lg);
  animation: pwa-in .25s ease-out; }
.pwa-install img { border-radius: 10px; flex: none; }
.pwa-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pwa-txt span { font-size: 13px; color: var(--text-2); }
.pwa-x { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; flex: none; }
.pwa-x:hover { background: var(--surface-2); color: var(--text); }
@keyframes pwa-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .pwa-install { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
}
.pwa-steps { padding-left: 1.3em; line-height: 1.7; }
.pwa-share { display: inline-block; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13px; }

/* Barra "versão nova" */
.pwa-update { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg); border-radius: 12px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: calc(100vw - 24px); }
.pwa-update .pwa-x { color: inherit; opacity: .7; }

/* ───────── Privacidade ───────── */
.pv-doc { max-width: 860px; margin: 0 auto; }
.pv-doc h1 { margin-bottom: 4px; }
.pv-doc h2 { font-size: 20px; margin: 1.6em 0 .5em; }
.pv-doc .pv-toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.pv-doc .pv-toc a { font-size: 13px; }
.pv-doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: .5em 0 1em; }
.pv-doc th, .pv-doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pv-doc th { background: var(--surface-2); font-weight: 700; }
.pv-kid { border-left: 4px solid var(--brand); }
.pv-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pv-row .field { flex: 1 1 180px; }
.pv-students td input { width: 110px; }
@media (max-width: 640px) { .pv-doc table { font-size: 13px; } .pv-doc th, .pv-doc td { padding: 6px; } }
