.completion-timeline-container {
  width: 100%;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;

  .chart-title {
    flex: 1;

    h3 {
      color: var(--text-color, #ffffff);
      font-size: 1.25rem;
      font-weight: 500;
      margin: 0 0 0.5rem 0;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .chart-description {
      color: var(--text-secondary-color);
      font-size: 0.9rem;
      margin: 0;
      line-height: 1.4;
    }
  }
}

.year-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;

  .year-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.6rem 0.6rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.3);
      transform: translateY(-1px);
    }

    &:active {
      transform: translateY(0);
    }

    i {
      font-size: 0.875rem;
    }
  }

  .current-year {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    min-width: 4.5rem;
    text-align: center;
  }
}

.completion-title-icon {
  font-size: 1.5rem;
  color: rgba(251, 191, 36, 1);
}

.chart-wrapper {
  position: relative;
  height: 350px;
  width: 100%;
}

@media (max-width: 768px) {
  .chart-header {
    flex-direction: column;
    align-items: stretch;

    .chart-title {
      h3 {
        font-size: 1.1rem;
      }

      .chart-description {
        font-size: 0.85rem;
      }
    }

    .year-selector {
      justify-content: center;
      margin-top: 0.5rem;
    }
  }
}

@media (max-width: 480px) {
  .chart-header {
    .chart-title {
      h3 {
        font-size: 1.1rem;
      }

      .chart-description {
        font-size: 0.85rem;
      }
    }
  }

  .year-selector {
    .current-year {
      font-size: 1rem;
      min-width: 4rem;
    }

    .year-nav-btn {
      padding: 0.6rem 0.6rem;
    }
  }
}
