html {
  scroll-behavior: smooth;
}

.container {
  max-width: 720px;
  margin: 5em auto;
  background: var(--background-color-card);
  border-radius: 12px;
  box-shadow: 0 6px 32px #0001;
  padding: 2em;
}

.error-block {
  background: var(--background-color-second);
  border-radius: 8px;
  margin: 1.5em 0;
  padding: 1.3em 1em;
  border-left: 4px solid var(--color-variant);
  transition: background 0.3s, border 0.3s, box-shadow 0.3s;
  scroll-margin-top: 90px;
}

.error-block.highlight {
  background: #fff6d1;
  border-left: 4px solid #fad15a;
  box-shadow: 0 1px 8px #ffe28b75;
}
html.dark-mode .error-block.highlight {
  background: #41360a;
  border-left: 4px solid #fad15a;
  box-shadow: 0 1px 8px #664d0c88;
}
body,
h1 {
  margin: 0;
}

h2 {
  margin: 0 0 0.4em 0;
  font-size: 1.2em;
  color: var(--delete-bg);
}
.details {
  font-size: 1.04em;
  color: var(--text-color);
}
code {
  background: var(--background-color-second);
  border-radius: 3px;
  padding: 0 0.2em;
}
.jumpbox {
  font-size: 0.95em;
  color: #888;
}
.json-block {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: "Fira Mono", "Consolas", "Menlo", monospace;
  font-size: 0.98em;
  padding: 0.8em 1em;
  border-radius: 5px;
  margin-top: 1em;
  overflow-x: auto;
  box-shadow: 0 2px 12px #00000020;
}

@media (max-width: 650px) {
  .container {
    padding: 1em;
  }
  .json-block {
    font-size: 0.92em;
  }
}


.info-box {
  background-color: var(--special-bg);
  border: 1px solid var(--color-variant);
  border-radius: 8px;
  padding: 1rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
}

.info-box p {
  margin: 0;
  color: var(--text-color);
}

.info-box a {
  color: var(--hover-color);
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}


.quick-navigation {
  background-color: var(--background-color-second);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 800px;
  border: 1px solid var(--border-color);
}

.quick-navigation h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
}

.quick-navigation ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-navigation li {
  text-align: center;
}

.quick-navigation a {
  display: block;
  padding: 0.75rem;
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quick-navigation a:hover {
  background-color: var(--hover-bg);
  color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


main {
  max-width: 1200px;
  margin-left:280px;
  padding: 0 1rem;
}


section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--hover-color);
}

section > p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.7;
}


.status-code-item,
.error-code-item {
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.status-code-item:hover,
.error-code-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.status-code-item h3,
.error-code-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--header-border-color);
}


#success-codes .status-code-item {
  border-left: 4px solid var(--get-bg);
}

#success-codes .status-code-item h3 {
  color: var(--get-bg);
}


#client-error-codes .error-code-item {
  border-left: 4px solid var(--delete-bg);
}

#client-error-codes .error-code-item h3 {
  color: var(--delete-bg);
}

#server-error-codes .error-code-item {
  border-left: 4px solid var(--post-bg);
}

#server-error-codes .error-code-item h3 {
  color: var(--post-bg);
}


#redirection-codes .status-code-item {
  border-left: 4px solid var(--patch-bg);
}

#redirection-codes .status-code-item h3 {
  color: var(--patch-bg);
}


