.triples-graph-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 12px;
  margin-top: 10px;
}

.triples-card {
  max-height: 320px;
  overflow-y: auto;
}

.triples-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.triples-card li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.triple-head {
  color: #fbbf24; /* amber */
  font-weight: 600;
}

.triple-rel {
  color: #e5e7eb;
}

.triple-tail {
  color: #38bdf8; /* cyan */
  font-weight: 600;
}

.graph-card {
  position: relative;
  min-height: 280px;
}

#graphSvg {
  width: 100%;
  height: 260px;
}

.edge-label {
  pointer-events: none;
}

.node-label {
  pointer-events: none;
}
/* Fancy hero-style heading for all demos */

.chat-header {
  margin-bottom: 10px;
}

.chat-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 4px 0 6px 0;

  /* gradient highlight */
  background: linear-gradient(90deg, #38bdf8, #4f46e5, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* subtle glow */
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.chat-header .subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: #9ca3af;
  max-width: 900px;
}

/* Small pill badge above the heading */

.demo-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #7dd3fc;
}

/* ===== Pink section headings & status text ===== */

/* "Input Text", "Extracted Triples", "Graph View" */
.text-panel h2,
.triples-card h3,
.graph-card h3 {
  color: #f472b6; /* pink */
}

/* "Found X triple(s)." status line when OK */
.status-ok {
  color: #f472b6; /* pink for success */
}

/* keep error/info colors if you set them before */

/* Layout: give more space to the graph column and stretch height */

.triples-graph-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;  /* narrower triples, wider graph */
  gap: 12px;
  margin-top: 10px;
  align-items: stretch;                /* make both cards take full height */
}

/* Make input and graph roughly same vertical space */

.text-panel textarea {
  min-height: 260px;   /* taller input box */
}

.graph-card {
  position: relative;
  min-height: 260px;   /* match input height visually */
}

/* Let the SVG fill the graph card */

#graphSvg {
  width: 100%;
  height: 100%;        /* use all available vertical space */
}
