/* =====================================
   SaaS Documentation Portal
   Full Standalone Docs Stylesheet
===================================== */

/* Root Design Tokens */

:root {

  --docs-bg: #ffffff;
  --docs-text: #1f2937;

  --docs-primary: #56aeff;
  --docs-primary-dark: #145da0;

  --docs-muted: #6b7280;
  --docs-border: #edf0f5;

  --docs-sidebar-width: 260px;

  font-family: "Inter", system-ui, sans-serif;
}

/* Reset */

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--docs-bg);
}

/* Layout */

.doc-container {
  display: flex;
  height: calc(100vh - 80px);
  margin-top: 80px;
}

/* Sidebar */

.sidebar {
  background: #fafbfc;
  border-right: 1px solid #e6e9ef;
  padding-top: 28px;
  padding-left: 20px;
  padding-right: 15px;
  width: 200px;
}

.sidebar h2 {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-top: 22px;
}

.sidebar p {
  font-size: 14px;
  padding: 6px 0 6px 46px;
  color: #374151;
}

.sidebar a {
  color: #374151;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  color: var(--docs-primary);
}

.sidebar a.active {
  color: var(--docs-primary);
  font-weight: 600;
  border-left: 3px solid var(--docs-primary);
  padding-left: 12px;
  background: rgba(86,174,255,0.08);
  border-radius: 4px;
}

/* Main Content */

.main {
  flex: 1;
  overflow-y: auto;
  padding: 64px 80px;
  color: var(--docs-text);
  line-height: 1.7;
}

/* Typography */

.main h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #111827;
}

.main h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111827;
}

.main h3 {
  font-size: 1.3rem;
  margin-top: 48px;
  color: #374151;
}

.main h4 {
  color: #94a3b8;
  margin-top: 36px;
}

.main p {
  font-size: 16px;
  color: #374151;
  margin-bottom: 18px;
}

/* Lists */

.main ol,
.main ul {
  padding-left: 24px;
  margin-bottom: 28px;
}

.main li {
  margin-bottom: 10px;
}

/* Table of Contents */

.contents {
  background: #f8fbff;
  border-radius: 18px;
  padding: 26px;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.04),
    0 2px 6px rgba(0,0,0,0.02);
}

.contents a {
  display: block;
  margin: 8px 0;
  color: var(--docs-primary-dark);
  font-size: 14px;
}

/* Search */

.doc-search {
  position: relative;
  max-width: 500px;
}

#searchBox {
  width: 100%;
  padding: 13px 52px 13px 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  font-size: 14px;
}

#searchBox:focus {
  outline: none;
  border-color: var(--docs-primary);
  box-shadow: 0 0 0 3px rgba(86,174,255,0.18);
}

/* Progress Bar */

#docProgressBar {
  position: fixed;
  top: 80px;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--docs-primary);
  z-index: 99998;
}

/* Reveal Animation */

.doc-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.doc-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sidebar Mobile Behaviour */

.docs-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 1024px) {

  .main {
    padding: 50px 40px;
    margin-left: 260px;
  }

}

@media (max-width: 768px) {

  .sidebar {
    position: fixed;
    left: -100%;
    width: 80%;
    z-index: 20000;
  }

  .sidebar.open {
    left: 0;
  }

  .main {
    padding: 40px 24px;
    margin-left: 0;
    max-width: 100%;
  }

  .docs-toggle {
    display: block;
  }
}


.Sidebar-logo {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin-left: 24px;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  width: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  background: white;
  border-bottom: 1px solid #edf0f5;
}