
.notifications {
  /*  position: fixed;
    top: 30px;
    right: 20px;
*/
    position: fixed;
    top: 58px;
    right: -35px;
    z-index: 99999;	
}

.xtoast {
    position: relative;
    padding: 10px 5px 15px 5px;
    margin-bottom: 10px;
    width: 400px;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    border-radius: 5px;
    --color: #0abf30;
    animation: show_toast 0.3s ease forwards;
    background-color: #ffffff;
	border: 1px solid #ececec;	
}
.xtoast i {
    color: var(--color);
}
.xtoast .title {
    font-size: 15px;
    font-weight: bold;
}
.xtoast i {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: x-large;
}
.xtoast span, .xtoast .close {
    color: #000000;
}

/* Slide-in keyframe for showing toast */
@keyframes show_toast {	
	0% {
		transform: translateX(100%);
	}
	40% {
		transform: translateX(-5%);
	}
	80% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-10%);
	}		
}

/* Slide-out keyframe for removing toast */
@keyframes slide_out {
  /*  from {
        transform: translateX(-10%);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
*/
	0% {
		transform: translateX(0%);
	}
	40% {
		transform: translateX(-10%);opacity: 1;
	}
	100% {
		transform: translateX(100%);opacity: 0;
	}		
}

/* Add slide-out class for toast */
.xtoast.slide-out {
    animation: slide_out 0.5s ease forwards;
}

.xtoast::before {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color);
    /* box-shadow: 0 0 10px var(--color); */
    content: '';
    width: 100%;
    height: 3px;
    animation: timeOut 5s linear forwards;
}

@keyframes timeOut {
    to {
        width: 0%;
    }
}

.xtoast.success {
    --color: #079212;
	border: 1px solid #4CAF50;
}

.xtoast.danger {
    --color: #f24d4c;
	border: 1px solid #bdbdbd;
}

.xtoast.warning {
    --color: #e9bd0c;
	border: 1px solid #bdbdbd;
}

.xtoast.info {
    --color: #3498db;
	border: 1px solid #bdbdbd;
}
