/* /ftf/app/_shared/sidebar.css — styles for the shared left-sidebar partial.
   Pages that include sidebar.php should also link this stylesheet. */
.ftf-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg-sidebar); border-right: 1px solid var(--border-subtle);
  padding: 20px 12px;
  display: flex; flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.ftf-sidebar .ftf-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 6px;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  text-decoration: none;
  cursor: pointer; transition: background 0.12s, color 0.12s;
}
.ftf-sidebar .ftf-nav-item:hover { background: var(--surface-tint-03); color: var(--text-body); }
.ftf-sidebar .ftf-nav-item.active {
  background: rgba(74,222,128,0.08); color: var(--active);
  box-shadow: inset 2px 0 0 var(--active);
}
.ftf-sidebar .ftf-nav-item.disabled { color: var(--text-subtle); cursor: not-allowed; }
.ftf-sidebar .ftf-nav-item.disabled:hover { background: transparent; color: var(--text-subtle); }
.ftf-sidebar .ftf-nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.ftf-sidebar .ftf-nav-arrow { margin-left: auto; color: var(--active); font-size: 14px; line-height: 1; }
.ftf-sidebar .ftf-nav-soon {
  margin-left: auto; padding: 2px 7px; border-radius: 4px;
  background: var(--surface-tint-04); color: var(--text-disabled);
  font-size: 9px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ftf-sidebar-divider { height: 1px; background: var(--border-subtle); margin: 16px 0; }
.ftf-market-status { padding: 0 12px; font-size: 11px; color: var(--text-muted-strong); }
.ftf-market-status .label { display: block; margin-bottom: 4px; color: var(--text-disabled); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.ftf-market-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-family: 'JetBrains Mono', monospace; }
.ftf-market-row .name { color: var(--text-muted); }
.ftf-market-row .val { color: var(--text-body); text-align: right; }
.ftf-market-row .chg { color: var(--active); font-size: 10px; display: block; }
.ftf-market-row .chg.down { color: var(--danger-market); }
.ftf-sb-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--active); margin-right: 6px; vertical-align: middle; }
.ftf-status-open { display: inline-block; padding: 1px 8px; background: rgba(74,222,128,0.1); color: var(--active); border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.05em; }
.ftf-sidebar-footer { margin-top: auto; padding: 16px 12px; font-size: 10px; color: var(--text-subtle); }
/* Theme toggle */
.ftf-sidebar-theme { margin: 12px 0 2px; }
.ftf-theme-toggle {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: 7px;
  background: var(--bg-panel); color: var(--text-body); font: inherit; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ftf-theme-toggle:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text-heading); }
.ftf-theme-toggle-icon {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--surface-tint-04); color: var(--warning-bright); flex-shrink: 0;
}
.ftf-theme-toggle-icon svg { width: 14px; height: 14px; }
.ftf-theme-icon-sun, .ftf-theme-toggle.is-light .ftf-theme-icon-moon { display: none; }
.ftf-theme-toggle.is-light .ftf-theme-icon-sun { display: block; }
.ftf-theme-toggle-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; line-height: 1.15; }
.ftf-theme-toggle-kicker { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-disabled); }
.ftf-theme-toggle-value { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-body); }
.ftf-theme-toggle-switch {
  width: 34px; height: 18px; display: inline-flex; align-items: center; padding: 2px; box-sizing: border-box;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-tint-04); flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.ftf-theme-toggle-switch span {
  width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted); transform: translateX(0);
  transition: transform 0.18s, background 0.15s;
}
.ftf-theme-toggle.is-light .ftf-theme-toggle-switch { background: var(--accent-muted-15); border-color: var(--accent-muted-35); }
.ftf-theme-toggle.is-light .ftf-theme-toggle-switch span { transform: translateX(16px); background: var(--accent); }
