/* Container for the tab buttons */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  margin-bottom: 0;
}

/* Float the buttons inside the tab div */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-family: inherit;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 0;  /* Remove padding, let pre/code handle it */
  border: 1px solid #ccc;
  border-top: none;
}

/* Match your theme's code block styling */
.tabcontent pre {
  margin: 0;
  padding: 1em;
  background-color: #fafafa;  /* Adjust to match your theme */
  border: none;
  border-radius: 0 0 4px 4px;
  overflow-x: auto;
}

.tabcontent pre code {
  font-family: Monaco, Consolas, "Lucida Console", monospace;
  font-size: 0.75em;
  line-height: 1.8;
  background-color: transparent;
  padding: 0;
  border: none;
  color: #333;
  white-space: pre;
  text-indent: 0ch;
  padding-left: 0ch;
}

.tabcontent .highlight {
  background-color: #fafafa;
}

.tab button.active {
  background-color: #ccc;
  border-bottom: 3px solid #007bff;  /* Add colored underline */
  font-weight: bold;  /* Make active tab bold */
}
