/* === Graphs / Cytoscape & kontenery === */

#graphPanel { 
  position: sticky; 
  top: var(--global-header-h); 
}

#graphContainer {
  width: 100%;
  height: calc(100vh - 2em);
  border: 1px solid #aaa;
  background: #fff;
  overflow: auto;
}

#leftPanel {
  flex: 2;
  padding: 1em;
  min-width: 0;
  background: #ffffff; /* 👈 jasne tło (prawie białe z niebieskim tonem) */
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.03);
}

#graphContainer.highlight {
  box-shadow: 0 0 8px 3px rgba(0, 123, 255, 0.5);
  transition: box-shadow 0.3s ease;
}

/* Lokalne grafy struktur (sekcja Struktury) */
.structure-graph {
  margin-top: 1em;
  width: 100%;
  max-width: 100%;
  height: 300px;
  min-height: 260px;
  border: 1px solid #ccc;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}

/* Przycisk i dropdown do układów (global graph toolbar, jeśli masz) */
#showGlobalGraphBtn { cursor: pointer; }
#layoutSelector { max-width: 220px; }

#graphContainer.highlight {
  box-shadow: 0 0 8px 3px rgba(0, 123, 255, 0.5);
  transition: box-shadow 0.3s ease;
}