/* Progress Badge Component */

.progress-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background-color: #6b6b6b;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  z-index: 0;
  transition: width 0.3s ease;
  opacity: 0.5;
}

.progress-badge-text,
.progress-badge-subtext {
  position: relative;
  z-index: 1;
}

.progress-badge-subtext {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Progress bar color classes - composable */
.rank-ready-progress {
  background-color: rgba(34, 197, 94, 0.7);
}

.rank-notice-progress {
  background-color: rgba(234, 179, 8, 0.7);
}

.rank-caution-progress {
  background-color: rgba(249, 115, 22, 0.7);
}

.rank-warning-progress {
  background-color: rgba(239, 68, 68, 0.7);
}

.rank-danger-progress {
  background-color: rgba(185, 28, 28, 0.7);
}

.rank-stop-progress {
  background-color: rgba(0, 0, 0, 0.7);
}

/* OKLCH support for better perceptual uniformity */
@supports (color: oklch(0 0 0)) {
  .rank-ready-progress {
    background-color: oklch(65% 0.22 145 / 0.7);
  }

  .rank-notice-progress {
    background-color: oklch(75% 0.15 95 / 0.7);
  }

  .rank-caution-progress {
    background-color: oklch(70% 0.18 50 / 0.7);
  }

  .rank-warning-progress {
    background-color: oklch(60% 0.22 25 / 0.7);
  }

  .rank-danger-progress {
    background-color: oklch(45% 0.18 25 / 0.7);
  }

  .rank-stop-progress {
    background-color: oklch(20% 0.02 0 / 0.7);
  }
}
