@import "../variables";
@import "../mixin";

/*===========================
    05.PROGRESS BARS css 
===========================*/

.progress-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 45px;
  color: var(--dark-3);

  @media #{$xs} {
    font-size: 24px;
    line-height: 35px;
  }
}

.color-one {
  background: var(--primary);
}

.color-two {
  background: var(--success);
}

.color-three {
  background: var(--info);
}

.color-four {
  background: var(--caution);
}

.color-five {
  background: var(--error);
}

.progress-style {
  & .single-progress-bar {
    margin-top: 30px;

    & .progress-outer {
      width: 100%;
      background-color: var(--light-1);
      height: 32px;
      border-radius: 50px;
      position: relative;

      & .progress-content {
        position: absolute;
        top: 0;
        left: 0;
        height: 32px;
        border-radius: 50px;
        width: 0;
        @include transition(2s);
      }
    }
  }

  &.style-two {
    & .single-progress-bar {
      & .progress-text {
        color: var(--white);
        padding: 0 25px;
        position: absolute;
        top: 0;
        left: 0;
        line-height: 32px;
      }
    }
  }

  &.style-three {
    & .single-progress-bar {
      margin-top: 68px;

      & .progress-outer {
        height: 16px;

        & .progress-content {
          height: 16px;
        }
      }
    }
  }

  &.thin-2x {
    & .single-progress-bar {
      margin-top: 68px;

      & .progress-outer {
        height: 4px;

        & .progress-content {
          height: 4px;
        }
      }
    }
  }

  &.style-four {
    & .single-progress-bar {
      margin-top: 35px;

      & .progress-title-holder {
        margin-bottom: 8px;

        & .holder-title {
          & p {
            font-size: 16px;
            line-height: 24px;
            color: var(--black);
          }
        }
        & .holder-percent {
          & span {
            font-size: 20px;
            font-weight: 600;
            line-height: 24px;
            color: var(--black);
          }
        }
      }

      & .progress-outer {
        height: 16px;

        & .progress-content {
          height: 16px;
        }
      }
    }
  }

  &.style-five {
    & .single-progress-bar {
      margin-top: 70px;

      & .progress-title-holder {
        margin-top: 8px;

        & .holder-percent {
          & span {
            font-size: 20px;
            font-weight: 600;
            line-height: 24px;
            color: var(--black);
          }
        }
      }

      & .progress-outer {
        height: 16px;

        & .progress-content {
          height: 16px;

          & .holder-title {
            width: 120px;
            text-align: center;
            height: 30px;
            border-radius: 50px;
            position: absolute;
            top: -45px;
            right: -60px;

            & p {
              font-size: 16px;
              line-height: 30px;
              color: var(--white);
            }
          }
        }
      }
    }
  }
}

/*===== COUNTER STYLE =====*/

