/* ════════════════════════════════════════════════════════════════
   Simulation Workbench — Layout & CSS Foundation
   ════════════════════════════════════════════════════════════════
   Unified Strategy Builder workspace (no subnav tabs).
   The React SPA handles all workflow: strategy selection, params,
   preview, backtest, results, and playbook saving.
   ════════════════════════════════════════════════════════════════ */

/* ── Page layout ───────────────────────────────── */
.simulation-page {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.simulation-header {
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Strategy Builder workspace — flex fills remaining height */
.sim-workspace {
  flex: 1;
  min-height: 0;
}

/* ── Page header ──────────────────────────────────────── */
.sim-page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #E5E7EB);
}

/* ── Spinner for AI loading state ─────────────────────── */
.sim-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #334155;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: sim-spin 0.8s linear infinite;
}

@keyframes sim-spin {
  to { transform: rotate(360deg); }
}
