@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slide-out-right {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

.blazored-toast-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1060;
    /* Higher than bootstrap modal (1055) */
    width: auto;
    max-width: 100%;
    max-height: 100vh;
    padding: 1rem;
    pointer-events: none;
}

.blazored-toast-container.position-topright {
    top: 0;
    right: 0;
}

.blazored-toast-container.position-topleft {
    top: 0;
    left: 0;
}

.blazored-toast-container.position-bottomright {
    bottom: 0;
    right: 0;
}

.blazored-toast-container.position-bottomleft {
    bottom: 0;
    left: 0;
}

.blazored-toast-container.position-topcenter {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.blazored-toast-container.position-bottomcenter {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.blazored-toast {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 20rem;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff;
    color: #212529;
    pointer-events: auto;
    overflow: hidden;
    animation: fade-in 0.5s ease-in-out;
}

.blazored-toast-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 1rem;
    font-size: 1.5rem;
}

.blazored-toast-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.blazored-toast-header {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.blazored-toast-message {
    font-size: 0.9rem;
}

/* Themes */
.blazored-toast.blazored-toast-info {
    background-color: #2e9caa;
    color: #fff;
}

.blazored-toast.blazored-toast-success {
    background-color: #4caf50;
    color: #fff;
}

.blazored-toast.blazored-toast-warning {
    background-color: #ff9800;
    color: #fff;
}

.blazored-toast.blazored-toast-error {
    background-color: #f44336;
    color: #fff;
}

.blazored-toast-close-icon {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    cursor: pointer;
    background: transparent;
    border: 0;
    color: inherit;
    opacity: 0.5;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

.blazored-toast-close-icon:hover {
    opacity: 1;
}

.blazored-toast-progressbar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.25rem;
    background-color: rgba(255, 255, 255, 0.7);
    transition: width linear;
}