body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  background-color: #1e1e1e;

}

a:link {
  text-decoration: inherit;
  color: inherit;
}

a:visited {
  text-decoration: inherit;
  color: inherit;
}

#container {
  display: flex;
  height: 100%;
}

#editor {
  overflow: auto;
}

#right-column {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#canvas-cont {
  height: 50%;
  width: 100%;
}

#three-canvas {
  height: 100%;
  width: 100%;
}

#editor-container {
  width: 60%;
  height: 100%;
  position: relative;
}

#tabs-container {
  height: 30px;
  background: #252526;
  display: flex;
  border-bottom: 1px solid #1e1e1e;
  overflow-x: auto;
}

.tab {
  padding: 8px 16px;
  background: #2d2d2d;
  color: #ccc;
  font-family: inherit;
  font-size: 12px;
  border-right: 1px solid #1e1e1e;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.tab.active {
  background: #1e1e1e;
  color: #fff;
}

.tab-input {
  background: transparent;
  border: 1px solid #007fd4;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin: 0;
  outline: none;
  width: calc(100% - 20px);
}

.tab-input:focus {
  border-color: #007fd4;
  box-shadow: 0 0 0 1px #007fd4;
}

.tab-close {
  margin-left: 8px;
  color: #888;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 20px;
  text-align: center;
}

.tab-close:hover {
  background: #3a3a3a;
  color: #fff;
}

#editor {
  height: calc(100% - 32px);
}

#console {
  height: 50%;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: monospace;
  padding: 8px;
  overflow: auto;
  scroll-behavior: smooth;
}

#run {
  position: static;
  /* Remove absolute positioning */
  margin-left: auto;
  /* Push to the right */
  height: 22px;
  padding: 0 12px;
  background-color: #0e639c;
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  cursor: pointer;
}

#run:hover {
  background-color: #1177bb;
}

#run:active {
  background-color: #0c547d;
  /* Darker press state */
}

#run:focus {
  outline: 1px solid #007fd4;
  /* VS Code focus ring */
  outline-offset: -1px;
}

#topbar {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 0 10px;
  height: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #252526;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI",
    "Ubuntu", "Droid Sans", sans-serif;
  font-size: 12px;
  justify-content: space-between;
}

.menu {
  position: relative;
  height: 80%;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
}

.menu:hover {
  background-color: #2a2d2e;
}

.menu-title::after {
  content: '▼';
  font-size: 8px;
  margin-left: 4px;
  opacity: 0.7;
}

.menu-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #252526;
  min-width: 160px;
  border: 1px solid #454545;
  z-index: 100;
  border-radius: 5px;
}

.menu:hover .menu-content {
  display: block;
}

.menu-content a {
  color: #d4d4d4;
  padding: 6px 12px;
  text-decoration: none;
  display: block;
}

.menu-content a:hover {
  background-color: #094771;
  color: #ffffff;
}

.left-section {
  display: flex;
  justify-self: start;
}

.center-section {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.right-section {
  display: flex;
  justify-self: end;
}

/* Logo styling */
.logo {
  height: 18px;
  width: 18px;
  /* filter: invert(90%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(90%) contrast(90%);*/
}

/* App title text */
.app-title {
  font-size: 14px;
  /* font-weight: 600;*/
  color: #cccccc;
  letter-spacing: 0.5px;
}


#container {
  height: calc(100% - 32px);
  /* Account for topbar */
}

#run {
  top: 38px;
  /* Adjusted for topbar */
}

/* Context menu styles */
.context-menu {
  display: none;
  position: absolute;
  background-color: #252526;
  border: 1px solid #454545;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 120px;
  border-radius: 5px;
}

.context-menu-item {
  padding: 8px 12px;
  color: #cccccc;
  cursor: pointer;
  font-size: 12px;
}

.context-menu-item:hover {
  background-color: #094771;
}

/* Tab editing input */
.tab-input {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin: 0;
  outline: 1px solid #007fd4;
  width: calc(100% - 20px);
}