html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Inter', sans-serif;
  background: #f5f5f5;
  color: #333;
  overflow: hidden;
}

h6 {
  font-size: 12px;
}

line {
  stroke-width: 5px;
}

#graph-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}


#feedback {
  position: absolute;
  bottom: 80px;
  left: 20px;
  z-index: 10;
}

#panel {
  z-index: 10;
}


#download-icon {
  position: absolute;
  top: 50px;
  right: 50px;
  z-index: 5;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

#clear_selection_dataset {
  position: relative;
  display: none;
  margin-top: 12px;
  margin-left: 12px;
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  z-index: 1100;
}

#clear_selection_dataset:hover {
  background-color: #f570a5;
}

.dropdown {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 15;
}


.dropdown-menu {
  z-index: 1050;
}


#upload, #typeInfo {
  position: absolute;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 12px 16px;
  font-size: 14px;
  z-index: 10;
}

#upload {
  top: 20px;
  left: 20px;
}

#authButtons {
  position: absolute;
  bottom: 100px; /* boven #typeInfo */
  left: 20px;
  display: flex;
  gap: 8px;
}

#authButtons button {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

#authButtons button:hover, #feedback:hover {
  background-color: #138496;
}

#clear-selection-btn, #new-graph-btn {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

#clear-selection-btn{
  font-size: 10px; 
  padding: 4px 8px; 
  margin-right: 8px;
}

#new-graph-btn {
  font-size:10px; 
  padding:4px 8px;
}

#panel-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

#feedback {
  position: absolute;
  bottom: 135px;
  left: 20px;
  display: flex;
  gap: 8px;
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

#typeInfo {
  bottom: 20px;
  left: 20px;
  width: 270px;
}

#panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #fafafa;
  border-left: 1px solid #ccc;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -2px 0 6px rgba(0,0,0,0.05);
}

#panel h2 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 10px;
}

.tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: #333;
  pointer-events: none;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.link {
  stroke: #bbb;
  stroke-opacity: 0.5;
  stroke-width: 1.5px;
}

.link-click-area {
  fill: none;
  stroke: transparent;
  stroke-width: 20px;
  cursor: pointer;
}

.node {
  cursor: pointer;
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.3s ease;
}

.dim {
  opacity: 0.15;
}

line.highlight {
  stroke: #e74c3c !important;
  stroke-width: 5px;
}

circle.highlight {
  transform: scale(1.5);
}

textarea.feedback {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid #ccc;
  resize: none;
  background: #fafafa;
  color: #333;
}

textarea.feedback::placeholder {
  color: #aaa;
  font-style: italic;
}

#save-feedback {
  background: #0077cc;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#save-feedback:hover {
  background: #005fa3;
}

#zoom-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#zoom-controls button {
  padding: 6px 10px;
  font-size: 16px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

#zoom-controls button:hover {
  background: #ddd;
}