﻿.toast-host {
    position: fixed;
    top: 20px;
    left: 50%;
    right: 20px;
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}
/*.toast-host {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    align-items: center;
}*/

.toast {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    animation: toast-in .25s ease;
    overflow: hidden;
    position: relative;
}

    .toast.success {
        border-left: 4px solid #16a34a; 
    }

    .toast.error {
        border-left: 4px solid #dc2626;
    }

    .toast.warning {
        border-left: 4px solid #d97706;
    }

    .toast.info {
        border-left: 4px solid #2563eb;
    }

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
    animation-name: toast-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes toast-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
