.vertex-dot.selected {
  stroke: #000000 !important;
  stroke-width: 3 !important;
  filter: drop-shadow(0px 0px 4px #ffffffcc);
}
/* Vertex overlay dots and hover area */
.vertex-overlay-svg {
  pointer-events: none;
}
.vertex-dot {
  stroke-width: 0px !important;
  pointer-events: none;
  opacity: 0.85;
  transition: r 0.18s cubic-bezier(0.4,0,0.2,1), fill 0.18s cubic-bezier(0.4,0,0.2,1);
}
.vertex-dot.hovered {
  opacity: 1;
  fill: #fff;
}
.vertex-hover-area {
  pointer-events: all;
  fill: transparent;
}

/* WebGL container and canvas */
.webgl-container {
  width: 100%;
  height: 100%;
}

.webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* App root container */
.app-root {
  background-color: #333;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* App header */

/* App main area (now full height) */
.app-main,
.app-main-full {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Canvas container */
.app-canvas-container {
  width: 100%;
  height: 100%;
}
/* Sidebar expanded inner container */
.sidebar-expanded-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 24px;
}

/* Sidebar collapsed bar container */
.sidebar-collapsed-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar collapsed bar inner */
.sidebar-collapsed-bar-inner {
  width: 6px;
  height: 36px;
  border-radius: 3px;
  background: #444;
}
/* main.css (formerly sidebar.css) */

.sidebar {
  width: 40vw;
  height: 100%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  flex-direction: column;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  overflow: hidden;
}

.sidebar-collapsed {
  width: 36px;
  align-items: center;
  justify-content: center;
}

.sidebar-square {
  width: 180px;
  height: auto;
  background: #444;
  border-radius: 6px;
  margin-left: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
}

.sidebar-square-text {
  color: #eee;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  height: 50%;
  background: transparent;
  transition-property: background, border-radius;
  transition-duration: var(--sidebar-fade-duration, 1.2s), var(--sidebar-fade-duration, 1.2s);
  transition-timing-function: var(--sidebar-fade-ease, cubic-bezier(0.4,0,0.2,1)), var(--sidebar-fade-ease, cubic-bezier(0.4,0,0.2,1));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  padding: 10px;
}

.sidebar-square-text:hover {
  background: #000;
    --sidebar-fade-duration: 0.28s;
    --sidebar-fade-ease: cubic-bezier(0.7,0,1,1);
}

.sidebar-square-text:first-child:hover {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.sidebar-square-text:last-child:hover {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.sidebar-square-text:not(:hover) {
    --sidebar-fade-duration: 0.8s;
    --sidebar-fade-ease: cubic-bezier(0.4,0,0.2,1);
}

.sidebar-square-text {
  color: #eee;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  padding: 4px 0;
}

.sidebar-content {
  width: 100%;
  padding: 24px 16px;
  display: block;
}

.sidebar-title {
  margin: 0;
  font-size: 1.2rem;
  margin-left: 24px;
}

.sidebar-button {
  margin-left: 24px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
}

/* Ensures button aligns with the square */
.sidebar-button-aligned {
  margin-top: 0;
}
