.toastBox {
    position: fixed;
    bottom: 0px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
    padding: 20px;
    z-index: 25;
}

.toast {
    min-width: 400px;
    max-height: calc(100vh - 45px);
    width: auto;
    min-height: 75px;
    overflow-y: auto;
    background: #fff;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    animation: moveleft 0.3s ease-in-out forwards;
}

.toast .textBox {
    white-space: pre-line;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}

@keyframes moveleft {
    100% {
        transform: translateX(0);
    }
}

.toast i {
    margin: 0 20px;
    font-size: 35px;
}

.toast.info i {
    color: rgb(27, 27, 201);
}

.toast.success i {
    color: green;
}

.toast.error i {
    color: red;
}

.toast.invalid i {
    color: orange;
}

/*-- Progress (Time left) indicator --*/
.toast .progress {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    animation: anim 3s linear forwards;
}

@keyframes anim {
    100% {
        width: 0;
    }
}

.toast.info .progress {
    background: rgb(27, 27, 201);
}

.toast.success .progress {
    background: green;
}

.toast.error .progress {
    background: red;
}

.toast.invalid .progress {
    background: orange;
}

/*-- close button --*/
.toast .close-btn {
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.close-btn i {
    color: #666;
}


