html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

#window-container {
  display: flex;
  width: 100%;
  height: 100%;
}

#sidebar {
  width: 250px;
  min-width: 150px;
  max-width: 500px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: width 0.3s ease, margin-left 0.3s ease;
  overflow: hidden; /* Hide content when collapsed */
}

#sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  border-right: none;
}

#editor-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--editor-bg);
  position: relative;
  overflow: hidden;
}

#top-bar {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background-color: var(--editor-bg); /* Match editor background or slightly different? */
  border-bottom: 1px solid var(--sidebar-border);
  color: var(--editor-text);
}

#sidebar-toggle {
  cursor: pointer;
  font-size: 24px;
  margin-right: 15px;
  user-select: none;
  width: 30px;
  text-align: center;
  border-radius: 4px;
}

#sidebar-toggle:hover {
  background-color: rgba(128, 128, 128, 0.2);
}

#search-input {
  background: transparent;
  border: 1px solid transparent; /* Hidden unless focused or hovered? Or specific style */
  color: var(--editor-text);
  font-size: 14px;
  padding: 5px;
  outline: none;
  border-radius: 4px;
  transition: border-color 0.2s, background-color 0.2s;
}

#search-input:focus, #search-input:hover {
  background-color: rgba(128, 128, 128, 0.1);
  border-color: var(--sidebar-border);
}

.CodeMirror {
  flex-grow: 1;
  height: 100% !important;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
}
