body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

/* Navbar styles */
.navbar {
  width: 100%;
  color: #f2f2f2;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #263344;
  height: 75px
}

.navbar-menu {
  display: none;
  width: 250px;
  background-color: #fff;
  position: fixed;
  top: 95px;
  left: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  height: 100%;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.navbar-menu a {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
  /* margin-bottom: 10px; */
  border-radius: 4px;
  padding: 12px 20px;
}

/* Style for sidebar items */
.navbar-menu ul {
  list-style-type: none;
  /* Remove default bullets */
  padding: 0;
  /* Remove padding */
  margin: 0;
  /* Remove margin */
}

.navbar-menu li {
  /* padding: 12px 20px; */
  /* Padding for list items */
  cursor: pointer;
  /* Change cursor to pointer */
  position: relative;
  /* For positioning icons */
  transition: background-color 0.3s;
  /* Smooth transition for hover effect */
  font-size: 16px;
  /* Increase font size */
}


/* Main content container */
.container {
  padding: 20px 40px;
  background-color: #fff;
  margin-left: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: calc(100% - 40px);
  /* Adjust width to account for padding */
}

.title-center {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #37bcaa;
}

/* Sidebar styles */
.sidebar {
  width: 235px;
  background-color: #fff;
  height: 100vh;
  position: fixed;
  top: 95px;
  left: 0;
  overflow-y: visible;
  display: none;
  border-radius: 0;
  margin-bottom: 0;
  border: none;
  background-color: #fff;
  box-shadow: 3px 0 6px rgba(0, 0, 0, .24);
  bottom: 0;
  white-space: nowrap;
  transition: all .2s ease-in-out;
}

.sidebar a {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  padding: 12px 20px;
}

/* Style for sidebar items */
.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
  font-size: 16px;
}

.sidebar li ul li {
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
  font-size: 16px;
}

/* Style for icons in sidebar items */
.sidebar li i {
  margin-right: 10px;
}

