/* Modais de /eventos (usam <dialog>, por isso têm Esc, foco e backdrop de origem) */
.ev-modal {
    --m-azul: #0c7b8d;
    --m-perigo: #d9534f;
    --m-ok: #1f9d55;
    padding: 0;
    border: 0;
    border-radius: 22px;
    width: min(92vw, 420px);
    color: #222;
    background: #fff;
    box-shadow: 0 25px 60px rgba(0, 20, 60, .35);
    font-family: Inter, system-ui, -apple-system, sans-serif;
}
.ev-modal::backdrop { background: rgba(0, 12, 50, .55); backdrop-filter: blur(3px); }
.ev-modal[open] { animation: ev-modal-entrada .22s ease; }
.ev-modal[open]::backdrop { animation: ev-modal-fundo .22s ease; }

@keyframes ev-modal-entrada { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ev-modal-fundo { from { opacity: 0; } to { opacity: 1; } }

.ev-modal__caixa { padding: 28px 26px 24px; text-align: center; }
.ev-modal__icone {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 28px;
}
.ev-modal--sucesso .ev-modal__icone { background: #e6f7ee; color: var(--m-ok); }
.ev-modal--erro .ev-modal__icone,
.ev-modal--confirmar .ev-modal__icone { background: #fdeaea; color: var(--m-perigo); }

.ev-modal h3 { margin: 0 0 8px; font-size: 20px; }
.ev-modal p { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: #555; overflow-wrap: anywhere; }

.ev-modal__acoes { display: flex; justify-content: center; gap: 10px; margin: 0; }
.ev-modal__btn {
    flex: 1;
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    background: var(--m-azul);
    transition: transform .15s ease, filter .2s ease;
}
.ev-modal__btn:hover { transform: translateY(-1px); filter: brightness(.93); }
.ev-modal__btn--sec { background: #eef3f4; color: #333; }
.ev-modal__btn--perigo { background: var(--m-perigo); }
.ev-modal__btn:focus-visible { outline: 3px solid rgba(12, 123, 141, .35); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .ev-modal[open], .ev-modal[open]::backdrop { animation: none; }
}
