

:root {
    --toast-bg: rgba(13, 15, 25, 0.85);
    --toast-border: rgba(255, 255, 255, 0.08);
    --toast-radius: 1.25rem;
    --accent-blue: #2997ff;
    --accent-green: #00e682;
    --accent-red: #ff4d4d;
}

#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.75rem;
}

.toast-item {
    background: var(--toast-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #e2e8f0;
    padding: 0.875rem 1.25rem;
    border-radius: var(--toast-radius);
    border: 1px solid var(--toast-border);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    animation: toastIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.toast-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    opacity: 0.8;
}

.toast-item.success::after { background: linear-gradient(90deg, transparent, var(--accent-green), transparent); }
.toast-item.error::after   { background: linear-gradient(90deg, transparent, var(--accent-red), transparent); }
.toast-item.info::after    { background: linear-gradient(90deg, transparent, var(--accent-blue), transparent); }

.toast-item.success i, .toast-item.success svg { color: var(--accent-green); }
.toast-item.error   i, .toast-item.error   svg { color: var(--accent-red); }
.toast-item.info    i, .toast-item.info    svg { color: var(--accent-blue); }

.toast-item.fade-out {
    animation: toastOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(0.95); }
}
