/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: var(--bg-elevated, #1a1a2e);
    border: 1px solid var(--border, #333);
    border-radius: var(--radius-lg, 8px);
    padding: 12px 16px;
    margin-bottom: 10px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow-toast, 0 4px 12px rgba(0, 0, 0, 0.3));
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success, #4caf50);
}

.toast.error {
    border-left: 4px solid var(--danger, #f44336);
}

.toast.warning {
    border-left: 4px solid var(--warning-alt, #ff9800);
}

.toast.info {
    border-left: 4px solid var(--accent, #2196f3);
}

.toast-icon {
    display: none;
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success, #4caf50);
}

.toast.error .toast-icon {
    color: var(--danger, #f44336);
}

.toast.warning .toast-icon {
    color: var(--warning-alt, #ff9800);
}

.toast.info .toast-icon {
    color: var(--accent, #2196f3);
}

.toast-content {
    flex: 1;
    color: var(--text, #ffffff);
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted, #a0aec0);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.toast-close:hover {
    background-color: var(--border, #333);
    color: var(--text, #ffffff);
}

.toast-action-button {
    margin-left: 10px;
    padding: 4px 12px;
    background: var(--success, #4caf50);
    color: var(--text-on-accent, #ffffff);
    border: none;
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    font-size: 12px;
}
