﻿.toastPortalContainer {
    position: fixed;
    bottom: 2vh;
    right: 2vw;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    padding: 15px;
}

.toastPortal {
	border: 1px solid #dee2e6; 
	border-radius: 12px;
    width: 400px;
    height: 80px;
    background: #fff;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    animation: toastPortalMoveLeftAnimation 0.5s linear forwards;
}

    .toastPortal i {
        margin: 0 20px;
        color: #0d6efd;		
		width: 40px; 
		height: 40px; 
		border-radius: 10px; 
		display: flex; 
		align-items: center; 
		justify-content: center; 
		font-size: 18px;		
		background: rgba(142, 216, 248, 0.15)
    }

    .toastPortal.success i {
		background: rgba(109, 192, 103, 0.15);
        color: #198754;
    }

    .toastPortal.danger i {
		background: rgba(243, 112, 33, 0.15);
        color: #dc3545;
    }

    .toastPortal.warning i {
		background: rgba(255, 225, 106, 0.15);
        color: #ffc107;
    }

    .toastPortal.info i {
		background: rgba(142, 216, 248, 0.15)
        color: #0dcaf0;
    }

    .toastPortal::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 5px;
        background: #0d6efd;
		border-radius: 0px 0px 0px 12px;
        animation: toastPortalTimerBarAnimation 6s linear forwards;
    }

    .toastPortal.success::after {
        background: #198754;
    }

    .toastPortal.danger::after {
        background: #dc3545;
    }

    .toastPortal.warning::after {
        background: #ffc107;
    }

    .toastPortal.info::after {
        background: #0dcaf0;
    }

@keyframes toastPortalTimerBarAnimation {
    100% {
        width: 0;
    }
}

@keyframes toastPortalMoveLeftAnimation {
    100% {
        transform: translateX(0);
    }
}
