<template>
  <div class="symmetry-progress-container">
    <div class="progress-left">
      <div class="label">{{ leftVal }}%</div>
      <div class="bar-wrapper">
        <div class="bar left" :style="{ width: leftVal + '%' }"></div>
      </div>
    </div>
    
    <div class="separator"></div>
    
    <div class="progress-right">
      <div class="bar-wrapper">
        <div class="bar right" :style="{ width: rightVal + '%' }"></div>
      </div>
      <div class="label">{{ rightVal }}%</div>
    </div>
  </div>
</template>

<script setup>
defineProps({
  leftVal: {
    type: Number,
    default: 0
  },
  rightVal: {
    type: Number,
    default: 0
  }
});
</script>

<style scoped>
.symmetry-progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
}

.progress-left, .progress-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-left {
  justify-content: flex-end;
}

.bar-wrapper {
  flex: 1;
  height: 12px;
  background-color: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  max-width: 200px;
}

.bar {
  height: 100%;
}

.bar.left {
  background-color: #409eff;
  float: right; /* Align to right side of the container */
}

.bar.right {
  background-color: #67c23a;
}

.separator {
  width: 2px;
  height: 20px;
  background-color: #ccc;
  margin: 0 15px;
}

.label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  min-width: 35px;
}
</style>
