.graph-visualization-container {
  width: 100%;
  height: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 1rem;
}

.left-sidebar-closed .graph-visualization-container {
  border-radius: 0;
  padding: 0;
}

.graph-visualization {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(140, 82, 255, 0.2);
}

.left-sidebar-closed .graph-visualization {
  border-radius: 0;
}

.graph-visualization > div {
  width: 100% !important;
  height: 100% !important;
}

.graph-legend {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 5px 10px;
  transition: all 0.2s ease;
}

.legend-item:hover {
  transform: translateY(-2px);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.legend-label {
  color: #e0e0e0;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
}

/* Theme Toggle Button */
.theme-toggle-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  padding: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  filter: grayscale(100%);
}

.theme-toggle-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Light Theme Adjustments */
.light-theme.graph-visualization-container {
  background-color: #f0f0f0; /* Light grey container background */
}

.light-theme .graph-legend {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.light-theme .legend-label {
  color: #333; /* Darker text for light background */
}

.light-theme .theme-toggle-button {
  background-color: rgba(0, 0, 0, 0.6);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.light-theme .theme-toggle-button:hover {
  background-color: rgba(0, 0, 0, 0.7); 
}
