body {
  margin: 0;
  background-color: #0d0f15;
  color: #d6d9e0;
  font-family: "Inter", "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topbar {
  background-color: #10131b;
  height: 80px;
  border-bottom: 1px solid #1b1e28;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  gap: 40px;
  box-sizing: border-box;
}

.topbar-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.topbar-logo {
    height: 100%;
    max-height: 80px;
    width: auto;
    cursor: pointer;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.topbar h1 {
  color: #f6d8e8;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.topbar-sub {
  color: #9094a1;
  font-size: 15px;
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box {
  background-color: #181b24;
  border: 1px solid #242733;
  border-radius: 8px;
  color: #d6d9e0;
  padding: 8px 65px 8px 12px;
  width: 250px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  outline: none;
  transition: 0.25s ease;
}

.search-box::placeholder {
  color: #7f8490;
  font-weight: 500;
}

.search-box:focus {
  border-color: #2ca4fc;
  box-shadow: 0 0 0 2px #2ca4fc40;
  background-color: #1a1d27;
}

.search-shortcut {
  position: absolute;
  right: 8px;
  background-color: #202530;
  border: 1px solid #2b313f;
  color: #aab2c2;
  font-family: "Inter", monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 2px 6px;
  text-transform: uppercase;
  pointer-events: none;
}

.discord-icon {
  background-color: #2ca4fc;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-icon:hover {
  background-color: #1c86db;
  transform: translateY(-1px);
}




.docs-layout {
  display: flex;
  flex: 1;
}


.sidebar {
  width: 260px;
  background-color: #10131b;
  border-right: 1px solid #1a1d26;
  padding: 25px 20px;
  overflow-y: auto;
}

.sidebar .section {
  color: #f6d8e8;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 25px;
}

.sidebar a {
  color: #a5a9b6;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
  color: #ffffff;
  background-color: #2ca4fc33;
}

.content {
  flex: 1;
  padding: 50px 70px;
  overflow-y: auto;
  max-width: 900px;
}

h1 {
  color: #f6d8e8;
  font-size: 30px;
  font-weight: 600;
}

h2 {
  color: #2ca4fc;
  font-size: 22px;
  margin-top: 40px;
}

h3 {
  color: #b3b6bf;
  font-size: 18px;
  margin-top: 20px;
}

p, li {
  color: #c7c9d1;
  line-height: 1.7;
  font-weight: 400;
}

code {
  background-color: #181b24;
  padding: 3px 6px;
  border-radius: 6px;
  color: #f6d8e8;
  font-size: 14px;
}

mark.hit {
  background: linear-gradient(180deg, rgba(44,164,252,0.35), rgba(44,164,252,0.25));
  color: #ffffff;
  border-radius: 4px;
  padding: 0 3px;
  box-shadow: 0 0 0 1px #2ca4fc33 inset;
}

mark.hit.active {
  background: #2ca4fc;
  color: #0d0f15;
  box-shadow: 0 0 0 1px #68c2ff inset, 0 0 14px #2ca4fc55;
}

.popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2ca4fc, #1c86db);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #66b9ff;
  box-shadow: 0 8px 24px rgba(44,164,252,0.25);
  opacity: 0.98;
  z-index: 999;
}
.popup.hidden { opacity: 0; pointer-events: none; }

.nav-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  padding: 6px;
  background: rgba(16, 19, 27, 0.75);
  border: 1px solid #1b2230;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.nav-controls.hidden { display: none; }

.nav-btn {
  appearance: none;
  border: 1px solid #27415d;
  background: linear-gradient(180deg, #1a2b3b, #162433);
  color: #e6f2ff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 2px 10px rgba(28,134,219,0.15);
}
.nav-btn:hover {
  background: linear-gradient(180deg, #20364b, #1a2e41);
  box-shadow: 0 6px 18px rgba(44,164,252,0.25);
}
.nav-btn:active { transform: translateY(1px); }

.nav-icon { font-size: 16px; line-height: 0; margin: 0 2px; }

.nav-counter {
  color: #b8c7d9;
  font-weight: 600;
  font-size: 12px;
  padding: 0 6px;
  min-width: 64px;
  text-align: center;
}
.nav-sep {
  width: 1px;
  height: 22px;
  background: #263142;
  border-radius: 1px;
}



@media (max-width: 900px) {
  .docs-layout { flex-direction: column; }
  .sidebar { width: 100%; border-bottom: 1px solid #1a1d26; }
  .content { padding: 25px; }
}

@media (max-width: 700px) {
  .topbar-logo {
    height: 38px;
  }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #222 #0a0a0a;
}
