body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

/* Score badges */
.score-badge {
  padding: 4px 8px;
  border-radius: 4px;
  color: #000;
}

.bg-green {
  background-color: #5dc094;
}

.bg-yellow {
  background-color: #e7ad2a;
}

/* Score Breakdown */
.score-breakdown {
  max-width: 100%;
  margin: 20px auto;
}

/* Bars */
.bar-container {
  display: flex;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
}

.bar-red { background: #e41f26; width: 30%; }
.bar-yellow { background: #f6c33b; width: 40%; }
.bar-green { background: #2f7f3b; width: 30%; }

/* Scale */
.scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
}

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.legend-item {
  display: flex;
  gap: 10px;
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .legend-item {
    flex: 1;
  }

  .scale {
    font-size: 14px;
  }
}

.legend-color {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.red { background-color: #e8252c; }
.yellow { background-color: #f7c93e; }
.green { background-color: #2f7d32; }

.legend-title {
  font-size: 18px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .legend-title {
    font-size: 20px;
  }
}

.legend-label {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}

/* Stack legend items under the bar on mobile */
@media (max-width: 767.98px) {
  .legend {
    flex-direction: column;
    align-items: flex-start;
  }

  .legend-item {
    width: 100%;
  }
}
