/* Thought Garden Project */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  overflow: hidden;
}

#canvas {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

#viewport {
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}



.node:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.resize-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  bottom: 4px;
  right: 4px;
  cursor: nwse-resize;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  user-select: none;
}

#add-node {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 10px 16px;
  color: #fff;
  font-size: 16px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}









.node {
  position: absolute;
  min-width: 120px;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}



.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}


.color-picker {
  margin-left: auto;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  background: none;
}
.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}





.node-title {
  flex: 1;
  font-weight: bold;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}




.node-body {
  padding: 12px 16px;
  max-height: calc(100% - 38px);
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  outline: none;
}


.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 8px;
  height: 38px;
  background: inherit;
  backdrop-filter: inherit;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: move;
  position: sticky;
  top: 0;
  z-index: 10;
}
