@use "../../../../styles/font" as *;
@use "../../../../styles/variables" as *;

.card {
  height: 100%;
  box-sizing: border-box;

  @media (max-width: $small) {
    margin-top: 36px;
  }
}

.user-projects-title-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  align-items: center;
}

.user-projects-title {
  margin: 0;
}

.chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  position: relative;
}

.chart-title {
  font-weight: $fw-normal;
  font-size: $fs-regular;
  line-height: 24px;
  color: $dark-grey;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;

  @media (max-width: $small) {
    font-size: $fs-large;
  }

  @media (min-width: $small) and (max-width: $normal) {
    font-size: $fs-small;
  }
}

.chart-legend-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.chart-legend-row {
  display: flex;

  & + .chart-legend-row {
    margin-top: 4px;
  }
}

.chart-legend-title-wrapper {
  display: flex;
  align-items: center;

  & + .chart-legend-title-wrapper {
    margin-left: 8px;
  }
}

.chart-legend-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;

  &.blue {
    background-color: $blue;
  }

  &.yellow {
    background-color: $yellow;
  }

  &.green {
    background-color: $green;
  }

  &.pink {
    background-color: $pink;
  }
}

.chart-legend-title {
  margin: 0;
  font-size: $fs-small;
  font-weight: $fw-lighter;
  color: $grey;
}

.button-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;

  @media (max-width: $small) {
    margin-top: 16px;
  }
}

.button {
  margin-top: 0;
}
