.histogram-widget {
  background: #141414;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  margin: 2rem auto;
  color: #fff;
  font-family: sans-serif;
}

.histogram-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-size: 0.9rem;
  color: #aaa;
}

.control-group select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #222;
  color: #fff;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}

.control-group select:focus {
  border-color: #3498db;
}

.histogram-chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-bottom: 2px solid #555;
  border-left: 2px solid #555;
  margin-top: 20px;
}

.histogram-bar {
  position: absolute;
  bottom: 0;
  background-color: #3498db;
  border: 1px solid #141414;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.histogram-bar:hover {
  background-color: #2980b9;
}

.histogram-bar-label {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.histogram-x-axis {
  position: relative;
  width: 100%;
  height: 30px;
  margin-top: 5px;
}

.histogram-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #aaa;
}
