/* =========================================
   Toast Notification System
   ========================================= */

.toast-container {
    position: fixed;
    bottom: 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: 420px;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Toast types */
.toast--success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.toast--error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.toast--warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.toast--info {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Icon */
.toast__icon {
    flex-shrink: 0;
    font-size: 18px;
}

/* Message */
.toast__message {
    flex: 1;
    word-break: break-word;
}

/* Close button */
.toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.2s;
}

.toast__close:hover {
    color: #fff;
}

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

    .toast {
        min-width: unset;
        max-width: unset;
    }
}