/* Alerta (substitui o antigo MoniAlert) */
.alerta-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(26, 40, 96, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: alertaFundo 0.16s ease;
}
.alerta-overlay.saindo { opacity: 0; transition: opacity 0.14s ease; }
.alerta-caixa {
  position: relative; width: 100%; max-width: 410px; max-height: 86vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 28px 22px; text-align: center;
  background: #fff; border-radius: 20px;
  box-shadow: 0 28px 70px rgba(26, 40, 96, 0.35);
  font-family: 'Nunito', -apple-system, 'Segoe UI', sans-serif;
  animation: alertaEntra 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.alerta-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: #8a99b8; font-size: 0.85rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.alerta-x:hover { background: #f3f7ff; color: #1a2860; }
.alerta-icone {
  width: 64px; height: 64px; margin-bottom: 14px; display: grid; place-items: center;
  border-radius: 50%; font-size: 1.6rem;
}
.alerta-icone.ok    { background: #e3edff; color: #0048a0; }
.alerta-icone.erro  { background: #fde4e4; color: #c0392b; }
.alerta-icone.aviso { background: #fdefc9; color: #c07a08; }
.alerta-icone.info  { background: #e3f1fb; color: #2a79ad; }
.alerta-titulo { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; color: #1a2860; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.alerta-corpo { width: 100%; overflow-y: auto; max-height: calc(86vh - 230px); }
.alerta-msg { margin: 0 0 4px; font-size: 0.94rem; line-height: 1.5; color: #44557a; white-space: pre-wrap; overflow-wrap: anywhere; }
.alerta-rodape { width: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.alerta-btn {
  min-width: 112px; padding: 0.62rem 1.3rem; border-radius: 11px; border: 1px solid transparent;
  font-family: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.alerta-btn:active { transform: translateY(1px); }
.alerta-btn:focus-visible { outline: 3px solid rgba(56, 120, 192, 0.4); outline-offset: 2px; }
.alerta-btn.confirmar { background: #0048a0; color: #fff; }
.alerta-btn.confirmar:hover { background: #203078; box-shadow: 0 8px 18px rgba(0, 72, 160, 0.25); }
.alerta-btn.confirmar.perigo { background: #c0392b; }
.alerta-btn.confirmar.perigo:hover { background: #a52a1d; box-shadow: 0 8px 18px rgba(192, 57, 43, 0.28); }
.alerta-btn.cancelar { background: #fff; color: #44557a; border-color: #e6ecf7; }
.alerta-btn.cancelar:hover { background: #f3f7ff; border-color: #cddcf6; }
@keyframes alertaFundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes alertaEntra { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .alerta-caixa { padding: 26px 20px 18px; } .alerta-btn { flex: 1 1 100%; } }
