/* main_ci_simulator.css — Confidence Interval & Repeated Sampling Simulator */

:root {
  --ci-primary: var(--primary, #2563eb);
  --ci-hit: #10b981;
  --ci-miss: #ef4444;
  --ci-param: #f59e0b;
}

/* Scoreboard Card */
.scoreboard-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.scoreboard-item {
  display: flex;
  flex-direction: column;
}

.scoreboard-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.scoreboard-val {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.val-hit { color: #34d399; }
.val-miss { color: #f87171; }
.val-rate { color: #38bdf8; }

.scoreboard-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.35rem;
}

/* Population Shape Selector */
.pop-shape-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pop-shape-btn {
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pop-shape-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.pop-shape-btn.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--ci-primary);
}

.pop-shape-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pop-shape-sub {
  font-size: 0.75rem;
  color: #64748b;
}

/* Sample Drawing Controls */
.sample-action-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-sample {
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sample-primary {
  background: var(--ci-primary);
  color: #ffffff;
}

.btn-sample-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-sample-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.btn-sample-secondary:hover {
  background: #f1f5f9;
}

.btn-reset {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
}

.btn-reset:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* SVG Interval Display Canvas */
.intervals-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);
}

.intervals-scroll-wrapper {
  width: 100%;
  height: 380px;
  overflow-y: auto;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #fafafa;
}

.intervals-svg {
  width: 100%;
  display: block;
}

/* Frequentist Misconception Callout */
.misconception-callout {
  background: #eff6ff;
  border-left: 4px solid var(--ci-primary);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #1e3a8a;
  line-height: 1.55;
}

.misconception-callout strong {
  color: #172554;
}
