﻿/* ===== AppAlert (Modal/Alert moderno) ===== */
.appalert-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
    backdrop-filter: blur(6px);
}

.appalert-modal {
    width: min(520px, 100%);
    background: rgba(255,255,255,.92);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.35);
    overflow: hidden;
    transform: translateY(6px);
    animation: appalert-in .14s ease-out forwards;
}

@keyframes appalert-in {
    to {
        transform: translateY(0);
    }
}

.appalert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.appalert-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
}

.appalert-icon {
    font-size: 1.2rem;
}

.appalert-x {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: .7;
}

    .appalert-x:hover {
        opacity: 1;
    }

.appalert-body {
    padding: 14px 16px 6px 16px;
    font-size: .98rem;
    line-height: 1.35rem;
    color: rgba(0,0,0,.8);
    white-space: pre-wrap;
}

.appalert-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px 16px 16px;
}

.appalert-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.appalert-btn-primary {
    background: #0b5ed7;
    color: #fff;
}

    .appalert-btn-primary:hover {
        filter: brightness(.95);
    }

.appalert-btn-secondary {
    background: rgba(0,0,0,.08);
}

    .appalert-btn-secondary:hover {
        background: rgba(0,0,0,.12);
    }

/* Colores por tipo (barra sutil arriba) */
.appalert-info {
    border-top: 4px solid #0b5ed7;
}

.appalert-success {
    border-top: 4px solid #198754;
}

.appalert-error {
    border-top: 4px solid #dc3545;
}

.appalert-warning {
    border-top: 4px solid #ffc107;
}
