In this scenario, I am attempting to apply border-radius specifically to the upper and lower right corners of the progress bars. The idea is to create a cascading effect where each color (red, green, and blue) progress bar overlaps slightly with the next one, showcasing a multi-layered look. For a better understanding, refer to the visual representation below:
https://i.stack.imgur.com/gfwjJ.png
.customer-count-container .progress {
box-shadow: 0px -4px 4px -2px rgba(0, 0, 0, 0.25) inset, 0px 3px 2.8px 0px rgba(255, 255, 255, 0.8) inset;
overflow: hidden;
}
.customer-count-container .progress .progress-bar:nth-child(1),
.customer-count-container .progress .progress-bar:nth-child(2),
.customer-count-container .progress .progress-bar:nth-child(3) {
border-bottom-right-radius: 10px;
border-top-right-radius: 10px;
overflow: hidden;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="06646969727572746776463228302834">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<div class="progress" style="width: 35%; height: 10px">
<div class="progress-bar" style="width: 20%; background-color: var(--red)"></div>
<div class="progress-bar" style="width: 35%; background-color: var(--green)"></div>
<div class="progress-bar" style="width: 45%; background-color: #4d7a90"></div>
</div>