/* ==========================================================================
   CHILD PATHSHALA - INTERACTIVE STEM SIMULATORS STUDIO ENGINE
   Theme: High-Tech Lab Console, Decision Matrix, Dynamic Impact Gauges
   ========================================================================== */

:root {
  --sm-bg: #070e17;
  --sm-panel: #0d1829;
  --sm-border: #1e3250;
  --sm-cyan: #06b6d4;
  --sm-neon: #00f0ff;
  --sm-gold: #f59e0b;
  --sm-green: #10b981;
  --sm-rose: #f43f5e;
  --sm-purple: #8b5cf6;
}

.sm-wrapper {
  background: radial-gradient(circle at 50% 15%, #0f2744 0%, #070e17 75%);
  border-radius: 26px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Lab Console Header & Gauges */
.sm-console-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-gauge-card {
  background: rgba(13, 24, 41, 0.85);
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sm-gauge-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.sm-gauge-data {
  display: flex;
  flex-direction: column;
}

.sm-gauge-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.sm-gauge-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.sm-gauge-val.capital { color: var(--sm-gold); }
.sm-gauge-val.impact { color: var(--sm-cyan); }
.sm-gauge-val.score { color: #4ade80; }

/* Scenario Card */
.sm-scenario-card {
  background: linear-gradient(180deg, rgba(13, 24, 41, 0.95) 0%, rgba(7, 14, 23, 0.95) 100%);
  border: 1px solid var(--sm-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin-bottom: 1.25rem;
  position: relative;
}

.sm-scenario-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sm-cyan);
  margin-bottom: 0.75rem;
}

.sm-scenario-title {
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

/* Choices Grid */
.sm-choices-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sm-choice-btn {
  background: linear-gradient(180deg, #132238 0%, #0d1829 100%);
  border: 2px solid #1e3250;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sm-choice-btn:hover:not(:disabled) {
  border-color: var(--sm-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
}

.sm-choice-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.sm-choice-btn.optimal {
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.sm-choice-btn.moderate {
  background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.sm-choice-btn.poor {
  background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Consequence Readout Box */
.sm-feedback-box {
  background: rgba(13, 24, 41, 0.95);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  animation: smSlideUp 0.35s ease;
}

@keyframes smSlideUp {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.sm-feedback-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}

.sm-feedback-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 1rem;
}

/* Final Evaluation Summary */
.sm-eval-wrap {
  text-align: center;
  padding: 2rem 1rem;
}

.sm-eval-icon {
  font-size: 4rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}
