/* alertPopup.css */

/* Overlay backdrop to block interaction */
.alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(243, 244, 246, 0.85); /* matches bg-soft with blur */
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* above everything */
}

/* Modal window */
.alert-modal {
    background-color: #ffffff; /* card-bg */
    border-radius: 16px;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.04),
                0 4px 8px -4px rgba(0, 0, 0, 0.03);
    max-width: 480px;
    width: 90%;
    padding: 2rem 1.5rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-align: center;
    color: #1f2937; /* text-dark */
    animation: fadeIn 0.25s ease-out;
}

/* Modal title */
.alert-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #15803d; /* match saber-title */
}

/* Modal message */
.alert-modal p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #6b7280; /* text-muted */
}

/* Close button */
.alert-close-btn {
    background-color: #22c55e; /* primary */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.28s ease;
}

.alert-close-btn:hover {
    background-color: #16a34a; /* primary-dark */
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(34, 197, 94, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 576px) {
    .alert-modal {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .alert-modal h2 {
        font-size: 1.25rem;
    }

    .alert-modal p {
        font-size: 0.95rem;
    }
}