/* Chameleon - structural overrides (design.css provides theme) */
html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }
body { display: flex; flex-direction: column; margin-bottom: 0; }
main { flex: 1 0 auto; }

/* Focus ring uses design accent */
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Dashboard / Index page */
.dashboard-icon { font-size: 1.25rem; margin-right: 10px; color: var(--accent); }
.card-title { display: flex; align-items: center; margin-bottom: 0; }
.stats-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 10px;
  transition: border-color 0.2s;
}
.stats-card:hover { border-color: var(--border-active) !important; }
.stats-card .card-body { padding: 1.5rem; }
.stats-number { font-size: 1.75rem; font-weight: 600; }
.bg-light-gray { background: var(--bg-elevated) !important; }

/* Tree - align with design.css tree-row */
.tree-view { padding: 0.5rem 0; }
.tree-node .node-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-size: 0.84rem;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.tree-node .node-row:hover {
  background: rgba(99, 132, 255, 0.06);
}
.tree-node .node-row.node-selected,
.tree-node .node-row.selected {
  background: rgba(99, 132, 255, 0.1);
  border-left-color: var(--accent);
}
.tree-node .toggle-icon {
  width: 18px; flex-shrink: 0;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.tree-node .node-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-children { padding-left: 1.1rem; }
.tree-child-item { margin-top: 2px; }

/* Container for pages that need it */
.container { max-width: 100%; }

/* Bootstrap .text-muted uses a fixed gray; align with design tokens for contrast on dark UI */
.text-muted { color: var(--text-muted) !important; }
