/* assets/css/simulation.css - Interactive Lab Simulation Styles */

.simulator-canvas-container {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sim-canvas {
  display: block;
  width: 100%;
  height: 380px;
  cursor: grab;
}

.sim-canvas:active {
  cursor: grabbing;
}

.sim-control-panel {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sim-readout-badge {
  background: #000;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vernier-slider-control {
  width: 100%;
  accent-color: var(--primary);
}

/* Free fall drop tower styles */
.drop-tower {
  position: relative;
  height: 340px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.drop-pole {
  position: absolute;
  left: 35%;
  top: 20px;
  bottom: 40px;
  width: 14px;
  background: linear-gradient(90deg, #64748b, #cbd5e1, #475569);
  border-radius: 4px;
}

.drop-object {
  position: absolute;
  left: calc(35% - 13px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #0284c7 70%, #0369a1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
  transition: top 0.05s linear;
  z-index: 10;
}

.drop-ground-sensor {
  position: absolute;
  bottom: 20px;
  left: 20%;
  right: 20%;
  height: 20px;
  background: #1e293b;
  border-top: 3px solid #10b981;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #34d399;
  font-family: var(--font-mono);
}

/* Electric Circuit Simulator */
.circuit-board {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
}

.circuit-meter {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 16px;
  width: 160px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.meter-display {
  background: #000;
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 6px;
  border-radius: 6px;
  margin-top: 8px;
  border: 1px solid #10b98144;
}

/* Step-by-step Guided Experiment Navigator */
.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-bottom: 24px;
}

.step-item {
  flex: 1 1 calc(10% - 8px);
  min-width: 100px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.step-item:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.step-item.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}

.step-item.completed {
  border-color: #10b981;
  color: #34d399;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-item.active .step-number {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.step-item .small {
  color: #f1f5f9 !important;
  font-weight: 600;
}

.step-item.active .small {
  color: #ffffff !important;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .step-item {
    flex: 1 1 calc(20% - 8px);
  }
}

@media (max-width: 768px) {
  .step-item {
    flex: 1 1 calc(33.333% - 8px);
  }
}

@media (max-width: 480px) {
  .step-item {
    flex: 1 1 calc(50% - 8px);
  }
}
