﻿.modern-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modern-alert-box {
    background: white;
    width: 90%;
    max-width: 380px;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modern-alert-icon {
    width: 60px;
    height: 60px;
    margin: auto;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    font-size: 28px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.modern-alert-box h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.modern-alert-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.modern-alert-btn {
    background: linear-gradient(45deg, #198754, #20c997);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    width: 100%;
    transition: 0.3s;
}

    .modern-alert-btn:hover {
        opacity: 0.9;
    }

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ===== Modern Success Alert ===== */
.success-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.success-alert-box {
    background: #ffffff;
    width: 90%;
    max-width: 380px;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    animation: fadeInScale 0.25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.success-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 50%;
    color: white;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
}

.success-btn {
    background: linear-gradient(45deg, #198754, #20c997);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    width: 100%;
    font-weight: 600;
    transition: 0.3s;
}

    .success-btn:hover {
        opacity: 0.9;
    }

@keyframes fadeInScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
