/* ===== ALERT MODAL ===== */
.alert-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55); /* dark slate overlay */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.alert-modal.show {
    display: flex;
}

/* ===== ALERT BOX ===== */
.alert-box {
    background: #ffffff;
    width: 420px;          /* lebih lebar */
    max-width: 90%;
    padding: 30px 28px 26px; /* lebih spacious */
    border-radius: 18px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    text-align: center;
    animation: alert-in .22s cubic-bezier(.4, 0, .2, 1);
}

/* ===== ANIMATION ===== */
@keyframes alert-in {
    from {
        transform: translateY(8px) scale(.94);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ===== ICON ===== */
.alert-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: #f1f5f9;
}

/* ===== CONTENT ===== */
.alert-content h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .2px;
}

.alert-content p {
    margin: 12px 0 16px;   /* atas 12px, bawah 16px */
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
    text-align: center;
}

/* ===== ACTIONS ===== */
.alert-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.alert-actions .btn {
    min-width: 110px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
}

/* ===== VARIANTS ===== */
.alert-success .alert-icon {
    background: #dcfce7;
    color: #16a34a;
}
.alert-success h3 {
    color: #15803d;
}

.alert-error .alert-icon {
    background: #fee2e2;
    color: #dc2626;
}
.alert-error h3 {
    color: #b91c1c;
}

.alert-warning .alert-icon {
    background: #fef3c7;
    color: #f59e0b;
}
.alert-warning h3 {
    color: #b45309;
}

.warning-text {
    color: var(--danger);
    font-weight: bold;
    font-size: 11.5px;
    margin-top: 12px;
    line-height: 1.4;
}