:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #333; /* Darker default text */
  background-color: #ffffff; /* White background */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#app {
  padding: 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.file-uploader {
  text-align: center;
}

.search-box {
  display: flex;
  gap: 0.5rem;
}

.layout-controls {
  display: flex;
  gap: 0.5rem;
}

button {
  padding: 0.5em 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

button:hover {
  background-color: #e9e9e9;
}

button.active {
  background-color: #d6dffc;
  border-color: #a0b4f0;
}

#mindmap-container {
  width: 100%;
  height: 80vh; /* Give it more vertical space */
  border-radius: 8px;
}

.context-menu {
  display: none;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  padding: 0;
  margin: 0;
  z-index: 1000;
}

.context-menu ul {
  list-style: none;
  padding: 5px 0;
  margin: 0;
}

.context-menu ul li {
  padding: 8px 15px;
  cursor: pointer;
}

.context-menu ul li:hover {
  background-color: #f0f0f0;
}

