/* ========== DOCS LAYOUT & SIDEBAR ========== */
.docs-layout {
  display: flex;
  height: calc(100vh - 60px);
  background: #0f1113;
  color: #fff;
}

.docs-sidebar {
  width: 260px;
  background: #16171c;
  border-right: 1px solid #222;
  padding: 1rem;
  overflow-y: auto;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
}

.docs-sidebar h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

/* Search bar */
#doc-search {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #222;
  background: #1a1c20;
  color: white;
  font-weight: 600;
}

#doc-search:focus {
  outline: none;
  border-color: #00aaff;
  box-shadow: 0 0 2px #00aaff;
}

/* Docs groups + toggles + slide animation */
.docs-group {
  margin-bottom: 1rem;
}

.docs-group-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 4px;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docs-group-toggle:hover {
  color: #00aaff;
}

.docs-group-toggle .arrow {
  display: inline-block;
  transition: transform .25s ease;
}

/* Collapsible sublist with slide effect */
.docs-sub {
  list-style: none;
  padding-left: 12px;
  margin: 6px 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .22s ease;
}

.docs-sub.expanded {
  max-height: 400px;
  opacity: 1;
}

/* Links inside sidebar */
.docs-sub li a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  color: #cfcfcf;
  transition: .2s;
  font-weight: 600;
}

.docs-sub li a:hover {
  color: #00aaff;
}

.docs-sidebar li a {
  display: block;
  padding: .5rem;
  border-radius: 6px;
  text-decoration: none;
  color: #cfcfcf;
  font-weight: 600;
  transition: .2s;
}

.docs-sidebar li a:hover {
  background: #222;
  color: #00aaff;
}

/* Docs content */
.docs-toggle-btn {
  display: none;
  width: 100%;
  padding: 14px;
  margin-top: 1rem;
  background: #16171c;
  border: 1px solid #222;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.docs-toggle-btn:hover {
  background: #1b1d21;
}

.section-divider {
  width: 100%;
  max-width: auto;
  margin: 2rem auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.mini-section-divider {
  width: 50%;
  margin: 2rem auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.alert-box {
  padding: 20px;
  background-color: #8d000080;
  color: white;
  margin-bottom: 15px;
  gap: 12px;
  display: flex;
  align-items: center;
}

.alert-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  color: #8d000080;
  font-weight: bold;
  font-family: "Lato", sans-serif;
}

.info-alert {
  padding: 20px;
  background-color: rgba(0, 95, 173, 0.5);
  color: white;
  margin-bottom: 15px;
  gap: 12px;
  display: flex;
  align-items: center;
}

.info-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  color: #005fad;
  font-weight: bold;
  font-family: "Lato", sans-serif;
}

#intro p a {
  color: #00aaff;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: #131517;
  border: 1px solid #1f2225;
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
}

.doc-table thead th {
  background: #1c1f23;
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid #222;
}

.doc-table tbody td {
  padding: 12px 14px;
  color: #d1d1d1;
  border-bottom: 1px solid #1f2225;
}

.doc-table tbody tr:last-child td {
  border-bottom: none;
}

.doc-table tbody tr:hover {
  background: #1a1d20;
}

.doc-table code {
  background: #00000033;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #00aaff;
  font-size: 0.9rem;
}

.docs-content {
  flex: 1;
  padding: 2rem 3rem;
  overflow-y: auto;
}

.docs-content h1,
.docs-content h2 {
  margin-top: 2rem;
  font-weight: 800;
}

a {
  color: #00aaff;
}

pre {
  background: #1b1d21;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Lato", sans-serif;
  line-height: 1;
  display: inline-flexbox;
}

pre li {
  margin-left: 25px;
  line-height: 0.1;
}

.useful-link {
  text-decoration: none;
  color: #00aaff;
}

/* ========== RESPONSIVE ========== */
@media(max-width:1010px) {
  .docs-toggle-btn {
    display: block;
  }

  .docs-side .docs-layout {
    flex-direction: column;
  }

  .docs-sidebar {
    position: fixed;
    left: -100%;
    top: 60px;
    height: calc(100vh - 60px);
    width: 260px;
    z-index: 200;
    transition: left .25s ease;
  }

  .docs-sidebar.open {
    left: 0;
  }

  .docs-content {
    padding: 1rem;
  }

  .nav-center,
  .premium-btn,
  .brand {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-brand p {
    margin: 0 auto;
  }
}