﻿#toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: all;
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}

    .toast.toast-error {
        background: #1e0a0a;
        color: #fca5a5;
        border-color: #7f1d1d;
    }

    .toast.toast-success {
        background: #071e11;
        color: #86efac;
        border-color: #14532d;
    }

    .toast.toast-info {
        background: #0a0e1e;
        color: #93c5fd;
        border-color: #1e3a5f;
    }

    .toast.toast-warning {
        background: #1e160a;
        color: #fcd34d;
        border-color: #78350f;
    }

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
    opacity: 0.75;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.45;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

    .toast-close:hover {
        opacity: 1;
    }

.toast.toast-out {
    animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(120%) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(120%) scale(0.85);
    }
}
