/* === Metric Results Styles === */

.features-cards.section {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.hidden {
  display: none !important;
}

/* Feature Box Layout */
.feature-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-align: left;
  height: 100%;
}

.feature-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 8px 0;
}

.metric-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 6px;
  color: #fff;
}

.badge-good {
  background-color: #28a745;
}

.badge-warning {
  background-color: #ffc107;
  color: #000;
}

.badge-critical {
  background-color: #dc3545;
}

/* Progress Bar Styles */
.progress-track {
  background-color: #e5e5e5;
  border-radius: 999px;
  height: 10px;
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.5s ease;
}

/* Color Variants for Progress Fill */
.progress-fill.good {
  background-color: #28a745;
}

.progress-fill.warning {
  background-color: #ffc107;
}

.progress-fill.critical {
  background-color: #dc3545;
}

/* Explanation Toggle */
.explanation-toggle {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: 6px;
}

.explanation {
  font-size: 0.85rem;
  margin-top: 8px;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  color: #333;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .feature-box {
    text-align: center;
  }

  .metric-value {
    font-size: 1.5rem;
  }
}

/* Add subtle tint based on performance */
.metric-box.good {
  background-color: #e9f7ef; /* light green */
}

.metric-box.warning {
  background-color: #fffbea; /* light yellow */
}

.metric-box.critical {
  background-color: #fbeaea; /* light red */
}
