.sensor-chart-widget {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

.chart-title {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
}

.chart-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 200px;
}

.chart-placeholder canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-placeholder svg {
  width: 100%;
  height: 100%;
}

.chart-loading {
  color: #999;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chart-error {
  color: #ff0000;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.chart-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  color: #999;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sensor-chart-widget {
    padding: 12px;
  }
  
  .chart-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .chart-placeholder {
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .sensor-chart-widget {
    padding: 8px;
  }
  
  .chart-title {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .chart-placeholder {
    min-height: 120px;
  }
  
  .chart-label {
    font-size: 9px;
  }
}