/* Modal genérico de alerta/confirmação — substitui alert() e confirm() nativos
   do browser em todas as páginas. Injetado no DOM por shared/modal.js. */

.app-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: appModalFadeIn 0.2s forwards;
    padding: 20px;
    box-sizing: border-box;
}

.app-modal-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: translateY(-15px);
    animation: appModalSlideDown 0.25s ease-out forwards;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-modal-icon { font-size: 40px; margin-bottom: 10px; }
.app-modal-title { font-size: 18px; font-weight: bold; color: #1f2937; margin-bottom: 10px; }
.app-modal-msg { font-size: 14px; color: #4b5563; line-height: 1.5; margin-bottom: 25px; white-space: pre-line; }

.app-modal-actions { display: flex; gap: 10px; }
.app-modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
#appModalBtnCancel { background: #e5e7eb; color: #374151; }
#appModalBtnCancel:hover { background: #d1d5db; }

/* Variantes da cor do botão principal, consoante o tipo de ação. */
#appModalBtnOk { background: #2563eb; color: white; }
#appModalBtnOk:hover { background: #1d4ed8; }
#appModalBtnOk.variant-danger { background: #dc2626; }
#appModalBtnOk.variant-danger:hover { background: #b91c1c; }
#appModalBtnOk.variant-warning { background: #f59e0b; }
#appModalBtnOk.variant-warning:hover { background: #d97706; }
#appModalBtnOk.variant-success { background: #10b981; }
#appModalBtnOk.variant-success:hover { background: #059669; }

@keyframes appModalFadeIn { to { opacity: 1; } }
@keyframes appModalSlideDown { to { transform: translateY(0); } }
