﻿/* Toast container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

/* Toast base styles */
.toast {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #fff;
    background: #333;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 4.5s forwards;
    position: relative;
}

    /* Success toast */
    .toast.success {
        background: linear-gradient(120deg, #2ecc71, #1abc9c);
        color: #ffffff;
    }
    /* Error toast */
    .toast.error {
        background: linear-gradient(120deg, #e74c3c, #c0392b);
        color: #ffffff;
    }
    /* Warning toast */
    .toast.warning {
        background: linear-gradient(120deg, #f1c40f, #f39c12);
        color: #212529;
    }
    /* Info toast */
    .toast.info {
        background: linear-gradient(120deg, #4f7df3, #66b6ff);
        color: #ffffff;
    }

.toast-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: cover;
    background-repeat: no-repeat;
}

.toast.success .toast-icon {
    background-image: url('../Images/png/success.png');
}

.toast.error .toast-icon {
    background-image: url('../Images/png/cancel.png');
}

.toast.warning .toast-icon {
    background-image: url('../Images/png/warn.png');
}

.toast.info .toast-icon {
    background-image: url('../Images/png/info.png');
}

.toast-close {
    padding-left: 5px;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .toast-close:hover {
        opacity: 1;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}
