/* main_chisquare_gof.css — Chi-Square Goodness-of-Fit Lab */

:root {
  --gof-primary: var(--primary, #2563eb);
  --gof-obs: #0284c7;
  --gof-exp: #94a3b8;
  --gof-sig: #10b981;
  --gof-driver: #f59e0b;
}

/* Category Table */
.gof-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.gof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.gof-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.gof-table td input[type="text"] {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.875rem;
}

.gof-table td input[type="number"] {
  width: 90px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: right;
}

.gof-table .num-cell {
  text-align: right;
  font-family: monospace;
  font-size: 0.925rem;
}

.gof-table .driver-cell {
  font-weight: 800;
  color: #d97706;
}

.gof-table tfoot td {
  font-weight: 800;
  background: #f8fafc;
  border-top: 2px solid #cbd5e1;
}

/* Action row for table */
.table-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

/* Barchart Container */
.gof-chart-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gof-svg-wrapper {
  width: 100%;
  height: 270px;
  position: relative;
}

.gof-svg {
  width: 100%;
  height: 100%;
}

/* Stat Cards */
.gof-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gof-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}

.gof-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gof-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.35rem 0 0.15rem 0;
  letter-spacing: -0.02em;
}

.gof-stat-subtext {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Verdict Banners */
.verdict-banner {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.verdict-banner.reject {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.verdict-banner.fail-to-reject {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.verdict-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.verdict-text h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.verdict-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}
