.custom-bar-widget {
  display: flex;
  align-items: stretch;
  gap: 15px;
  margin-bottom: 30px;
}

.bar-icon {
  width: 40px;                /* domyślny rozmiar kontenera */
  height: 40px;               /* domyślny rozmiar kontenera */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bar-icon img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}


.bar-icon.resizable-icon img {
  /* wartości będą nadpisane z kontrolki (width/height) */
}

.bar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bar-label {
  font-weight: bold;
  margin-bottom: 8px;
}

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

.bar-container {
  flex: 1;
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  animation: fillBar 2s forwards;
}

.bar-value {
  width: 120px;
  text-align: center;
  font-weight: bold;
}

@keyframes fillBar {
  to {
    width: var(--bar-width);
  }
}
