/* Warna dan animasi untuk sukses */
.succes {
    background-color: #4BB543;
    /* Hijau */
}

.succes-animation {
    animation: succes-pulse 2s infinite;
}

/* Warna dan animasi untuk gagal */
.danger {
    background-color: #CA0B00;
    /* Merah */
}

.danger-animation {
    animation: danger-pulse 2s infinite;
}

/* Style untuk pop-up */
.custom-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    min-height: 250px;
    background-color: #fff;
    border-radius: 30px;
    display: none;
    /* Sembunyikan pop-up secara default */
    z-index: 1000;
    /* Pastikan pop-up muncul di atas elemen lain */
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    /* Tambahkan shadow untuk efek pop-up */
}

.custom-modal.active {
    display: block;
    /* Tampilkan pop-up ketika memiliki kelas active */
}

.custom-modal .content {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 0;
    padding: 20px;
    box-sizing: border-box;
}

.custom-modal .content .type {
    font-size: 18px;
    color: #999;
}

.custom-modal .content .message-type {
    font-size: 24px;
    color: #000;
}

.custom-modal .border-bottom {
    position: absolute;
    width: 300px;
    height: 20px;
    border-radius: 0 0 30px 30px;
    bottom: -20px;
    margin: 0 25px;
}

.custom-modal .icon-top {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #fff;
    line-height: 100px;
    text-align: center;
}

/* Animasi untuk sukses */
@keyframes succes-pulse {
    0% {
        box-shadow: 0px 0px 30px 20px rgba(75, 181, 67, .2);
    }

    50% {
        box-shadow: 0px 0px 30px 20px rgba(75, 181, 67, .4);
    }

    100% {
        box-shadow: 0px 0px 30px 20px rgba(75, 181, 67, .2);
    }
}

/* Animasi untuk gagal */
@keyframes danger-pulse {
    0% {
        box-shadow: 0px 0px 30px 20px rgba(202, 11, 0, .2);
    }

    50% {
        box-shadow: 0px 0px 30px 20px rgba(202, 11, 0, .4);
    }

    100% {
        box-shadow: 0px 0px 30px 20px rgba(202, 11, 0, .2);
    }
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    /* Pastikan font Roboto tersedia */
}

/* Responsif */
@media only screen and (max-width: 800px) {
    .page-wrapper {
        flex-direction: column;
    }
}
