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

/* Toast Notification Item */
.toast-item {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
        height: auto;
        margin-bottom: 10px;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
        height: 0;
        margin-bottom: 0;
        padding: 0;
        border: 0;
    }
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

/* Icons */
.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: block;
}

.toast-message {
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding: 4px;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: white;
}