/* Metric Group Cards */
.gpt-metric-group-card {
  margin-bottom: 40px;
  padding: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gpt-metric-group-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.gpt-metric-group-header {
  padding: 28px 32px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 2px solid #e5e7eb;
}

.gpt-metric-group-header h2 {
  margin: 0 0 6px 0;
  color: var(--gpt-primary-color, #667eea);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.gpt-group-description {
  color: #6b7280;
  margin: 0;
  font-size: 15px;
}

/* Chart Container */
.gpt-chart-container {
  padding: 32px;
  background: white;
  position: relative;
}

.gpt-chart {
  width: 100% !important;
  height: 400px !important;
}

/* Metrics Legend */
.gpt-metrics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 32px;
  background: #f9fafb;
  border-top: 2px solid #e5e7eb;
}

.gpt-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  flex: 1;
  min-width: 200px;
  transition: all 0.2s ease;
}

.gpt-legend-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gpt-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.gpt-legend-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  flex: 1;
}

.gpt-legend-value {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.gpt-legend-unit {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-left: 2px;
}
