                       titleColor: '#fff',
                            bodyColor: '#fff',
                            borderColor: '#374151',
                            borderWidth: 1
                        }
                    }
                }
            });
        } catch (error) {
            console.error('Error creating equipment chart:', error);
            showChartError('equipmentChart', 'Equipment Status');
        }
    }
}

function showChartError(elementId, chartName) {
    const element