.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    background: var(--surface-card);
    border: 2px solid var(--border-default);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.slide-out {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.toast-close:hover {
    background: var(--surface-elevated);
    color: var(--text-primary);
}

.toast-success {
    border-color: #10B981;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.toast-error {
    border-color: #EF4444;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.toast-warning {
    border-color: var(--accent-primary);
}

.toast-warning .toast-icon {
    background: rgba(143, 171, 143, 0.2);
    color: var(--accent-primary);
}

.toast-info {
    border-color: #3B82F6;
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.toast-loading {
    border-color: var(--accent-primary);
}

.toast-loading .toast-icon {
    background: rgba(143, 171, 143, 0.2);
    color: var(--accent-primary);
    animation: toastSpin 1s linear infinite;
}

@keyframes toastSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-primary);
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

