/* ==============================================
   DEMO - Panel sizes & demo-specific elements
   Only styles unique to this demo page.
   ============================================== */

/* Panel initial sizes */
#demo-sidebar {
  --panel-basis: 260px;
}

#demo-console {
  min-width: 120px;
}

#demo-bottom {
  --panel-basis: 180px;
  min-height: 120px;
}

#demo-workspace {
  min-width: 300px;
}

#demo-clipboard {
  --panel-basis: 200px;
  min-width: 120px;
}

#demo-inspector {
  --panel-basis: 280px;
}

/* Demo panel structure */
demo-panel {
  background: var(--bg-raised);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

demo-panel-header {
  align-items: center;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  color: var(--text-base);
  display: flex;
  flex: 0 0 32px;
  padding: 0 var(--pad);
}

demo-panel-title {
  font-weight: 600;
}

demo-panel-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: var(--pad);
}

/* Demo content elements */
demo-code {
  color: var(--text-muted);
  display: block;
  flex-shrink: 0;
  font-family: ui-monospace, 'SF Mono', Monaco, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

demo-editor-grid {
  display: grid;
  gap: var(--pad);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--pad);
}

demo-card {
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}

demo-card-title {
  color: var(--text-bright);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--pad-xs);
}

demo-help {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  margin-top: var(--pad);
}

/* Demo-only styles end here.
 * Toggle button states are now in panel-layout.css
 */