body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
}
html {
  overflow: hidden;
}

.header {
  height:60px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  justify-content: space-between;
  padding: 10px;
}

.overlay {
  position: absolute;
  border: 2px solid red;
  pointer-events: none;
  /* Zorg ervoor dat de overlay geen muisinteracties blokkeert */
}

.footer {
  height: 50px;
  min-height: 50px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.Menu_Text {
  position : absolute;
  top : 4px;
  left : 10px;
  font-size: 24px;
  color: #333;
  margin-right: 10px;
}

.header-buttons {
  display: flex;
  gap: 5px;
  bottom: 0;
}

.header-buttons button {
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
}

.schematics {
  display: flex;

}





.tools,
.links,
.documents {
  display: flex;
  height: calc(100vh - 60px);
  /* Adjust based on your header/footer height */
}

.tools-left,
.links-left {
  width: 200px;
  background-color: #f1f1f1;
}
.documents-left {
  width: 300px;
  background-color: #f1f1f1;
}

.schematics-left {
  flex-shrink: 0;
  /* voorkomt dat hij kleiner wordt */
  flex-grow: 0;
  /* voorkomt dat hij groter wordt */
  width: 200px;
height: calc(100vh - 110px);
  background-color: #f1f1f1;
  overflow: hidden;
  /* voorkomt scrollbars */
}

.schematics-middle,
.tools-middle,
.links-middle {
  flex-grow: 1;
  background-color: #e1e1e1;
}

.documents-middle {
width: 100vh; 
flex-grow: 1;
border: 0px solid #ccc; 
white-space: pre-wrap; 
height: calc(100vh - 112px);
overflow: auto;
}



.schematics-middle {
  width: calc(100% - 400px);
  /* 200px links + 200px rechts */
  min-width: 0;
  /* belangrijk om flexbox overflow te vermijden */
}

.schematics-right {
  width: 200px;
  max-width: 200px;
  min-width: 200px;


  flex-shrink: 0;
  /* voorkomt dat flex hem kleiner maakt */
  flex-grow: 0;
  /* voorkomt dat hij groter wordt */
  background-color: #d1d1d1;
  overflow: hidden;
}






#resizableDivider {
  width: 5px;
  background-color: #ccc;
  cursor: ew-resize;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 200px;
  /* Initial position of the divider */
  z-index: 100;
}


.tools,
.links {
  display: none;
}

.schematics-middle {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

#schematicCanvas {
  position: absolute;
  cursor: grab;
  transition: transform 0.2s;
  max-width: none;
  max-height: none;
}

#motherboardCanvas {
  max-width: 100%;
  height: auto;
}

#SchematicPinoutViewer {
  display: block;
  max-width: 100%;
  height: auto;
}

#coordinates {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px;
  border-radius: 5px;
}

#mousePosition {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.left-panel {
  width: 200px;
  background-color: #e1e1e1;
  padding: 10px;
  box-sizing: border-box;
  transition: width 0.3s;
}

.middle-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.right-panel {
  width: 300px;
  background-color: #e1e1e1;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
}

.App {
  text-align: center;
}

.info {
  height: 20px;
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

/* Overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
}

.close-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.overlay-tabs {
  display: flex;
  flex-direction: column;
}

.overlay-tab-buttons {
  display: flex;
  margin-bottom: 10px;
}

.tab-button {
  padding: 5px 10px;
  margin-right: 5px;
  cursor: pointer;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.tab-button.active {
  background-color: #ddd;
  font-weight: bold;
}

.overlay-tab-content {
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.overlay {
  pointer-events: auto;
}

.overlay-content {
  pointer-events: auto;
}



.category-item {
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee;
}
.category-item:hover {
  background: #eee;
}
.category-item.active {
  background: #ddd;
  font-weight: bold;
}
.category-item img {
  max-width: 20px;
  max-height: 20px;
  width: auto;
  height: auto;
  display: block;
}

.link-group {
  margin-bottom: 20px;
}
.link-group h4 {
  margin-bottom: 8px;
}
.link-item {
  margin-left: 10px;
  margin-bottom: 6px;
}
.link-item img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}