circle {
  stroke: rgb(31, 119, 180);
  stroke-width: 1px;
}

.visible-node {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.visible-node.visible {
  opacity: 1;
}

#settings-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 1;
}

#menu-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}

#graph {
  width: inherit;
  height: inherit;
  background: white;
}

#graph-buttons {
  text-align: center;
  position: absolute;
  right: 0px;
  display: flex;
  flex-direction: column;
}

.graph-button {
  padding: 4px;
  z-index: 2;
  cursor: pointer;
  background-color: white;
  outline: 1px solid #999;
}

#gear-btn i {
  transition: transform 1s;
}

#gear-btn:hover > i {
  transform: rotate(180deg);
}

#graph-search {
  padding: 20px;
}

#autocomplete-list {
  max-height: 300px;
  overflow-y: auto;
}

#autocomplete-list div {
  padding: 5px;
  cursor: pointer;
  /* border-radius: 10px; */
}

#autocomplete-list div:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

#autocomplete-list div:before {
  width: 300px;
  border: 1px solid black;
}

#graph-search h4 {
  text-align: center;
}

#searchbar {
  width: 400px;
}

#searchbar:focus {
  outline: none;
}

.autocomplete-active {
  background-color: #f43000;
  color: white;
}

#graph-help,
#graph-settings,
#graph-search {
  background: white;
  border: 1px solid black;
  /* border-radius: 20px; */
  position: absolute;
  align-self: center;
  z-index: 2;
  display: none;
  transition: opacity 0.5s;
}

#graph-settings div {
  padding: 10px;
}

#help-section {
  padding: 10px;
}

#help-section h3 {
  text-align: center;
}

.filters-container fieldset {
  display: grid;
}

.filters-container fieldset legend {
  text-align: center;
}

.filters-container fieldset label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkbox {
  width: 15px;
  height: 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  background-color: red;
  display: none;
}

* {
  box-sizing: border-box;
}

.custom-svg-style div {
  margin: 0px;
  padding-top: 100px;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  right: 80px;
}

.search-box {
  width: fit-content;
  height: fit-content;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.input-searcher {
  height: 50px;
  width: 200px;
  border-style: none;
  padding: 10px;
  font-size: 18px;
  letter-spacing: 2px;
  outline: none;
  border-radius: 25px;
  transition: all 0.5s ease-in-out;
  background-image: linear-gradient(to right, #ff6347, white);
  padding-right: 40px;
  color: #000;
}

.input-searcher::placeholder {
  color: #130f40;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 100;
}

.text-size-selector fieldset {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#search-button.btn-searcher {
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: contain;
  width: 50px;
  height: 50px;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  border-radius: 50%;
  background-color: transparent;
}

#side-panel-new .btn-searcher:focus ~ .input-searcher {
  width: 300px;
  border-radius: 0px;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 2s cubic-bezier(0, 0.11, 0.35, 2);
}

#side-panel-new .input-searcher:focus {
  width: 300px;
  border-radius: 0px;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 2s cubic-bezier(0, 0.11, 0.35, 2);
}

#node-details {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid black;
  z-index: 2;
  padding: 10px;
}

#node-details h6 {
  padding: 5px;
}

#node-links div {
  cursor: pointer;
}

#root_of_data {
  --background-color-light: #ffffff;
  --text-color-light: #000000;
  --background-color-dark: #130f40;
  --text-color-dark: #fafafa;
}

.light-mode {
  background-color: var(--background-color-light);
  color: var(--text-color-light);
}

.dark-mode {
  background-color: var(--background-color-dark);
  color: var(--text-color-dark);
}

.custom-svg-style fieldset {
  border: 2px solid #3399ff;
  border-radius: 10px;
  padding: 10px 20px;
  max-width: 300px;
  margin: 20px auto;
  background-color: #f0f8ff;
  font-size: 20px;
  font-family: "Arial", sans-serif;
}

/* Section header styling */
.section-header {
  font-family: "Arial", sans-serif;
}

.custom-svg-style legend {
  padding: 0 10px;
  color: #333;
  font-weight: bold;
}

.custom-svg-style label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  color: #333;
  font-family: "Arial", sans-serif;
  letter-spacing: 2px;
}

/* Custom checkbox styling */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  color: #333;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 5px;
  position: relative;
}

input[type="checkbox"]:before {
  content: "";
}

input[type="checkbox"]:hover {
  filter: brightness(90%);
}

.custom-svg-style text {
  font: 20px sans-serif;
  text-anchor: end;
}

/* Compact mindmap interface container */
.mindmap-container {
  display: flex;
  height: 75vh;
  width: 100%;
  overflow: hidden;
  outline: 1px solid #999;
}

/* Left-hand file tree */
#fileTreeContainer {
  width: 25%;
  border-right: 1px solid #ccc;
  padding: 8px;
  overflow-y: auto;
}

#fileTreeContainer .file_tree_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

#fileTreeContainer #fileTree {
  height: calc(100% - 40px);
}

/* Graph visualization area */
.graph-area {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.graph-area #graph-container {
  height: 100%;
  width: 100%;
  position: relative;
}

.graph-area #link-tooltip {
  position: absolute;
  visibility: hidden;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: center;
  z-index: 100;
}

/* Side panel for node info and filters */
#side-panel-new {
  position: fixed;
  right: 8px;
  top: 8px;
  width: 260px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  max-height: calc(100% - 16px);
  overflow-y: auto;
  font-size: 0.9rem;
}

#side-panel-new h4,
#side-panel-new h5 {
  font-size: 1.5rem;
  align-self: center;
  margin: 0 auto;
}

/* Floating action buttons (Save, Cancel) */
.action-buttons {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 101;
}

#reset-button {
  visibility: hidden;
}

#copy-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #040f3c;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  transform: translateY(20px);
}

#copy-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
