/* Progress Bar Component Styles */
.progress-bar-container {
  position: relative;
  margin: 20px 0;
}

.progress-bar {
  height: 20px;
  position: relative;
  border-radius: 12px;
  background-color: light-dark(#f3f4f6, #374151);
  overflow: visible;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  transition: width 0.3s ease;
  position: absolute;
  border-radius: 12px;
  z-index: 3;
  background-color: #059669;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.progress-bar-fill:hover .progress-tooltip {
  display: block;
}

.progress-marker {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.progress-marker:hover .progress-tooltip {
  display: block;
}

.progress-marker .marker-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid light-dark(white, var(--gray-800));
  position: relative;
}

.progress-marker.benchmark-marker .marker-dot {
  background: #475569;
}

.progress-marker.target-marker .marker-dot {
  background: #22c55e;
}

.progress-segment {
  position: absolute;
  height: 100%;
  top: 0;
  z-index: 1;
}

.progress-segment.target-segment {
  background-color: light-dark(#bbf7d0, rgba(34, 197, 94, 0.3));
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.progress-segment.stretch-segment {
  background-color: light-dark(#dbeafe, rgba(59, 130, 246, 0.3));
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.progress-segment.stretch-segment:hover .progress-tooltip {
  display: block;
  right: 0;
  left: auto;
  transform: none;
}

.progress-tooltip {
  display: none;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background-color: light-dark(white, #1e293b);
  border: 1px solid light-dark(#e5e7eb, #475569);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.progress-tooltip:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid light-dark(white, #1e293b);
}

.progress-bar-fill .progress-tooltip {
  left: 100%;
  transform: translateX(-100%);
}

.progress-bar-fill .progress-tooltip:after {
  left: 90%;
}

.progress-segment.stretch-segment .progress-tooltip:after {
  left: 90%;
}

.progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: light-dark(var(--slate-600), var(--slate-400));
  margin-top: 12px;
}

.progress-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-legend .legend-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.progress-legend .legend-indicator.current-color {
  background-color: #059669;
}

.progress-legend .legend-indicator.benchmark-color {
  background-color: #475569;
}

.progress-legend .legend-indicator.target-color {
  background-color: #22c55e;
}

.progress-legend .legend-indicator.stretch-color {
  background-color: #3b82f6;
}