@use "../colors" as c;

@use "sass:color";
@use "sass:math";

.progress-bar {
  $progress-border-color: c.$culturedGrey;
  $progress-border: 1px solid $progress-border-color;
  $progress-meter-border-color: c.$orange;
  $progress-meter-border: 1px solid
    color.adjust($progress-meter-border-color, $lightness: -15%);
  $progress-meter-color: $progress-meter-border-color;
  $progress-background: color.adjust(c.$slightWhite, $lightness: -5%);
  $progress-animation-duration: 0.7s;
  $progress-color: c.$white;
  $box-shadow-color: color.adjust($progress-background, $lightness: -50%);

  background-color: $progress-background;
  border: $progress-border;
  border-radius: 3px;
  box-shadow: inset 0 0 3px 0 rgba($box-shadow-color, 0.15);
  margin: 0 auto;
  width: 100%;

  > .meter {
    background-color: $progress-meter-color;
    background-repeat: repeat-x;
    background-size: 40px 40px;
    border: $progress-meter-border;
    border-radius: math.div(3px, 1.5);
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    box-sizing: border-box;
    display: block;
    height: 100%;
    width: 60%;
  }

  p {
    color: $progress-color;
    margin: 0;
    padding: 0.1rem 0.5rem;
    text-shadow: 0 0 1px c.$black;
  }
}
