* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #0b0b0b;
    color: #e5e5e5;
}

a {
    color: #fff;
}

/* header */

.header {
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    position: fixed;
    background-color:#0b0b0b;
    border-bottom: 1px solid #1f1f1f;
    z-index: 1;
}

.header-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header button {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 50px;
    color: #717171;
    padding: 8px 14px;
    cursor: pointer;
}

/* Layout */
.app {
    display: grid;
    grid-template-columns: 285px 1fr 260px;
    transition: grid-template-columns 0.3s ease;
}

.app.sidebar-collapsed {
    grid-template-columns: 0px 1fr 260px;
}

.app.sidebar-collapsed .sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-right: none;
}


/* Sidebar */
.sidebar {
    z-index: 0;
    position: fixed;
    background: #0b0b0b;
    border-right: 1px solid #1f1f1f;
    margin-top: 40px;
    padding: 20px;
    height: 100vh;
    width: 285px;
    overflow: hidden;
    transition: width 0.3s ease, transform 0.3s ease;
}

/* Scroll container */
.sidebar-nav {
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding-right: 6px;
}

/* Scrollbar (Frappe-like) */
.sidebar-nav::-webkit-scrollbar {
    width: 0px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

/* Menu */
.menu {
    list-style: none;
}

.menu-item {
    margin-bottom: 6px;
}

/* Menu button */
.menu-btn {
    width: 100%;
    background: none;
    border: none;
    color: #b3b3b3;
    font-family: ui-sans-serif, system-ui, sans-serif;
    text-align: left;
    font-size: 14px;
    padding: 1px;
    cursor: pointer;
}
.menu-btn {
    display: flex;
    justify-content: start;
    align-items: center;
}

.arrow {
    font-size: 18px;
    transition: transform 0.25s ease;
    color: #777;
}

.menu-item.active .arrow {
    transform: rotate(90deg);
    color: #fff;
}

.menu-btn:hover {
    color: #ffffff;
}

/* Submenu */

.submenu {
    list-style: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        transform 0.2s ease;

    padding-left: 14px;
}
.menu-item.active .submenu {
    max-height: 1000px; /* large enough for content */
    opacity: 1;
    transform: translateY(0);
}

.submenu li {
    margin: 2px 0;
}

.submenu a {
    display: block;
    padding: 1px;
    border-radius: 6px;
    font-size: 13px;
    color: #9a9a9a;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}



/* Hover effect (pill) */
.submenu a:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* Active page */
.submenu li.active a {
    background: grey;
    color: #ffffff;
}


.submenu li {
    font-size: 13px;
    padding: 6px 0;
    color: #9a9a9a;
    cursor: pointer;
}

.submenu li:hover {
    color: #ffffff;
}

/* Active state */
.menu-item.active .submenu {
    max-height: 500px; /* enough to expand */
}


/* Content */
.content {
    padding: 90px 80px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 30px;
    border-bottom: 1px solid #1f1f1f;

}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
}

/* Wrapper */
.edit-dropdown {
  position: relative;
  display: inline-block;
}

/* The pill container (looks like one button) */
.edit-pill-split {
  display: inline-flex;
  align-items: stretch;

  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  overflow: hidden;
}

/* Primary area */
.edit-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 12px;
  background: transparent;
  border: 0;

  color: #e5e5e5;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
}

/* Caret area */
.edit-caret-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  background: transparent;
  border: 0;

  cursor: pointer;
  position: relative;
}

/* Divider between main and caret */
.edit-caret-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #2a2a2a;
  opacity: 0.9;
}

.edit-icon {
  display: flex;
  opacity: 0.85;
}

.edit-caret {
  font-size: 12px;
  opacity: 0.7;
  color: #e5e5e5;
}

/* Hover: whole pill reacts */
.edit-pill-split:hover {
  background: #151515;
  border-color: #3a3a3a;
}

/* Optional: hover on sections */
.edit-main:hover .edit-text,
.edit-main:hover .edit-icon {
  opacity: 1;
}
.edit-caret-btn:hover .edit-caret {
  opacity: 1;
}

/* Dropdown menu */
.edit-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;

  min-width: 180px;
  padding: 6px 0;

  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}

.edit-dropdown.open .edit-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.edit-menu-item {
  padding: 8px 14px;
  font-size: 13px;
  color: #e5e5e5;
  cursor: pointer;
  transition: background 0.15s ease;
}

.edit-menu-item a {
    text-decoration: none;
    color: #717171;
}

.edit-menu-item:hover {
  background: #1a1a1a;
}

.edit-menu-divider {
  height: 1px;
  margin: 6px 0;
  background: #1f1f1f;
}


