/*
 * Copyright © 2025 RTAkland
 * Date: 2025/12/2 17:29
 * Open Source Under Apache-2.0 License
 * https://www.apache.org/licenses/LICENSE-2.0
 */

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    max-height: calc(3 * 100px);
}

.toast-message {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 5px;
    opacity: 0;
    transform: translateX(30px);
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.toast-container .toast-message:nth-child(1) {
    animation-delay: 0s;
}

.toast-container .toast-message:nth-child(2) {
    animation-delay: 0.3s;
}

.toast-container .toast-message:nth-child(3) {
    animation-delay: 0.6s;
}

.toast-container .toast-message.hide {
    animation: slideOut 0.5s ease-out forwards;
}