.counter-style {
  & .counter-one {
    @include box-shadow(0px 0px 5px 0px rgba(0, 0, 0, 0.16));
    padding-top: 55px;
    padding-bottom: 40px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;

    &::before {
      position: absolute;
      content: "";
      width: 100%;
      height: 4px;
      top: 0;
      left: 0;
      background: var(--primary);
    }

    & .counter-icon {
      margin-bottom: 5px;

      & i {
        font-size: 80px;
        line-height: 60px;
        color: var(--primary);
      }
    }
    & .counter-content {
      & .count {
        font-size: 44px;
        font-weight: 600;
        line-height: 55px;
        color: var(--black);
        margin-bottom: 4px;
      }
      & .text {
        font-size: 24px;
        color: var(--dark-3);
      }
    }
  }

  & .counter-two {
    @include box-shadow(0px 0px 5px 0px rgba(0, 0, 0, 0.16));
    padding: 23px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;

    &::before {
      position: absolute;
      content: "";
      width: 100%;
      height: 4px;
      top: 0;
      left: 0;
      background: var(--error);
    }

    & .counter-icon {
      margin-bottom: 5px;

      & i {
        font-size: 66px;
        line-height: 60px;
        color: var(--error);
      }
    }
    & .counter-content {
      padding-left: 11px;
      & .count {
        font-size: 36px;
        font-weight: 600;
        line-height: 45px;
        color: var(--black);
        margin-bottom: 4px;
      }
      & .text {
        font-size: 16px;
        color: var(--dark-3);
      }
    }
  }

  & .counter-three {
    @include box-shadow(0px 0px 5px 0px rgba(0, 0, 0, 0.16));
    padding: 23px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background: var(--success);

    & .counter-icon {
      margin-bottom: 5px;

      & i {
        font-size: 66px;
        line-height: 60px;
        color: var(--white);
      }
    }
    & .counter-content {
      padding-left: 11px;
      & .count {
        font-size: 36px;
        font-weight: 600;
        line-height: 45px;
        color: var(--white);
        margin-bottom: 4px;
      }
      & .text {
        font-size: 16px;
        color: var(--white);
      }
    }
  }

  & .counter-four {
    @include box-shadow(0px 0px 5px 0px rgba(0, 0, 0, 0.16));
    padding: 23px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;

    &::before {
      position: absolute;
      content: "";
      width: 4px;
      height: 100%;
      top: 0;
      left: 0;

      background: var(--primary);
    }

    & .counter-icon {
      margin-bottom: 5px;

      & i {
        font-size: 66px;
        line-height: 60px;
        color: var(--primary);
      }
    }
    & .counter-content {
      padding-left: 11px;
      & .count {
        font-size: 36px;
        font-weight: 600;
        line-height: 45px;
        color: var(--black);
        margin-bottom: 4px;
      }
      & .text {
        font-size: 16px;
        color: var(--dark-3);
      }
    }
  }

  & .counter-five {
    @include box-shadow(0px 0px 5px 0px rgba(0, 0, 0, 0.16));
    padding: 23px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;

    background: var(--primary);

    & .counter-icon {
      margin-bottom: 5px;

      & i {
        font-size: 66px;
        line-height: 60px;
        color: var(--white);
      }
    }
    & .counter-content {
      padding-left: 11px;
      & .count {
        font-size: 36px;
        font-weight: 600;
        line-height: 45px;
        color: var(--white);
        margin-bottom: 4px;
      }
      & .text {
        font-size: 16px;
        color: var(--white);
      }
    }
  }

  & .counter-six {
    @include box-shadow(0px 0px 5px 0px rgba(0, 0, 0, 0.16));
    padding-top: 55px;
    padding-bottom: 40px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;

    background: var(--primary);

    & .counter-icon {
      margin-bottom: 5px;

      & i {
        font-size: 80px;
        line-height: 60px;
        color: var(--white);
      }
    }
    & .counter-content {
      & .count {
        font-size: 44px;
        font-weight: 600;
        line-height: 55px;
        color: var(--white);
        margin-bottom: 4px;
      }
      & .text {
        font-size: 24px;
        color: var(--white);
      }
    }
  }
}

.single-counter {
  & .counter-shape {
    width: 55px;

    & .shape-1,
    & .shape-2 {
      display: inline-block;
      width: 14px;
      height: 70px;
      position: relative;
      @include transform(rotate(25deg));
      left: 12px;

      @media #{$sm} {
        width: 10px;
      }

      &::before,
      &::after {
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        top: -1px;
        right: -1px;
        border-top: 12px solid var(--white);
        border-left: 16px solid transparent;
      }
      &::after {
        border-top: 0;
        border-bottom: 6px solid var(--white);
        top: auto;
        bottom: -1px;
      }
    }

    & .shape-1 {
      opacity: 0.5;
      left: 15px;
      bottom: 1px;
    }
  }

  & .counter-content {
    padding-left: 10px;

    & .counter-count {
      font-size: 48px;
      font-weight: 700;
      line-height: 50px;
      color: var(--black);

      @media #{$sm} {
        font-size: 32px;
      }
    }
    & .text {
      font-weight: 600;
      color: var(--dark-3);
    }
  }

  &.counter-color-1 {
    & .counter-shape {
      & .shape-1,
      & .shape-2 {
        background: var(--primary);
      }
    }
  }

  &.counter-color-2 {
    & .counter-shape {
      & .shape-1,
      & .shape-2 {
        background: var(--success);
      }
    }
  }

  &.counter-color-3 {
    & .counter-shape {
      & .shape-1,
      & .shape-2 {
        background: var(--info);
      }
    }
  }

  &.counter-color-4 {
    & .counter-shape {
      & .shape-1,
      & .shape-2 {
        background: var(--caution);
      }
    }
  }
}

/*===== COUNTER STYLE =====*/

.circle-progress {
  & .circles-text {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--black);
  }

  & .circle-progress-content {
    padding-left: 30px;

    & .circle-progress-title {
      font-size: 18px;
      line-height: 30px;
    }
  }

  .ldBar.label-center > .ldBar-label {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
  }
}