.intro {
    font-size: 16px;
    line-height: 20px;
    color: #cfcfcf;
    margin-bottom: 14px;
}

section {
    margin-top: 40px;
}

section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

section p {
    font-size: 15px;
    line-height: 1.7;
    color: #cfcfcf;
    margin-bottom: 10px;
}

section a {
    color: #4f9cff;
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}


                    /* Documentation content */



.doc-steps {
    margin-top: 60px;
    max-width: 780px;
    border-bottom: 1px solid #2a2a2a;
}

.breadcrumb-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 2px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    background: #151515;
    border: 1px solid #2a2a2a;
    color: #cfcfcf;
    white-space: nowrap;
}

.breadcrumbs-tag {
    display: block;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    border-radius: 4px;
    background: #151515;
    border: 1px solid #2a2a2a;
    color: #cfcfcf;
    white-space: nowrap;
}

.doc-text {
    font-size: 15px;
    line-height: 1.7;
    color: #cfcfcf;
    margin-bottom: 14px;
}

/* Screenshot */
.doc-image {
    margin: 24px 0;
    border-radius: 1px;
    overflow: hidden;
    border: 1px solid #1f1f1f;
    background: #0f0f0f;
}

.doc-image img {
    width: 100%;
    display: block;
}

/* Steps list */
.doc-list {
    margin: 20px 0 20px 20px;
    color: #e5e5e5;
}

.docs-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #1f1f1f;
}

/* Divider */
.doc-divider {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #1f1f1f;
}

/* Success message */
.doc-success {
    font-size: 16px;
    color: #e5e5e5;
    margin-bottom: 10px;
}


.note-box {
  border-left: 4px solid #666;
  padding: 12px 16px;
  background-color: #0f0f0f;
  max-width: 900px;
}

.note-box p {
  margin: 0;
  font-style: italic;
  color: #dcdcdc;
  font-size: 15px;
  line-height: 1.6;
}

    /* table content */

.table-container {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #0f0f0f;
  color: #e5e5e5;
  font-family: Arial, sans-serif;
}

.custom-table th {
    width: 25%;
  background-color: #1a1a1a;
  text-align: left;
  padding: 8px;
  border: 1px solid #2a2a2a;
  font-size: 12px;
  font-weight: 600;
}

.custom-table td {
  padding: 8px;
  border: 1px solid #2a2a2a;
  vertical-align: top;
  font-size: 12px;
  font-weight: 400;
}

.custom-table tr:hover {
  background-color: #1f1f1f;
}


                /* Bottom navigation */



.doc-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1f1f1f;
}

.doc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;
    border-radius: 14px;

    background: #0f0f0f;
    border: 1px solid #1f1f1f;

    text-decoration: none;
    color: #e5e5e5;

    transition: background 0.15s ease, border-color 0.15s ease;
}

.doc-nav:hover {
    background: #151515;
    border-color: #2a2a2a;
}

/* Previous aligns left */
.doc-nav.prev {
    justify-content: flex-start;
    gap: 14px;
}

/* Next aligns right */
.doc-nav.next {
    justify-content: flex-end;
    gap: 14px;
    text-align: right;
}

.nav-text small {
    font-size: 11px;
    color: #9a9a9a;
    letter-spacing: 0.04em;
}

.nav-text strong {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* Arrows */
.nav-arrow {
    font-size: 18px;
    color: #9a9a9a;
    transition: transform 0.15s ease;
}

.doc-nav.prev:hover .nav-arrow {
    transform: translateX(-4px);
}

.doc-nav.next:hover .nav-arrow {
    transform: translateX(4px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .doc-pagination {
        grid-template-columns: 1fr;
    }

    .doc-nav.next {
        justify-content: space-between;
        text-align: left;
    }
}




                    /* TOC */



.toc {
    position: fixed;
    top: 50px;              /* below header */
    right: 0;
    width: 260px;
    height: calc(100vh - 20px);
    padding: 40px 30px;
    border-left: 1px solid #1f1f1f;
    background: #0b0b0b;
    overflow-y: auto;
}


.toc h3 {
    font-size: 16px;
    margin-bottom: 14px;
}

.toc ul {
    list-style: none;
    margin-bottom: 30px;
}

.toc li {
    font-size: 14px;
    color: #b3b3b3;
    padding: 1px;
}
.toc a {
    text-decoration: none;
    color: #b3b3b3;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: #ffffff;
}

.toc a.active {
    color: #ffffff;
    font-weight: 500;
}


.feedback {
    border-top: 1px solid #1f1f1f;
    padding-top: 20px;
}

.feedback p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #b3b3b3;
}

.icons {
    font-size: 22px;
    letter-spacing: 10px;
    cursor: pointer;
}
