/* Haupt-Container (main) */
main {
  margin-top: 80px;
  display: flex;
  height: calc(100vh - 80px);
}

/* Sidebar */
#sidebar {
  width: 300px;
  background: var(--secondary-color);
  border-right: 1px solid var(--primary-color);
  padding: 1rem;
  overflow-y: auto;
  text-align: center;
}

/* File Tree */
#fileTree > ul {
  list-style: none;
  margin-left: 0;
  padding-left: 1em;
  border-left: 1px dashed var(--primary-color);
}
#fileTree li {
  margin: 0.3rem 0;
  cursor: pointer;
}
#fileTree li a {
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
}

/* Content (Topo + FileView) */
#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* WICHTIG bei verschachteltem Flex */
}

/* Topology-Bereich */
#topologyContainer {
  flex: 2;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--primary-color);
  min-height: 0; /* wichtig bei flexbox */
}

/* Terminal / FileView */
#fileView {
  flex: 3;
  display: flex; /* => Damit iframe/embed "flex: 1" anwenden kann */
  min-height: 0;
  background: #0a0c0e;
  color: var(--primary-color);
  overflow-y: auto;
  font-family: monospace;
  padding: 0;
}

/* PDF- oder HTML-Einbettung */
#fileView embed,
#fileView iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
  display: block;
}

/* (Optional) Utility-Klassen */
.hidden {
  display: none !important;
}
.pointer {
  cursor: pointer;
}
.bold {
  font-weight: bold;
}
.text-primary {
  color: var(--primary-color);
}
.no-list-style {
  list-style: none;
}
.ml-1 {
  margin-left: 1rem;
}
.pre-wrap {
  white-space: pre-wrap;
}
.fade-init {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
