.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scales {
  position: relative;
  width: 80px;
  height: 80px;
}

/* Central post */
.post {
  position: absolute;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  width: 3px;
  height: 45px;
  background: #243b76;
  border-radius: 2px;
}

/* Top pivot point */
.pivot {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border: 2px solid #243b76;
  border-radius: 50%;
  background: white;
  z-index: 10;
}

/* Horizontal beam */
.beam {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #243b76;
  border-radius: 1px;
  animation: beamTilt 2s ease-in-out infinite;
  transform-origin: center;
}

/* Base */
.base {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  background: #243b76;
  border-radius: 2px;
}

/* Scale containers */
.scale-left,
.scale-right {
  position: absolute;
  top: 15px;
}

.scale-left {
  left: 5px;
  animation: scaleLeftMove 2s ease-in-out infinite;
}

.scale-right {
  right: 5px;
  animation: scaleRightMove 2s ease-in-out infinite;
}

/* Chains */
.chain {
  width: 1px;
  height: 15px;
  background: #243b76;
  margin: 0 auto;
}

/* Scale pans */
.pan {
  width: 16px;
  height: 16px;
  border: 2px solid #243b76;
  border-radius: 50%;
  background: white;
  margin: 2px auto 0;
}

/* Animations */
@keyframes beamTilt {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) rotate(-2deg);
  }
  75% {
    transform: translateX(-50%) rotate(2deg);
  }
}

@keyframes scaleLeftMove {
  0%,
  100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-3px);
  }
  75% {
    transform: translateY(3px);
  }
}

@keyframes scaleRightMove {
  0%,
  100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(3px);
  }
  75% {
    transform: translateY(-3px);
  }
}

/* Hover effect for interaction */
.scales:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
