/* ==========================================================================
   KOMPONEN: ProgressBar — linear & ring
   ========================================================================== */
.c-progressbar {
  height: 6px;
  background: var(--ink-5);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.c-progressbar .pg-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--dur-slow) var(--ease);
}
.c-progressbar .pg-done {
  background: linear-gradient(90deg, var(--jade), var(--jade-light));
}
.c-progressbar .pg-learning {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.c-progressbar .pg-review {
  background: linear-gradient(90deg, var(--shu), var(--shu-light));
}
.c-progressbar .pg-new {
  background: linear-gradient(90deg, var(--indigo), var(--indigo-light));
}

.prog-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.prog-legend .prog-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.prog-legend .prog-dot.done {
  background: var(--jade-light);
}
.prog-legend .prog-dot.learning {
  background: var(--gold-light);
}
.prog-legend .prog-dot.review {
  background: var(--shu-light);
}
.prog-legend .prog-dot.new-item {
  background: var(--indigo-light);
}

/* Cincin progres (SVG) */
.progress-ring {
  width: 80px;
  height: 80px;
}
.progress-ring svg {
  width: 100%;
  height: 100%;
}
.progress-ring .ring-bg {
  fill: none;
  stroke: var(--ink-4);
  stroke-width: 5;
}
.progress-ring .ring-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset var(--dur-slow) var(--ease);
}
.progress-ring-label {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Panel level (dipakai profil/dashboard) */
.level-panel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4);
}
.level-panel .level-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--indigo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.level-panel .lv-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo-light);
}
.level-panel .lv-label {
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.level-panel .level-info {
  flex: 1;
  min-width: 180px;
}
.level-panel .level-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.level-panel .level-xp-bar {
  height: 8px;
  background: var(--ink-4);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}
.level-panel .level-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--indigo-light));
  border-radius: var(--radius-full);
}
.level-panel .level-xp-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
