:root {
  --bs-border-color: #dee2e6c9;
  --topbar-height: 68px;
  --sidebar-width: 270px;
  --aside-width: 250px;
  --primary: #6366f1;
  --primary-soft: rgba(99, 102, 241, .12);
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --sidebar: #fafafa;
  --code: #0b1120;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  font-family: 'Inter', sans-serif;
  background: white;
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.topbar {

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 1200;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  transition: transform .3s ease;
}

.navbar-hidden .topbar {
  transform: translateY(-100%);
}

.brand {

  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.search-box {

  width: 240px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.top-link {

  color: #374151;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: .2s;
}

.top-link:hover {

  background: #f3f4f6;
  color: var(--primary);
}

.sidebar {

  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar);
  border-right:
    1px solid var(--border);
  overflow-y: auto;
  padding: 18px 14px;
  transition: top .3s ease;
}

.navbar-hidden .sidebar {
  top: 0;
}

.sidebar-title {

  font-size: 11px;
  font-weight: 700;
  color: #9496a8;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sidebar-link {

  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #374151;
  font-size: 14px;
  margin-bottom: 4px;
  transition: .2s;
}

.sidebar-link:hover {

  background: #f3f4f6;
  color: var(--primary);
}

.sidebar-link.active {

  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.main-layout {

  margin-left: var(--sidebar-width);
  margin-right: var(--aside-width);
  margin-top: var(--topbar-height);
  transition: margin-top .3s ease;
}

.navbar-hidden .main-layout {
  margin-top: 0;
}

.content {

  max-width: 1000px;
  padding: 34px 42px;
}

h1 {

  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {

  font-size: 26px;
  font-weight: 600;
  margin-top: 38px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}

h3 {

  font-size: 19px;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 12px;
}

p {

  color: #4b5563;
  line-height: 1.8;
  font-size: 15px;
}

.doc-card {

  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-top: 16px;
}

.method {

  padding: 4px 10px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.get {
  background: #10b981;
}

.post {
  background: #3b82f6;
}

.put {
  background: #f59e0b;
}

.delete {
  background: #ef4444;
}

.table {

  font-size: 14px;
}

.table thead {

  background: #f9fafb;
}

.aside {

  position: fixed;
  top: var(--topbar-height);
  right: 0;
  bottom: 0;
  width: var(--aside-width);
  border-left:
    1px solid var(--border);
  background: white;
  padding: 22px 18px;
  overflow-y: auto;
  transition: top .3s ease;
}

.navbar-hidden .aside {
  top: 0;
}

.aside-title {

  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #9496a8;
  margin-bottom: 14px;
}

.toc {

  position: relative;
  padding-left: 14px;
}

.toc-link {

  display: block;
  color: #6b7280;
  font-size: 13px;
  padding: 6px 0;
  transition: .2s;
  position: relative;
}

.toc-link.active {

  color: var(--primary);
  font-weight: 600;
  transform: translateX(3px);
}

.toc-link.active::before {

  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
}

.advanced-code {

  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, .18);
}

.terminal-bar {

  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, .04),
      rgba(255, 255, 255, .01));
  border-bottom:
    1px solid rgba(255, 255, 255, .06);
}

.terminal-dots {

  display: flex;
  gap: 8px;
}

.terminal-dot {

  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #ffbd2f;
}

.dot-green {
  background: #28c840;
}

.terminal-tabs {

  margin-left: 18px;
  display: flex;
  gap: 10px;
}

.terminal-tab {

  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
  background:
    rgba(255, 255, 255, .05);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}

/* ACTIONS */

.code-actions {

  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.icon-btn {

  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background:
    rgba(255, 255, 255, .05);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
}

.icon-btn:hover {

  background:
    rgba(255, 255, 255, .10);
  color: white;
}

.custom-tooltip {

  position: absolute;
  top: -40px;
  right: 0;
  background: #111827;
  color: white;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: .2s;
}

.custom-tooltip.show {

  opacity: 1;
  transform: translateY(0);
}

.code-wrapper {

  overflow: auto;
}

pre[class*="language-"] {

  margin: 0 !important;
  padding: 26px !important;
  background: transparent !important;
  font-size: 13px;
  line-height: 1.9;
}

.code-wrapper::-webkit-scrollbar {

  height: 10px;
  width: 10px;
}

.code-wrapper::-webkit-scrollbar-thumb {

  background:
    rgba(255, 255, 255, .10);
  border-radius: 20px;
}

.codetag {
  background-color: rgb(226, 226, 226);
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 2px;
}

.code_url{
  color: #e9ecef;
  padding: 26px;
  font-size: smaller;
}


@media(max-width:1200px) {

  .aside {
    display: none;
  }

  .main-layout {
    margin-right: 0;
  }

}

@media(max-width:992px) {

  .sidebar {

    transform: translateX(-100%);
    transition: .3s;
    z-index: 1300;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-layout {
    margin-left: 0;
  }

  .content {
    padding: 24px 18px;
  }

}