.error-details {
  background-color: var(--background-color-second);
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.error-details p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.error-details strong {
  color: var(--text-color);
  font-weight: 600;
}


pre {
  background-color: var(--right-code-container);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 1rem 0;
  border: 1px solid var(--border-color);
}

code {
  background-color: var(--right-code-container);
  color: #ffffff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85rem;
}

p code {
  background-color: var(--special-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}


details {
  margin: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--hover-color);
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

summary:hover {
  background-color: var(--hover-bg);
}


a {
  color: var(--hover-color);
  text-decoration: none;
}

.footer-info {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.footer-info p {
  margin-bottom: 0.5rem;
}

.related-links {
  max-width: 600px;
  margin: 0 auto;
}

.related-links h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.related-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
}

.related-links a {
  display: block;
  padding: 0.5rem;
  background-color: var(--background-color-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.related-links a:hover {
  background-color: var(--hover-bg);
  color: var(--hover-color);
}


@media (max-width: 768px) {
  
  section h2 {
    font-size: 1.5rem;
  }
  
  .quick-navigation ul {
    grid-template-columns: 1fr;
  }
  
  .status-code-item,
  .error-code-item {
    padding: 1rem;
  }
  
  pre {
    padding: 1rem;
    font-size: 0.8rem;
  }
}


html {
  scroll-behavior: smooth;
}




.doc-layout {
  display: flex;
  min-height: 100vh;
  background: var(--background-color);
}

.styled-sidebar {
  flex: 0 0 260px;
  min-width: 180px;
  max-width: 400px;
  background: var(--background-color-second);
  
  display: flex;
  flex-direction: column;
  
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0;
  align-self: flex-start;
}

.fixed-sidebar {
  padding-top: 76px;
  position: fixed;
  height: 100vh;
  z-index: 10;
  width: 260px;
  left: 0px;
}

.doc-main-content {
  flex: 1 1 0%;
  width: 100%;
  padding-top: 100px;
  max-width: 1000px;
  background: var(--background-color);
}

.sidebar-section {
  font-size: 13px;
  font-weight: 700;
  color: var(--hover-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 24px 12px 24px;
  margin-top: 8px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex: 1;
}
.sidebar-list li {
  margin: 0;
}
.sidebar-list a {
  display: block;
  padding: 10px 24px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  
}
/* .sidebar-list a:hover{
  background: var(--hover-bg);
  color: var(--hover-color);
   
}*/
/* .sidebar-list a.active {
  background: none;
  color: inherit;
  font-weight: normal;
} */

.apis-list a {
  font-size: 15px;
  color: var(--active-color);
  border-left: 3px solid transparent;
  border-radius: 0 20px 20px 0;
}
.apis-list a:hover,
.apis-list a{
  background: var(--hover-bg);
  color: var(--hover-color);
  border-left: 3px solid var(--hover-color);
}

.main-header {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
  padding-bottom: 16px;
}
.main-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.main-header .subtitle {
  font-size: 1.15rem;
  color: var(--text-color);
  margin-bottom: 0;
}

.status-code-block {
  background: var(--background-color-second);
  border-radius: 8px;
  margin: 1.5em 0;
  padding: 1.3em 1em;
  border-left: 4px solid var(--color-variant);
  transition: background 0.3s, border 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 8px #0001;
}

.status-code-block h3 {
  margin-top: 0;
  color: var(--hover-color);
  font-size: 1.15em;
}

.status-desc {
  color: var(--text-color);
  font-size: 1em;
  margin-bottom: 0.5em;
}

@media (max-width: 1100px) {
  .doc-main-content {
    padding: 32px 16px 32px 220px;
  }
  .styled-sidebar {
    width: 180px;
    padding: 24px 0 24px 0;
  }
}

@media (max-width: 900px) {
  .doc-layout {
    flex-direction: column;
  }
  .styled-sidebar {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    position: relative;
    top: auto;
  }
  .doc-main-content {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .doc-main-content {
    padding: 0;
  }
}

html.dark-mode .styled-sidebar {
  background: var(--background-color-second);
  
  box-shadow: 2px 0 8px #0002;
}
html.dark-mode .doc-main-content {
  background: var(--background-color);
}
html.dark-mode .status-code-block {
  background: var(--special-bg);
  border-left: 4px solid var(--color-variant);
  box-shadow: 0 1px 8px #23274144;
}

.sidebar-nav {
    position: fixed;
    top:75px;
    left: 0;
    width: 280px;
    height: calc(100vh - 86px);
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 100;
    padding: 20px 0;
}

.sidebar-nav .sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .has-submenu {
    position: relative;
    margin-bottom: 8px;
}

.sidebar-nav .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-nav .submenu-toggle:hover {
    color: var(--primary-color);
    background: var(--hover-bg-color, rgba(0, 0, 0, 0.05));
}

.sidebar-nav .submenu-toggle::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.2s ease;
    color: var(--text-muted-color, #666);
}

.sidebar-nav .has-submenu.active .submenu-toggle::after {
    transform: rotate(180deg);
}

/* .sidebar-nav .has-submenu.active .submenu-toggle {
    color: var(--primary-color);
    background: var(--active-bg-color, rgba(0, 123, 255, 0.1));
} */

.sidebar-nav .submenu {
    display: none;
    padding-left: 0;
    margin-top: 4px;
    list-style: none;
    background: var(--submenu-bg-color, rgba(0, 0, 0, 0.02));
    border-radius: 6px;
}

.sidebar-nav .has-submenu.active .submenu {
    display: block;
}

.sidebar-nav .submenu li {
    margin: 0;
}

.sidebar-nav .submenu a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    padding: 8px 20px 8px 30px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    border-radius: 4px;
}

/* .sidebar-nav .submenu a:hover {
    color: var(--primary-color);
    background: var(--hover-bg-color, rgba(0, 0, 0, 0.05));
} */

/* .sidebar-nav .submenu a.active {
    color: var(--primary-color);
    background: var(--active-bg-color, rgba(0, 123, 255, 0.1));
    font-weight: 500;
} */

.sidebar-nav .api-errors-section {
    margin-top: 20px;
    padding-top: 20px;
}

.sidebar-nav .api-errors-section a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* .sidebar-nav .api-errors-section a:hover {
    color: var(--primary-color);
    background: var(--hover-bg-color, rgba(0, 0, 0, 0.05));
} */

/* .sidebar-nav .api-errors-section a.active {
    color: var(--primary-color);
    background: var(--active-bg-color, rgba(0, 123, 255, 0.1));
} */

.doc-layout {
    display: flex;
    min-height: calc(100vh - 86px);
    margin-top: 86px;
}



@media (max-width: 768px) {
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-nav.open {
        transform: translateX(0);
    }
    
    .doc-main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 20px;
    }
}

.dark-mode .sidebar-nav {
    background: var(--bg-color);
    border-right-color: var(--border-color);
}

.dark-mode .sidebar-nav .submenu {
    background: var(--submenu-bg-color, rgba(255, 255, 255, 0.02));
}

/* .dark-mode .sidebar-nav .submenu-toggle:hover,
.dark-mode .sidebar-nav .submenu a:hover,
.dark-mode .sidebar-nav .api-errors-section a:hover {
    background: var(--hover-bg-color, rgba(255, 255, 255, 0.05));
}

.dark-mode .sidebar-nav .has-submenu.active .submenu-toggle,
.dark-mode .sidebar-nav .submenu a.active,
.dark-mode .sidebar-nav .api-errors-section a.active {
    background: var(--active-bg-color, rgba(0, 123, 255, 0.15));
} */