.heatmap {
  width: 100%;
}

.heatmap__container {
  display: flex;
  gap: 1rem;
}

.heatmap__y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 100px;
  padding-right: 1rem;
}

.heatmap__y-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
  padding: 0.5rem 0;
}

.heatmap__grid {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.heatmap__x-axis {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.heatmap__x-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 0.25rem;
}

.heatmap__cells {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), 1fr);
  grid-template-rows: repeat(var(--rows, 1), 1fr);
  gap: 0.25rem;
  flex: 1;
}

.heatmap__cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.heatmap__cell:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.heatmap__cell-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.heatmap__legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.heatmap__legend-gradient {
  width: 200px;
  height: 1rem;
  background: linear-gradient(to right, #10b981, #84cc16, #fbbf24, #f59e0b, #ef4444);
  border-radius: var(--radius-sm);
}

