/* Force dark mode as default - Override original body styles */
body {
  background-color: #1a1a1a !important; /* Dark background instead of #ffffff */
  color: #ffffff !important; /* Light text */
  font-size: 14px;
  font-family: "Helvetica Neue", Helvetica;
  transition: background-color 0.3s, color 0.3s;
}

#body {
  margin: 0 auto;
  position: relative;
}

#header {
  font-size: 40px;
  font-weight: bold;
  top: 20px;
  text-align: center;
  color: #ffffff !important; /* Ensure header text is white */
}

/* Fixed dark mode class (was .dark-Mode, now .dark-mode) and enhanced */
.dark-mode {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.dark-mode .node text {
  fill: #ffffff !important;
}

.dark-mode .legend {
  color: #ffffff !important;
}

.dark-mode path.link {
  stroke: #666666 !important; /* Lighter stroke for better visibility */
}

/* Override any light mode styles - force dark mode */
.light-mode, body:not(.dark-mode) {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.legend {
  position: absolute;
  top: 0px;
  right: 0;
  width: 330px;
  font-size: 11px;
  color: #ffffff !important; /* Changed from #000 to #ffffff for dark mode */
}

.node {
  cursor: pointer;
}

.node circle {
  cursor: pointer;
  fill: #2a2a2a !important; /* Dark fill instead of #fff */
  stroke: #66b3ff !important; /* Light blue stroke instead of steelblue */
  stroke-width: 1.5px;
}

.node text {
  font-size: 12px;
  fill: #ffffff !important; /* White text instead of black */
}

path.link {
  fill: none;
  stroke: #666666 !important; /* Lighter gray instead of #ccc for better visibility */
  stroke-width: 1px;
}

/* Additional dark mode enhancements */
a {
  color: #66b3ff !important; /* Light blue links */
}

a:hover {
  color: #99ccff !important; /* Lighter blue on hover */
}

/* Force dark mode on all elements */
* {
  scrollbar-color: #555555 #222222;
}

/* Ensure any buttons or interactive elements are dark mode styled */
button {
  background-color: #333333 !important;
  color: #ffffff !important;
  border: 1px solid #555555 !important;
}

button:hover {
  background-color: #444444 !important;
}

/* Style any input fields */
input, textarea, select {
  background-color: #333333 !important;
  color: #ffffff !important;
  border: 1px solid #555555 !important;
}
