* {
  margin: 0;
  padding: 0;
}
.div1 {
  background: #cededa;
  display: flex;
  gap: 1px !important;
}
.navigation {
  background: #cededa;
  padding: 20px;
  color: white;
  width: 250px;
  box-sizing: border-box;
}
.nav-h2 {
  font-size: 20px;
}
.navigation a {
  display: block;
  color: black;
  text-decoration: none;
  margin-bottom: 1rem;
  font-weight: bold;
  cursor: pointer;
}
main {
  margin-left: 20px;
  padding: 2rem;
  flex-grow: 1;
}
.endpoint {
  background: white;
  border-left: 5px solid #4f46e5;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.endpoint h2 {
  margin-top: 0;
}
.endpoint ul li {
  line-height: 40px;
  padding: 0 5px;
}
.code-block {
  position: relative;
  margin-top: 1rem;
  width: 100%;
  overflow-x: auto;
}
.code-block pre {
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow-x: auto;
  padding: 1rem;
  background-color: #1e1e2f;
  color: white;
}
.none h6,
.none p {
  color: #fff;
}
.code-block button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  z-index: 2;
}
.code-block button:hover {
  background-color: #3730a3;
}
table {
  box-sizing: border-box;
  border-collapse: separate;
  caption-side: bottom;
  color: rgb(33, 37, 41);
  vertical-align: top;
  width: 537px;
  border-spacing: 0px;
  background-color: rgb(255, 255, 255);
}
table thead th {
  text-align: left;
  border: 1px solid #0d1149;
  background-color: #0d1149;
  padding: 0.5rem;
  font-size: 0.875rem;
  color: rgb(255, 255, 255);
  font-family: Poppins, sans-serif;
  font-weight: 600;
  max-width: 170px;
  white-space: normal; /* allow wrapping */
  word-break: break-word;
}
table tbody td {
  background-color: rgba(0, 0, 0, 0);
  padding: 0.5rem;
  font-size: 0.875rem;
  color: rgba(33, 33, 33, 0.7);
  font-family: Poppins, sans-serif;
  font-weight: bold;
  max-width: 170px;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #0d1149;
  white-space: normal; /* allow wrapping */
  word-break: break-word;
}
span {
  font-weight: bold;
}
.h5 {
  font-size: 20px !important;
  color: #0d1149 !important;
  font-weight: 700;
}
@media (max-width: 768px) {
  .div1 {
    flex-direction: column;
  }
  .navigation {
    padding: 15px;
    width: 100%;
  }
  .nav-h2 {
    font-size: 18px;
  }
  .navigation a {
    margin-bottom: 0.75rem;
    font-size: 14px;
  }
  main {
    margin-left: 0;
    padding: 1rem;
  }
  .endpoint {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .endpoint h2 {
    font-size: 20px;
  }
  .endpoint ul li {
    line-height: 28px;
    font-size: 14px;
  }
  .code-block pre {
    font-family: "Fira Code", monospace;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 1rem;
    background-color: #1e1e2f;
    overflow-x: auto;
    white-space: pre;
    max-width: 100%;
    box-sizing: border-box;
  }
  .code-block button {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  table thead,
  table tbody,
  table th,
  table td,
  table tr {
    white-space: nowrap;
  }
  .h2 {
    font-size: 20px !important;
  }
}
.php-example-h4 {
  font-weight: bold;
  padding: 20px 0;
  font-size: 22px;
}
.response-h4 {
  font-weight: bold;
  font-size: 20px;
}
.sparck {
  margin-top: 5px;
  border-top: 1px solid #8b8787;
  border-bottom: 1px solid #8b8787;
}
.sparck li {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 30px !important;
}
@media (max-width: 500px) {
  .sparck li {
    display: block;
    align-items: center;
    gap: 40px;
    padding: 0px !important;
  }
}
.json-heading {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: black;
  padding: 20px 0 0 5px;
}
.json-heading span {
  color: #333;
}
.sublink li a {
  list-style-position: inside;
  padding-left: 2px;
  font-size: 12px;
  color: #000;
}
.sublink span {
  padding-right: 2px;
  font-weight: normal;
}
.view-more-btn {
  position: absolute !important;
  top: 92% !important;
  right: 50% !important;
  margin-top: 8px;
  cursor: pointer;
  color: white !important;
  background: #0d1149 !important;
  font-size: 16px !important;
}
.hidden {
  display: none;
}
.code-toggle-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}
.code-toggle-buttons button {
  background: #0d1149;
  color: white;
  padding: 10px;
  border-radius: 12px;
}

/* === Collapsible menu specific styles === */
.navigation ul.sublink {
  list-style-type: none;
  margin-left: 15px;
  padding-left: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.navigation ul.sublink.open {
  max-height: 1000px; /* large enough to show all */
  overflow: visible;
}
.navigation > ul > li > a {
  font-size: 15px !important;
  font-weight: lighter !important;
}
.navigation a.toggle-submenu {
  position: relative;
}
.navigation a.toggle-submenu::after {
  content: "▼";
  position: absolute;
  right: 0;
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}
.navigation a.toggle-submenu.active::after {
  transform: rotate(-180deg);
}
