/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none; /* Allows clicking through empty space */
}

/* Base Toast Style */
.toast {
    pointer-events: auto; /* Re-enable clicks for the actual toast */
    min-width: 280px;
    max-width: 350px;
    padding: 15px 20px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px); /* Glassmorphism */
    
    /* Animation */
    animation: toastIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    transition: all 0.3s ease;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

/* Toast Variants */
.toast-success { border-left: 4px solid #10b981; }
.toast-danger { border-left: 4px solid #ef4444; }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-info { border-left: 4px solid #3b82f6; }

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title { font-weight: 600; font-size: 0.9rem; }
.toast-message { font-size: 0.8rem; color: var(--text-dim); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.2rem;
    padding-left: 10px;
}

/* Keyframes */
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}