<template>
  <div class="rendered-progress" :style="component.style">
    <div class="progress-bar" :style="{ width: component.props.progress + '%' }"></div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';

const props = defineProps({
  component: Object,
});
</script>

<style scoped>
.rendered-progress {
  width: 100%;
  height: 100%;
  background-color: var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-sizing: border-box;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent-color);
  text-align: center;
  color: var(--text-color);
  transition: width 0.6s ease;
  border-radius: var(--border-radius); /* Added for rounded corners */
}
</style>
