/* Main footer container */
.devdoc-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  font-family: sans-serif;
  pointer-events: none;
}

/* When collapsed, bar is shown here */
#devdoc-footer-collapsed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: auto;
}

/* When expanded, content slides up */
.devdoc-footer-content {
  position: fixed;
  bottom: -80vh;
  left: 0;
  width: 100%;
  height: 80vh;
  background: #6f7d7c;
  color: #222;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  transition: bottom 0.3s ease;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Expanded state */
.devdoc-footer-content.open {
  bottom: 0;
}

/* The bar */
.devdoc-footer-bar {
  background: #383c40;
  color: #999;
  height: 30px;
  line-height: 30px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  position: relative;
}

/* Arrows */
.devdoc-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  font-size: 16px;
  line-height: 30px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

#devdoc-footer-bar-expand-left {
  left: 12px;
}

#devdoc-footer-bar-expand-right {
  right: 12px;
}

/* Flip arrows when open */
.devdoc-footer.open .devdoc-arrow {
  transform: rotate(-180deg);
}

/* Title */
.devdoc-bar-title {
  flex: 1;
  text-align: center;
  color: #999;
}

/* Split container for left and right sides */
.devdoc-content-split {
  display: flex;
  flex-direction: row-reverse;  /* <- fixes visual order */
  justify-content: space-between;
  gap: 40px;
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  width: 100%;
  max-width:100vw;
  overflow-x: hidden;
  box-sizing: border-box;

  direction: rtl;             /* ← move scrollbar to left */
  scrollbar-width: thin;
  margin-bottom: 25px;
}

.devdoc-content-split > * {
  direction: ltr;             /* ← keep text normal */
}



/* Left and Right columns */
.devdoc-left,
.devdoc-right {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.devdoc-footer code,
.devdoc-footer pre,
.devdoc-right pre {
  background: #596463;
  border: 1px solid #7da8aa;
  border-radius: 4px;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;            /* <- Keeps original spacing and no line wrapping */
  display: block;              /* <- Ensures full-width block box */
  padding: 6px;
  margin: 6px 0 6px 0;          /* Optional: adds space below code blocks */
  max-width: 100%;
  box-sizing: border-box;
  color: white;
}




/* Headings inside split columns */
.devdoc-right h3,
.devdoc-left h3 {
  margin-top: 24px;
}

/* Responsive: stack columns on small screens */
@media (max-width: 800px) {
  .devdoc-content-split {
    flex-direction: column;
    gap: 16px;
    padding: 40px;
  }

  .devdoc-left,
  .devdoc-right {
    flex: 1 1 auto;
    min-width: 95%;
  }
}

/* Prevent horizontal scroll on small screens */
.devdoc-footer-content,
.devdoc-content-split,
.devdoc-left,
.devdoc-right {
  max-width: 100vw;
}

/* Ensure code blocks break long words and don't overflow */
.devdoc-footer code,
.devdoc-footer pre {
  white-space: pre-wrap;
  word-break: break-word;
}



/* Scrollbar Fix */

/* Custom scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.devdoc-content-split::-webkit-scrollbar {
  width: 10px;
  background-color: transparent;  /* transparent track background */
}

.devdoc-content-split::-webkit-scrollbar-track {
  background-color: transparent;  /* transparent behind the thumb */
}

.devdoc-content-split::-webkit-scrollbar-thumb {
  background-color: #2f3534;      /* the visible draggable part */
  border-radius: 6px;
  border: 2px solid transparent;  /* gives padding space if needed */
}

.devdoc-content-split::-webkit-scrollbar-thumb:hover {
  background-color: #1f2423;
}

/* Firefox */
.devdoc-content-split {
  scrollbar-width: thin;
  scrollbar-color: #2f3534 transparent;
}

