/* Toast messages - минималистичные уведомления */
.toast-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    min-width: 260px;
    max-width: 360px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #1A1A2B;
    animation: toastSlideIn 0.25s ease;
    border-left: 3px solid;
}

.toast-msg-success {
    border-left-color: #10b981;
}
.toast-msg-success .toast-msg-text {
    color: #065f46;
}

.toast-msg-error {
    border-left-color: #ef4444;
}
.toast-msg-error .toast-msg-text {
    color: #991b1b;
}

.toast-msg-warning {
    border-left-color: #f59e0b;
}
.toast-msg-warning .toast-msg-text {
    color: #92400e;
}

.toast-msg-info {
    border-left-color: #8080D8;
}
.toast-msg-info .toast-msg-text {
    color: #1A1A2B;
}

.toast-msg-text {
    flex: 1;
    font-weight: 400;
}

.toast-msg-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #9ca3af;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

.toast-msg-close:hover {
    color: #4b5563;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Автоисчезновение через 4 секунды */
.toast-msg {
    animation: toastSlideIn 0.25s ease, toastFadeOut 0.3s ease 3.7s forwards;
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}