/* Simulator-only additions on top of the live page's /static/style.css. */

.controls input[type="date"] { width: 132px; }
.controls #atm { width: 88px; }

/* Row 2: playback */
.playbar {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.icon-btn.play {
  width: auto;
  gap: 6px;
  padding: 0 12px 0 10px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
}

.icon-btn.play:disabled { background: var(--surface-2); border-color: var(--border); color: var(--text-3); }
.icon-btn.play .i-pause { display: none; }
.icon-btn.play[aria-pressed="true"] .i-play { display: none; }
.icon-btn.play[aria-pressed="true"] .i-pause { display: inline; }
.icon-btn:disabled { opacity: 0.45; cursor: default; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; }

.timeline {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

/* Time left until the next simulated minute is revealed */
.next-minute {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
}

.next-minute i {
  display: block;
  height: 100%;
  width: 0;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 128px;
}

.sim-time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.sim-count {
  color: var(--text-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sim-empty {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  color: var(--text-2);
}

.banner.ok { background: color-mix(in srgb, var(--up) 12%, var(--surface)); }

@media (max-width: 1366px) {
  .controls input[type="date"] { width: 124px; }
}

/* ---------------- Simulated trades (bottom of each chart) ---------------- */

.trade-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.trade-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trade-pnl {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trade-pnl:empty { display: none; }
.trade-pnl.up { color: var(--up); }
.trade-pnl.down { color: var(--down); }
.trade-pnl .pts { margin-left: 6px; font-size: 12px; font-weight: 500; }

.trade-detail {
  color: var(--text-3);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-actions { display: flex; gap: 6px; flex: none; }
.trade-actions .btn { height: 30px; font-weight: 600; }

.trade-sell {
  background: var(--o);
  border-color: var(--o);
  color: #fff;
}

.trade-sell:hover { filter: brightness(1.08); border-color: var(--o); }
.trade-full { color: var(--text-1); }


/* Alert toasts stack above the trade bars, so they never hide a P&L or the exit buttons. */
.toasts { bottom: 76px; }
