/* LearnDash Half-Donut Chart — V1 look applied to V2 too */
.ld-halfdonut-chart-container,
.ld-halfdonut-chart-container-v2 {
  max-width: 400px;
  margin: 0 auto 30px;
  padding: 20px;
  text-align: center;
}

.ld-halfdonut-chart-wrapper,
.ld-halfdonut-chart-wrapper-v2 {
  position: relative;
  height: 200px; /* même hauteur visuelle que V1 */
  margin-bottom: 20px;
  width: 100%;
}

.ld-halfdonut-canvas,
.ld-halfdonut-canvas-v2 {
  width: 100% !important;
  height: 100% !important;
  display: block;
  box-sizing: border-box;
}

.ld-halfdonut-score-arc,
.ld-halfdonut-score-arc-v2 {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  font-weight: 700;
  color: #000;
  z-index: 10;
}

.ld-halfdonut-attempts,
.ld-halfdonut-attempts-v2 {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: #777;
  z-index: 10;
}

.ld-halfdonut-test-name,
.ld-halfdonut-test-name-v2 {
  font-size: 22px;
  margin: 0;
  color: #000;
  text-align: center;
}

.ld-chart-debug,
.ld-chart-debug-v2 {
  margin-top: 16px;
}
.ld-chart-debug pre,
.ld-chart-debug-v2 pre {
  background: #fff;
  padding: 10px;
  border: 1px solid #e5e5e5;
  overflow: auto;
  max-height: 200px;
  font-size: 12px;
  line-height: 1.4;
}

.ld-halfdonut-v2-error,
.ld-halfdonut-v2-nodata,
.error {
  color: #d63638;
  padding: 10px;
  background-color: #ffefef;
  border-left: 4px solid #d63638;
  margin: 10px 0;
}
