﻿/* ==============================
 * Toast / Snackbar notifications
 * ============================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 440px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateX(60px);
    animation: toast-in 0.35s ease forwards;
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 0 8px;
    flex-shrink: 0;
    line-height: 1;
}

.toast-close:hover {
    color: #fff;
}

/* Types */
.toast-success {
    background: #2a7d2a;
}

.toast-error {
    background: #c0392b;
}

.toast-warning {
    background: #d4880f;
}

.toast-info {
    background: #2980b9;
}

/* Animations */
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(60px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }
    .toast {
        min-width: auto;
        max-width: none;
    }
}