/* Diálogo de confirmación moderno, reemplaza al confirm() nativo del
   navegador en todo el proyecto (ver web/js/confirm-dialog.js). */

.app-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-confirm-overlay.is-open {
    display: flex;
}

.app-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.app-confirm-card {
    position: relative;
    width: min(100%, 400px);
    padding: 28px 26px 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 60px rgba(14, 31, 62, .28);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: app-confirm-pop .18s ease;
}

@keyframes app-confirm-pop {
    from { transform: scale(.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.app-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #2375ed;
}

.app-confirm-card[data-variant="danger"] .app-confirm-icon { background: #fdeaec; color: #df3049; }
.app-confirm-card[data-variant="success"] .app-confirm-icon { background: #e6f7ef; color: #159765; }

.app-confirm-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-confirm-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #17243f;
}

.app-confirm-message {
    margin: 0 0 22px;
    font-size: .86rem;
    line-height: 1.5;
    color: #52627b;
    white-space: pre-line;
}

.app-confirm-actions {
    display: flex;
    gap: 10px;
}

.app-confirm-btn {
    flex: 1;
    min-height: 42px;
    border-radius: 10px;
    border: 0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.app-confirm-btn:hover { opacity: .9; }
.app-confirm-btn:active { transform: scale(.97); }
.app-confirm-btn:focus-visible { outline: 2px solid #2375ed; outline-offset: 2px; }

.app-confirm-btn--cancel { background: #eef1f6; color: #52627b; }
.app-confirm-btn--default { background: #2375ed; color: #fff; }
.app-confirm-btn--danger { background: #df3049; color: #fff; }
.app-confirm-btn--success { background: #159765; color: #fff; }

@media (max-width: 480px) {
    .app-confirm-card { padding: 24px 20px 20px; }
}
