/* styles.css */


.progress-container {
    width: calc(100% + 10px);
    height: 150px;
    position: relative;
    background-color: #F5F5F5;
    border-radius: 20px;
    display: inline-block;
}

.corner-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    background-color: #44A854;
    border-radius: 50%;
    display: none;
}

.corner-title {
    margin-top: 1.5%;
    margin-left: 2%;
    position: absolute;
    top: 10px;
    left: 5px;
    padding: 2px 5px;
    color: black;
    border-radius: 4px;
    font-size: 20px;
    line-height: 16px;
    font-weight: 590;
    display: block;
    font-family: 'Roboto', sans-serif;
}

.streak-banner-container {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
}

.streak-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.streak-icon-text {
    display: flex;
    align-items: center;
}

.streak-icon {
    margin-right: 8px;
}

.streak-goal-text {
    text-align: right;
}

.streak-segments-container {
    display: flex;
    width: 100%;
    gap: 4px;
}

.streak-segment {
    flex: 1;
    height: 10px;
    background-color: #E1E1E1;
}

.streak-segment.filled {
    background-color: #313131;
}


.user-achieved-info {
    margin-top: 2%;
    margin-left: 3.5%;
    top: 10px;
    left: 5px;
    align-self: flex-start;
    padding: 2px 5px;
    color: black;
    border-radius: 4px;
    font-size: 36px;
    line-height: 16px;
    font-weight: bold;
    display: block;
    font-family: 'Roboto', sans-serif;
}

.achieved-unit {
    font-size: 14px;
    color: grey;
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
}

.corner-title-little {
    position: absolute;
    top: 10px;
    left: 5px;
    padding: 2px 5px;
    margin-left: 5px;
    color: black;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 400;
    line-height: 11px;
    display: block;
    font-family: 'Roboto', sans-serif;
}

.progress-text-wrapper {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-value {
    font-size: 33px;
    font-weight: 590;
    height: 30px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.total-number {
    font-size: 22px;
    width: 150px;

    font-weight: 590;
    line-height: 26px;
    margin-left: 5px;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    margin-top: 20px;
}

.week-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 590;
    line-height: 38px;

    text-align: left;
    margin-top: 20px;
    align-self: flex-start;
    width: 100%;

}

.unit {
    font-size: 9px;
    margin-left: 3px;
    color: gray;
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
    margin-right: 5%;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
}



.charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    box-sizing: border-box;
    margin: 10px;
    margin-left: 15px;
    justify-content: center;
    align-items: center;
}



.label-down {

    font-size: 9px;
    line-height: 16px;
    font-family: 'Roboto', sans-serif;
    text-align: center;



}

.progress-value-total {
    font-size: 13px;
    line-height: 16px;
    margin-top: 8px;
    color: gray;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

svg {
    display: block;
    margin: auto;
}

.barchart-container {
    width: calc(100% + 10px);
    height: 250px;
    position: relative;
    background-color: #F7F7F7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

.chart-header {
    margin-top: 1.5%;
    margin-left: 2%;
    height: 20%;
    position: relative;
    padding: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chart-footer {
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: 2%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    width: 93%;
    align-items: center;
    box-sizing: border-box;

}



.chart-main {
    flex: 1;
    margin-left: 2%;
    margin-right: 2%;
    display: flex;
    align-items: stretch;
    padding: 10px;
    box-sizing: border-box;
}

.chart-main canvas {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.progressbar-container {
    width: calc(50% - 5px);
    position: relative;
    background-color: #F5F5F5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
}

.progress-bar {
    display: flex;
    position: relative;
    max-height: 20%;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    width: 85%;
    gap: 3px;
}

.progress-segment {
    flex: 1 1 auto;
    aspect-ratio: 1 / 2;
    background-color: #e1e1e1;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}


.progress-segment.filled {
    background-color: #313131;
}

@media (prefers-color-scheme: dark) {
  .progress-container {
      background-color: #323232;
  }

  .corner-title {
       color: #FFFFFF;
      }

  .progressbar-container {
      background-color: #323232;
  }

  .corner-title-little {
      color: #FFFFFF;

  }

  .barchart-container {
      background-color: #323232;
  }

  .progress-segment.filled {
    background-color: #FFFFFF;
}

  .progress-segment {
    background-color: #5b5a58;

  }


  }
  body {
    background-color: #212121;
    color: white;
  }


@media (prefers-color-scheme: light) {
  body {
    background-color: white;
    color: black;
  }
}