@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

#toast {
    position: absolute;
    top: 25px;
    right: 30px;
    background-color: #FFFFFF;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px 35px 20px 25px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    z-index: 999;
}

.toast-success {
    border-left: 6px solid #4070F4;
}

.toast-error {
    border-left: 6px solid #F44040;
}

#toast.active {
    transform: translateX(0%);
}

#toast-content {
    display: flex;
    align-items: center;
}

#toast-content .check, #toast-content .error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    color: #FFFFFF;
    font-size: 20px;
    border-radius: 50%;
}

.check-success {
    background-color: #4070F4;
}

.check-error {
    background-color: #F44040;
}

#message {
    display: flex;
    flex-direction: column;
    margin: 0 14px;
}

#message .text {
    font-size: 13px;
    font-weight: 400;
    color: #666666;
}

#message .text.text1 {
    font-weight: 600;
    color: #333333;
}

#toast .close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

#toast .close:hover {
    opacity: 1;
}

#progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #DDDDDD;
}

#progress::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
}

#progress.active::before {
    animation: progress 4.9s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

@-o-keyframes progress {
    100% {
        right: 100%;
    }
}

@-moz-keyframes progress {
    100% {
        right: 100%;
    }
}

@-webkit-keyframes progress {
    100% {
        right: 100%;
    }
}

.progress-success::before {
    background-color: #4070F4;
}

.progress-error::before {
    background-color: #F44040;
}