/* styles.css */

/* Make html/body fill the iframe (or viewport) fully */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Graph container must always cover its parent */
#graph3d {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}

/* Force the WebGL <canvas> to match #graph3d exactly */
#graph3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Sidebar sits beneath the navbar */
#sidebar {
  position: absolute;
  top: 56px;    /* height of navbar */
  right: 0;
  width: 340px;
  bottom: 0;
  overflow-y: auto;
  background: rgba(255,255,255,0.8);
  z-index: 1000;
}

/* Legend dots */
.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: text-bottom;
}
.bg-purple { background-color: purple; }
.bg-pink   { background-color: pink; }
.bg-orange { background-color: orange; }
.bg-green  { background-color: green; }
.bg-red    { background-color: red; }

/* Ensure role description scrolls if too long */
#role-desc {
  max-height: 80px;
  overflow-y: auto;
}

/* Details panel scroll area */
#details {
  max-height: 200px;
  overflow-y: auto;
}

.navbar {
  z-index: 1100;
  position: relative;
}