/* Results Page Styles */
.results-page {
  min-height: 100vh;
  background: #fafafa;
  padding: 40px 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.results-header {
  text-align: center;
  margin-bottom: 60px;
}

.results-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 16px;
}

.results-subtitle {
  font-size: 1.2rem;
  color: #718096;
  margin: 0 auto;
  line-height: 1.6;
}

/* Metrics Explanation */
.metrics-explanation {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.metrics-explanation h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.metric-symbol {
  background: #065f46;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
}

.metric-description h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.metric-description p {
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
  margin: 0;
}

/* Controls */
.results-controls {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-group label {
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
}

.control-select {
  padding: 8px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.control-select:focus {
  outline: none;
  border-color: #065f46;
}

/* Performance Section */
.performance-section {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.performance-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.performance-table-container {
  overflow-x: auto;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.performance-table th {
  background: #f8fafc;
  padding: 16px 12px;
  text-align: left;
  font-weight: 700;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
}

.performance-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.performance-table tbody tr:hover {
  background: #f8fafc;
}

.top-performer {
  background: #f0fdf4 !important;
}

.top-performer:hover {
  background: #ecfdf5 !important;
}

.model-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-name {
  font-weight: 600;
  color: #2d3748;
}

.rank-badge {
  background: #065f46;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.strategy-tag {
  background: #e2e8f0;
  color: #4a5568;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.metric-cell {
  position: relative;
}

.metric-value {
  font-weight: 700;
  color: #2d3748;
  display: block;
  margin-bottom: 8px;
}

.metric-bar {
  width: 100px;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.metric-progress {
  height: 100%;
  background: #065f46;
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* Domain Breakdown */
.domain-breakdown {
  margin-bottom: 48px;
}

.domain-breakdown h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.domain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.domain-performance-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.domain-performance-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 24px;
  text-align: center;
  text-transform: capitalize;
}

.domain-models {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-model-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.model-name-small {
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
}

.domain-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-metric {
  font-weight: 700;
  color: #065f46;
  font-size: 14px;
  min-width: 50px;
  text-align: right;
}

.domain-bar {
  width: 80px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.domain-progress {
  height: 100%;
  background: #065f46;
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* Insights Section */
.insights-section {
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.insights-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.insight-card {
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.insight-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.insight-card p {
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

/* Loading Section */
.loading-section {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

/* Detailed Analysis Section */
.detailed-analysis-section {
  margin-top: 3rem;
}

.action-success-section {
  margin-bottom: 2rem;
  position: relative;
}

.action-success-section::after {
  content: "← Scroll horizontally to view all data →";
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  font-style: italic;
}

.action-success-section h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.action-success-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.action-success-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.875rem;
  table-layout: auto;
}

.action-success-table th {
  background: #f9fafb;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
  width: auto;
}

.action-success-table th:first-child {
  width: 200px;
  min-width: 200px;
}

.action-success-table th:nth-child(2) {
  width: 100px;
  min-width: 100px;
}

.action-success-table th.model-column {
  text-align: center;
  width: 150px;
  min-width: 150px;
}

.action-success-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.action-name {
  font-weight: 500;
  color: #1f2937;
  text-transform: capitalize;
  min-width: 150px;
}

.frequency-cell {
  color: #6b7280;
  font-weight: 500;
  text-align: center;
}

.success-rate-cell {
  text-align: center;
  min-width: 120px;
}

.success-rate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.success-rate-value {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.success-rate-bar {
  width: 80px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.success-rate-progress {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Cost Analysis Section */
.cost-section {
  margin-top: 3rem;
}

.cost-analysis-section {
  position: relative;
}

.cost-analysis-section::after {
  content: "← Scroll horizontally if needed →";
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  font-style: italic;
}

.cost-analysis-section h3 {
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.cost-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.cost-table-container {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.cost-table-container h4 {
  background: #f9fafb;
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
}

.cost-table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  white-space: nowrap;
}

.cost-table th {
  background: #f9fafb;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.cost-table th:nth-child(2),
.cost-table th:nth-child(3),
.cost-table th:nth-child(4) {
  text-align: right;
}

.cost-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.cost-table td:nth-child(2),
.cost-table td:nth-child(3),
.cost-table td:nth-child(4) {
  text-align: right;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
}

.cost-table .total-cost {
  font-weight: 600;
  color: #1f2937;
}

.cost-table tr:hover {
  background: #f9fafb;
}

.cost-table tr:last-child td {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .results-page {
    padding: 20px 0;
  }
  
  .results-header h1 {
    font-size: 2.5rem;
  }
  
  .metrics-explanation,
  .performance-section,
  .insights-section {
    padding: 24px;
    margin-bottom: 24px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .results-controls {
    flex-direction: column;
    gap: 16px;
  }
  
  .performance-table {
    font-size: 12px;
  }
  
  .performance-table th,
  .performance-table td {
    padding: 8px 6px;
  }
  
  .domain-cards {
    grid-template-columns: 1fr;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* Container styling - removed max-width to allow full page width */
.container {
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
    max-width: 100%;
  }
  
  .results-header h1 {
    font-size: 2rem;
  }
  
  .metrics-explanation h2,
  .performance-section h2,
  .domain-breakdown h2,
  .insights-section h2 {
    font-size: 1.5rem;
  }
}

.results-subtitle {
  font-size: 1.375rem;
}

.performance-table {
  font-size: 16px;
}

.performance-table th,
.performance-table td {
  padding: 20px 16px;
}

.domain-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Responsive design for action success tables */
@media (max-width: 1024px) {
  .action-success-table-container {
    overflow-x: auto;
  }
  
  .action-success-table {
    min-width: 800px;
  }
  
  .cost-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .action-success-table th,
  .action-success-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .success-rate-bar {
    width: 60px;
  }
  
  .cost-table th,
  .cost-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Control Mode Analysis Styles */
.control-modes-container {
  margin-top: 2rem;
}

.control-mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.control-mode-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.control-mode-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}

.control-mode-card p {
  color: #718096;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.mode-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mode-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.mode-metric .model-name {
  font-weight: 600;
  color: #2d3748;
}

.mode-metric .metric-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: #065f46;
}

.improvement {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 600;
  background: #ecfdf5;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* Task Complexity Analysis Styles */
.complexity-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.complexity-section {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
}

.complexity-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1.5rem;
  text-align: center;
}

.complexity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.complexity-table th,
.complexity-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.complexity-table th {
  background: white;
  font-weight: 600;
  color: #374151;
}

.issue-name {
  font-weight: 600;
  color: #2d3748;
}

.difficulty-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-badge.easy {
  background: #dcfce7;
  color: #166534;
}

.difficulty-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-badge.hard {
  background: #fee2e2;
  color: #991b1b;
}

.performance-insight {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #065f46;
}

.performance-insight p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.performance-insight ul {
  color: #4a5568;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.performance-insight li {
  margin-bottom: 0.5rem;
}

/* Domain Statistics Styles */
.domain-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 100%;
}

.domain-stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.domain-stat-card.telecom-highlight {
  border-color: #065f46;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.domain-stat-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1.5rem;
  text-align: center;
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row span:first-child {
  font-weight: 600;
  color: #374151;
  min-width: 100px;
}

.stat-row span:last-child {
  color: #6b7280;
  text-align: right;
  flex: 1;
}

/* User Simulator Quality Styles */
.simulator-quality-container {
  margin-top: 2rem;
}

.simulator-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.domain-name {
  font-weight: 600;
  color: #2d3748;
  text-transform: capitalize;
}

.quality-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.quality-badge.excellent {
  background: #dcfce7;
  color: #166534;
}

.quality-badge.good {
  background: #dbeafe;
  color: #1e40af;
}

.quality-badge.moderate {
  background: #fef3c7;
  color: #92400e;
}

/* Responsive adjustments for new sections */
@media (max-width: 1200px) {
  .action-success-table {
    min-width: 700px;
  }
}

@media (max-width: 1024px) {
  .complexity-analysis {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .control-mode-cards {
    grid-template-columns: 1fr;
  }
  
  .domain-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .simulator-insights {
    grid-template-columns: 1fr;
  }
  
  .action-success-table {
    min-width: 600px;
  }
}

@media (max-width: 768px) {
  .control-mode-card,
  .domain-stat-card,
  .complexity-section {
    padding: 1.5rem;
  }
  
  .complexity-table th,
  .complexity-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .mode-metric {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .stat-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .stat-row span:last-child {
    text-align: left;
  }
}

/* Reliability Leaderboard Styles */
.leaderboard-container {
  min-height: 100vh;
  background: #fafafa;
  padding: 40px 0;
}

.leaderboard-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a202c;
  text-align: center;
  margin-bottom: 16px;
}

.leaderboard-subtitle {
  font-size: 1.2rem;
  color: #718096;
  text-align: center;
  margin: 0 auto 48px auto;
  line-height: 1.6;
}

/* Reliability Visualization */
.reliability-visualization {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.reliability-visualization h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 16px;
  text-align: center;
}

.chart-description {
  font-size: 1.1rem;
  color: #718096;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
}

.pass-k-chart-container {
  position: relative;
  margin: 32px auto;
  height: 500px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-controls {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.chart-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  padding: 8px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}

.chart-controls label:hover {
  background: #e2e8f0;
  border-color: #065f46;
}

.chart-controls input[type="checkbox"] {
  accent-color: #065f46;
  transform: scale(1.2);
}

/* Reliability Metrics Table */
.reliability-metrics {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.reliability-metrics h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.metrics-table-container {
  overflow-x: auto;
  border-radius: 12px;
}

.reliability-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 1050px;
}

.reliability-table th {
  background: #f8fafc;
  padding: 20px 16px;
  text-align: center;
  font-weight: 700;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.reliability-table th:first-child {
  width: 40px;
  text-align: center;
  padding: 20px 6px;
}

.reliability-table th:nth-child(2) {
  width: 200px;
  text-align: center;
}

.reliability-table th:nth-child(3) {
  width: 150px;
  text-align: left;
}

.reliability-table th:nth-child(n+4):nth-child(-n+7) {
  width: 120px;
  text-align: center;
}

.reliability-table td {
  padding: 20px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.reliability-table td:first-child {
  text-align: center;
  padding: 20px 6px;
}

.model-row {
  transition: background-color 0.2s ease;
}

.model-row:hover {
  background: #f8fafc;
}

.model-row.top-performer {
  background: #f0fdf4;
}

.model-row.top-performer:hover {
  background: #ecfdf5;
}

.model-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.model-info .model-name {
  font-weight: 700;
  color: #2d3748;
  font-size: 16px;
}

.model-info .model-org {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
}

.metric-cell {
  text-align: center;
}

.metric-value {
  font-weight: 700;
  color: #2d3748;
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.metric-bar {
  width: 80px;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.metric-progress {
  height: 100%;
  background: linear-gradient(90deg, #065f46 0%, #059669 100%);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.reliability-score {
  text-align: center;
}

.score-value {
  font-weight: 700;
  color: #2d3748;
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.score-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
}

.score-label {
  background: #e2e8f0;
  color: #4a5568;
}

.reliability-score .score-label {
  background: #f0fdf4;
  color: #065f46;
}

.consistency-rating {
  text-align: center;
}

.rating {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating.excellent {
  background: #dcfce7;
  color: #166534;
}

.rating.good {
  background: #dbeafe;
  color: #1e40af;
}

.rating.moderate {
  background: #fef3c7;
  color: #92400e;
}

.rating.poor {
  background: #fee2e2;
  color: #991b1b;
}

/* Reliability Insights */
.reliability-insights {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.reliability-insights h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.insight-card {
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.insight-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.insight-card p {
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

/* Submission Info */
.submission-info {
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.submission-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 16px;
}

.submission-info p {
  font-size: 1.1rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
}

.submission-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn-primary {
  background: #065f46;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
}

.btn-secondary {
  background: white;
  color: #065f46;
  border: 2px solid #065f46;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: #065f46;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
}

/* Responsive Design for Reliability Leaderboard */
@media (max-width: 1024px) {
  .pass-k-chart-container {
    height: 400px;
    padding: 16px;
  }
  
  .chart-controls {
    gap: 16px;
  }
  
  .reliability-table {
    min-width: 800px;
  }
  
  /* New responsive styles */
  .contributions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
  }
  
  .issue-performance-grid {
    grid-template-columns: 1fr;
  }
  
  .persona-cards {
    grid-template-columns: 1fr;
  }
  
  .performance-insights,
  .persona-insights,
  .ablation-insights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .leaderboard-title {
    font-size: 2.5rem;
  }
  
  .leaderboard-subtitle {
    font-size: 1rem;
  }
  
  .reliability-visualization,
  .reliability-metrics,
  .reliability-insights,
  .submission-info {
    padding: 24px;
    margin-bottom: 24px;
  }
  
  .pass-k-chart-container {
    height: 300px;
    padding: 12px;
  }
  
  .chart-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .chart-controls label {
    width: 200px;
    justify-content: center;
  }
  
  .reliability-table th,
  .reliability-table td {
    padding: 12px 8px;
    font-size: 12px;
  }
  
  .model-info .model-name {
    font-size: 14px;
  }
  
  .metric-value {
    font-size: 13px;
  }
  
  .metric-bar {
    width: 60px;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .submission-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 200px;
    text-align: center;
  }
  
  /* New responsive styles */
  .contributions-section,
  .cross-domain-section,
  .issue-performance-section,
  .persona-analysis-section {
    padding: 24px;
    margin-bottom: 24px;
  }
  
  .contributions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contribution-card {
    padding: 1.5rem;
  }
  
  .contribution-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    top: -10px;
    left: 20px;
  }
  
  .issue-type-card,
  .persona-card {
    padding: 1.5rem;
  }
  
  .issue-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .model-perf-item,
  .persona-metric {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .performance-indicator {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

@media (max-width: 480px) {
  .reliability-visualization h3,
  .reliability-metrics h3,
  .reliability-insights h3 {
    font-size: 1.5rem;
  }
  
  .chart-description {
    font-size: 1rem;
  }
  
  .reliability-table {
    min-width: 600px;
  }
  
  /* New responsive styles */
  .contributions-section h2,
  .cross-domain-section h2,
  .issue-performance-section h2,
  .persona-analysis-section h2 {
    font-size: 1.5rem;
  }
  
  .contribution-card h3,
  .issue-type-card h3,
  .persona-card h3 {
    font-size: 1.125rem;
  }
  
  .contribution-card p,
  .issue-description,
  .persona-description p {
    font-size: 0.8rem;
  }
  
  .stat-value {
    font-size: 1.125rem;
  }
  
  .model-perf-item .model-name,
  .persona-metric .model-name {
    font-size: 0.8rem;
  }
  
  .perf-value,
  .persona-metric .metric-value {
    font-size: 0.9rem;
  }
}

/* Key Contributions Section */
.contributions-section {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contributions-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.contributions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 2rem;
}

.contribution-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.contribution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #065f46;
}

.contribution-number {
  position: absolute;
  top: -12px;
  left: 24px;
  background: #065f46;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
}

.contribution-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin: 1rem 0 1rem 0;
}

.contribution-card p {
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

/* Cross-Domain Performance Section */
.cross-domain-section {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cross-domain-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.domain-performance-container {
  margin-top: 2rem;
}

.performance-comparison-table {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.performance-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.drop-metric {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

/* Issue Type Performance Section */
.issue-performance-section {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.issue-performance-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.issue-performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.issue-type-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.issue-type-card.easy {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.issue-type-card.medium {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 100%);
}

.issue-type-card.hard {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #f8fafc 100%);
}

.issue-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.issue-type-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
  text-align: center;
}

.issue-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
}

.model-performance {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.model-perf-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.model-perf-item .model-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.perf-value {
  font-weight: 700;
  color: #065f46;
  font-size: 1rem;
}

.issue-description {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.875rem;
  margin: 0;
  text-align: center;
}

/* User Persona Analysis Section */
.persona-analysis-section {
  background: white;
  padding: 48px;
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.persona-analysis-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 32px;
  text-align: center;
}

.persona-performance-container {
  margin-top: 2rem;
}

.persona-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.persona-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.persona-card.easy-persona {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.persona-card.none-persona {
  border-color: #6b7280;
  background: linear-gradient(135deg, #f9fafb 0%, #f8fafc 100%);
}

.persona-card.hard-persona {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #f8fafc 100%);
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.persona-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
  text-align: center;
}

.persona-description {
  margin-bottom: 1.5rem;
  text-align: center;
}

.persona-description p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.persona-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.persona-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.persona-metric .model-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.persona-metric .metric-value {
  font-weight: 700;
  color: #065f46;
  font-size: 1rem;
}

.performance-indicator {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.performance-indicator.good {
  background: #dcfce7;
  color: #166534;
}

.performance-indicator.moderate {
  background: #fef3c7;
  color: #92400e;
}

.performance-indicator.poor {
  background: #fee2e2;
  color: #991b1b;
}

.persona-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Ablation Insights */
.ablation-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}