/* Custom icon for expandable items, positioned on the right */
li.has-subitems::after {
  content: "\f107";
  /* FontAwesome down arrow icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #333;
  font-size: 14px;
  position: absolute;
  right: 20px;
  top: 16px;
  transition: transform 0.3s;
}

.sidebar .active {
    background: #f2f2f2;
    color: #37bcaa;
}

.sidebar .active svg {
    fill: #37bcaa;
}

.sidebar .active span {
    color: #37bcaa;
}

/* Rotate icon when active */
.sidebar li.active::after {
  transform: rotate(-180deg);
  color: red;
}

.sidebar ul li a .icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.sidebar ul li .icon:hover {
  fill: #37bcaa;
}

.sidebar ul li.hover-parent:hover {
  background: #f2f2f2;
  color: #37bcaa;
}

.sidebar ul li.hover-parent:active {
    background: #f2f2f2;
    color: #37bcaa;
}

.sidebar ul li.hover-parent:hover .icon {
  fill: #37bcaa;
}

.sidebar ul li.hover-parent:hover .item {
  color: #37bcaa;
}

.sidebar ul li.hover-child:hover {
  background: #f2f2f2;
  color: #37bcaa;
}

.sidebar ul li.hover-child:hover .icon {
  fill: #37bcaa;
}

.sidebar ul li.hover-child:hover .item {
  color: #37bcaa;
}

.sidebar ul li a.request-none:hover {
  background: #f2f2f2;
  color: #37bcaa;
}

.sidebar ul li a.request-none:hover .icon {
  fill: #37bcaa;
}

.sidebar ul li a.request-none:hover .item {
  color: #37bcaa;
}


/* Style for the top-level list */
ul.top-level {
  list-style-type: none;
  /* Remove default bullets */
  padding-left: 0;
  /* Remove default padding */
  margin-bottom: 20px;
  /* Add space below the list */
}

/* Style for list items */
ul.top-level>li {
  background-color: #ffffff;
  /* White background */
  padding: 15px;
  /* Add padding */
  margin-bottom: 10px;
  /* Space between list items */
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  position: relative;
  /* For positioning custom icons */
  cursor: pointer;
  /* Pointer cursor for clickable items */
}

/* Style for nested lists */
ul.nested-level-1,
ul.nested-level-2 {
  list-style-type: none;
  /* Remove default bullets */
  padding-left: 20px;
  /* Padding for indentation */
  margin-top: 10px;
  /* Space above the nested list */
  display: block;
  /* Display nested lists by default (always open) */
}

ul.nested-level-1>li h4 a { 
  text-decoration: none;
  color: #37bcaa;
}
/* Hover effect for all list items */  
  /* .customize-link:hover {
  background-color: #fff;
  text-decoration: underline;
  color: #37bcaa;
} */

.hover-link:hover {
  background-color: #fff;
  text-decoration: underline;
  color: #37bcaa;

}

/* Style for nested list to hide initially */
ul.nested-items {
  list-style-type: none;
  padding-left: 20px;
  display: block;
  border-radius: 5px;
}

ul.nested-items.visible {
  display: block;
}

h1,
h2,
h3,
h4 {
  color: #333;
}

.endpoint {
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.method {
  display: inline-block;
  font-weight: bold;
  color: #fff;
  background-color: #28a745;
  padding: 5px 10px;
  border-radius: 5px;
}

.parameters,
.response,
.api-container {
  background-color: #f8f9fa;
  padding: 15px;
  border-left: 4px solid #28a745;
  margin-bottom: 20px;
  border-radius: 5px;
}

.parameters ul,
.response ul {
  list-style-type: none;
  padding: 0;
}

.parameters ul li,
.response ul li {
  padding: 5px 0;
}

/* Responsive navbar toggle button */
.navbar-toggle {
  display: none;
  background-color: #444;
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
}

.navbar-links {
  margin-right: 30px;
}

.border-bottom {
  border-bottom: 1px solid #ddd;
}

.response-container {
  margin-top: 20px;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 5px;
  overflow: auto;
}

button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

.input-field {
  margin-bottom: 15px;
}

.input-field label {
  display: block;
  margin-bottom: 5px;
}

.input-field input {
  width: 99%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.error-message {
  color: red;
  padding-top: 5px;
}

.example {
  margin: 0px;
}


.pr-5 {
  padding-right: 5px;
}

.pl-10 {
  padding-left: 10px;
}

.pl-15 {
  padding-left: 15px;
}

.pb-5 {
  padding-bottom: 5px;
}

.d-flex {
  display: flex;
  align-items: center;
}

.error-table,
.auth-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.error-table th,
.error-table td,
.auth-table th,
.auth-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.error-table th,
.auth-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.error-code {
  color: red;
  /* Set text color to red */
  font-weight: bold;
}

.success-code {
  color: green;
  /* Set text color to green */
  font-weight: bold;
}

.required {
  color: red;
}

/* Container for JSON code block */
pre {
  position: relative;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 5px;
  margin: 10px 0;
  overflow: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  counter-reset: line;
  max-height: 600px;
  overflow-y: auto;
}

/* Style each line */
pre code {
  display: block;
  padding-left: 40px;
  position: relative;
  white-space: pre-wrap;
}

/* Line numbers using pseudo-elements */
pre code::before {
  counter-increment: line;
  position: absolute;
  left: 10px;
  color: #888;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
  width: 30px;
}

/* Highlight key and string values */
.json-key {
  color: #e67e22;
  /* Key color */
}

.json-string {
  color: #27ae60;
  /* String color */
}

.json-number {
  color: #3498db;
  /* Number color */
}

.json-brace {
  color: #ffffff;
  /* Brace color */
}

.json-comma {
  color: #ffffff;
  /* Comma color */
}

.json-bool {
  color: #ffffff;
}

.code-container {
  position: relative;
}

.copy {
    position: absolute;
    top: 10px;
    right: 50px;
    background: none;
    cursor: pointer;
    z-index: 10;
    border: 1px solid #6f6f6f;
    border-radius: 5px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy i {
  font-size: 1.7em;
  color: #fff; 
}

.navbar button:hover {
  background-color: #37bcaa;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 50px;
  height: 45px;
  background: black;
  border: 1px solid #fff;
  cursor: pointer;
  margin-left: auto;
  margin-right: 40px;
}

.navbar-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 5px;
  transition: all 0.3s;
}

.sidebar ul li a span {
  width: 20px;
}



@media (max-width: 768px) {

  .container {
    margin-top: 85px;
  }

  .sidebar {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }
 
  .navbar-menu {
    width: 206px;
    background-color: #fff;
    position: fixed;
    top: 95px;
    left: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100%;
    opacity: 1;
    visibility: visible;
    /* transition: opacity 0.3s, visibility 0.3s; */
    transform: translateX(-100%); /* Initially hide the sidebar */
    transition: transform 0.3s ease; 
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
  }

    .navbar-menu .active {
    background: #f2f2f2;
    color: #37bcaa;
    }

    .navbar-menu .active svg {
        fill: #37bcaa;
    }

    .navbar-menu .active span {
        color: #37bcaa;
    }

  .navbar-menu a {
    display: flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    /* margin-bottom: 10px; */
    border-radius: 4px;
    padding: 12px 20px;
  }
  
  /* Style for sidebar items */
  .navbar-menu ul {
    list-style-type: none;
    /* Remove default bullets */
    padding: 0;
    /* Remove padding */
    margin: 0;
    /* Remove margin */
  }
  
  .navbar-menu li {
    cursor: pointer;
    /* Change cursor to pointer */
    position: relative;
    /* For positioning icons */
    transition: background-color 0.3s;
    /* Smooth transition for hover effect */
    font-size: 16px;
    /* Increase font size */
  }
  
  .navbar-menu li ul li {
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
    font-size: 16px;
  }
  
  /* Style for icons in sidebar items */
  .navbar-menu li i {
    margin-right: 10px;
  }
  
  /* Custom icon for expandable items, positioned on the right */
  li.has-subitems::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #333;
    font-size: 14px;
    /* Icon size */
    position: absolute;
    right: 20px;
    top: 16px;
    transition: transform 0.3s;
  }
  
  .nested-items {
    display: none;
  }

  .has-subitems.active .nested-items {
    display: block;
  }

  /* Rotate icon when active */
  .navbar-menu li.active::after {
    transform: rotate(-180deg);
    color: red;
  }
  
  .navbar-menu ul li a .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  
  .navbar-menu ul li .icon:hover {
    fill: #37bcaa;
  }
  
  .navbar-menu ul li.hover-parent:hover {
    background: #f2f2f2;
    color: #37bcaa;
  }
.navbar-menu ul li.hover-parent:active{
    background: #f2f2f2;
    color: #37bcaa;
}

  .navbar-menu ul li.hover-parent:hover .icon {
    fill: #37bcaa;
  }

  .navbar-menu ul li.hover-parent:hover .item {
    color: #37bcaa;
  }
  .navbar-menu ul li.hover-child:hover {
    background: #f2f2f2;
    color: #37bcaa;
  }

  .navbar-menu ul li.hover-child:hover .icon {
    fill: #37bcaa;
  }

  .navbar-menu ul li.hover-child:hover .item {
    color: #37bcaa;
  }
  
  .navbar-menu ul li a.request-none:hover {
    background: #f2f2f2;
    color: #37bcaa;
  }

  .navbar-menu ul li a.request-none:hover .icon {
    fill: #37bcaa;
  }

  .navbar-menu ul li a.request-none:hover .item {
    color: #37bcaa;
  }

  ul.nested-items{
    padding-left:25px
  }


  .navbar-menu.active {
    display: flex;
    transform: translateX(0);
  }


  .d-flex {
    align-items: center;
    display: block;
  }

  .nested-items {
    display: none;
  }

  .has-subitems.active .nested-items {
    display: block;
  }

}

/* Responsive layout for larger screens */
@media (min-width: 768px) {
  .main-layout {
    display: flex;
    /* Flexbox for sidebar and content */
    margin-top: 95px;
  }

  .sidebar {
    display: block;
  }

  .container {
    margin-left: 240px;
    /* Space for sidebar */
    width: calc(100% - 260px);
    /* Adjust width to account for sidebar */
  }
}