.chart-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: var(--color0);
  gap: 40px;
  padding: 30px;
  border-radius: 34px;
}

/* ---------------------
   1. Oszlopdiagram (függőleges)
--------------------- */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 200px;
  width: 250px;
  padding: 10px;
  gap: 10px;
}

.bar {
  width: 60px;
  height: var(--bar-height);
  background-color: var(--bar-color, #007BFF);
  color: white;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar-chart:hover .bar {
  animation: shrinkBounce 0.8s ease;
}

@keyframes shrinkBounce {
  0% { height: var(--bar-height); }
  50% { height: 0%; }
  100% { height: var(--bar-height); }
}

/* ---------------------
   2. Tortadiagram
--------------------- */
.pie-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.pie-chart::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--color2) 0% 20%,
    var(--color1) 20% 100%
  );
  transform: scale(1);
  opacity: 1;
  animation: none;
  pointer-events: none;
}

.pie-chart:hover::before {
  animation: pieShrinkBounce 0.8s ease;
}

@keyframes pieShrinkBounce {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------------------
   3. Vízszintes oszlopdiagram
--------------------- */
.horizontal-bar-chart {
  width: 300px;
  height: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.horizontal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.horizontal-bar .label {
  width: 30px;
  font-weight: bold;
}

.horizontal-bar .value {
  height: 20px;
  background-color: var(--bar-color, #007BFF);
  color: white;
  padding-left: 5px;
  line-height: 20px;
  width: var(--bar-width);
}

.horizontal-bar-chart:hover .value {
  animation: shrinkWidth 1.2s ease;
}

@keyframes shrinkWidth {
  0%   { width: var(--bar-width); }
  50%  { width: 0%; }
  100% { width: var(--bar-width); }
}

@media (max-width: 1000px) {
  .chart-container {
    flex-direction: column;
  }
}