﻿/* ===== Toast-уведомления ===== */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: 100%;
    pointer-events: none; /* чтобы клики проходили сквозь контейнер */
}

.toast {
    pointer-events: auto; /* чтобы на сам Toast можно было кликнуть */
    padding: 16px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease forwards;
    transition: opacity 0.3s, transform 0.3s;
}

.toast--success {
    background: #28a745;
}

.toast--error {
    background: #dc3545;
}

.toast__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

    .toast__close:hover {
        opacity: 1;
    }

.toast--hiding {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
