.chartCard {
  --lineChart-color-background: white;
  --lineChart-color-border: #edf2f7;
  --lineChart-color-shadow: rgba(0, 0, 0, 0.05);
  --lineChart-color-title: #2d3748;
  --lineChart-color-subtitle: #718096;
  --lineChart-color-grid: #e2e8f0;
  --lineChart-color-blue: #3182ce;
  --lineChart-color-purple: #805ad5;
  --lineChart-color-hover-guide: #cbd5e0;
  --lineChart-color-axis-label: #a0aec0;
  --lineChart-color-tooltip-shadow: rgba(0, 0, 0, 0.1);
  --lineChart-color-tooltip-text: #4a5568;

  background: var(--lineChart-color-background);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px var(--lineChart-color-shadow);
  border: 1px solid var(--lineChart-color-border);

  &__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lineChart-color-title);
    margin: 0;
  }

  &__subtitle {
    color: var(--lineChart-color-subtitle);
    font-size: 0.875rem;
    margin-top: 4px;
    margin-bottom: 24px;
  }

  &__chartContainer {
    height: 260px;
    width: 100%;
    position: relative;
  }
}

.lineChartSvg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gridLine {
  stroke: var(--lineChart-color-grid);
  stroke-width: 0.1;
  stroke-dasharray: 0.5;
}

.pathLine {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 0.3s ease;

  &--blue {
    stroke: var(--lineChart-color-blue);
  }
  &--purple {
    stroke: var(--lineChart-color-purple);
  }
}

.dot {
  transition: r 0.2s ease;

  &--blue {
    fill: var(--lineChart-color-blue);
  }

  &--purple {
    fill: var(--lineChart-color-purple);
  }
  &--active {
    r: 1.5;
    stroke: var(--lineChart-color-background);
    stroke-width: 0.5;
  }
}

.hoverGuide {
  stroke: var(--lineChart-color-hover-guide);
  stroke-width: 0.2;
  stroke-dasharray: 1;
}

.xAxis {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;

  &__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lineChart-color-axis-label);
    width: 30px;
    text-align: center;
  }
}

.chartTooltip {
  position: absolute;
  top: -10px;
  pointer-events: none;
  background: var(--lineChart-color-background);
  border: 1px solid var(--lineChart-color-grid);
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 4px 12px var(--lineChart-color-tooltip-shadow);
  z-index: 20;

  &__title {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: var(--lineChart-color-title);
  }

  &__row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--lineChart-color-tooltip-text);

    &__indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;

      &--blue {
        background: var(--lineChart-color-blue);
      }

      &--purple {
        background: var(--lineChart-color-purple);
      }
    }
  }
}
