:root {

  --bg-main: #f6f8fc;
  --bg-sidebar: #ffffff;
  --bg-content: #ffffff;
  --bg-right: #ffffff;

  --border-color: rgba(0,0,0,0.06);
  --card-border: rgba(99,102,241,0.15);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent: #6366f1;
  --accent2: orange;

  --highlight: rgba(99,102,241,0.12);

  --header-bg-rgb: 255,255,255;

  --sidebarWidth: 270px;
  --sidebarRightWidth: 220px;
  --breadcrump-bg:#ffffff;
}

/* DARK MODE */
html.dark-mode {
  --bg-main: #0f1117;
  --bg-sidebar: #161b22;
  --bg-content: #0f1117;
  --bg-right: #161b22;

  --border-color: rgba(255,255,255,0.06);
  --card-border: rgba(99,102,241,0.25);

  --text-primary: #e6edf3;
  --text-secondary: #9da5b4;
  --text-muted: #6b7280;

  --header-bg-rgb: 16,17,23;
  --breadcrump-bg:  #161b22;
}


/* =========================
   BASE
========================= */
body {
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
}

html, body { height: auto; overflow-x: hidden; overflow-y: auto; }


/* =========================
   HEADER (GLASS)
========================= */
.header {
  position: fixed;
  top:0;
  width:100%;
  height:60px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 20px;
  z-index:1000;

  background: rgba(var(--header-bg-rgb),0.75);
  backdrop-filter: blur(12px);

  border-bottom:1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}



.header-left { display:flex; gap:10px; align-items:center; }
.logo { height:34px; }

.header-right {
  display:flex;
  align-items:center;
  gap:10px;
  margin-right:50px;
}



.product {
   color: #405394;
   font-weight: 600;
}

#searchBox,
#themeToggle,
#swapBtn{
  background: rgba(var(--header-bg-rgb), 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

/* Desktop */
.search-toggle {
  display: none;
}

#searchBox{
  width:300px;
}

#searchBox:focus {
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

#swapBtn,
#themeToggle {
  cursor: pointer;
  width: 40px;
  height: 30px; /* same height for all */
}



/* =========================
   PREMIUM SEARCH DROPDOWN
========================= */

#searchResults {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;

  max-height: 420px;
  overflow-y: auto;

  border-radius: 16px;
  padding: 10px;

  background: rgba(var(--header-bg-rgb), 0.95); /* solid */

  backdrop-filter: blur(16px);

  border: 1px solid rgba(99,102,241,0.15);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.03) inset;

  z-index: 3000;

  animation: fadeIn 0.2s ease;
}

/* smooth entry */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   GROUP TITLE
========================= */
.group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;

  color: var(--text-muted);
  padding: 10px 12px 6px;
}

/* =========================
   SEARCH ITEM
========================= */
.search-item {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 6px;

  transition: all 0.2s ease;
  cursor: pointer;

  border: 1px solid transparent;
}

/* hover effect */
.search-item:hover {
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.12),
    rgba(34,197,94,0.08)
  );

  border: 1px solid rgba(99,102,241,0.25);

  transform: translateX(4px);
}

/* active selection (keyboard nav) */
.search-item.active {
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.18),
    rgba(34,197,94,0.12)
  );

  border: 1px solid rgba(99,102,241,0.35);

  box-shadow: 0 0 12px rgba(99,102,241,0.25);
}

/* link */
.search-item a {
  text-decoration: none;
  display: block;
}

/* =========================
   TITLE + SNIPPET
========================= */
.search-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.search-snippet {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================
   BEST MATCH BADGE
========================= */
.best-match {
  position: relative;
}

.best-match::after {
  content: "Best match";
  position: absolute;
  top: 8px;
  right: 10px;

  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;

  background: linear-gradient(90deg, #6366f1, #22c55e);
  color: white;
}

/* =========================
   SEARCH PAGE HIGHLIGHT
========================= */
.search-page {
  font-weight: 600;
  color: var(--accent);
}

/* =========================
   HIGHLIGHTED TEXT
========================= */
mark {
  background: linear-gradient(
    90deg,
    rgba(99,102,241,0.25),
    rgba(34,197,94,0.25)
  );
  color: inherit;
  padding: 0 3px;
  border-radius: 4px;
}

/* =========================
   SCROLLBAR (PREMIUM)
========================= */
#searchResults::-webkit-scrollbar {
  width: 6px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 10px;
}

/* =========================
   EMPTY STATE / HINT
========================= */
.search-hint {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px;
  text-align: center;
}



.layout{
  display:grid;
  grid-template-columns: var(--sidebarWidth) 1fr var(--sidebarRightWidth);
  grid-template-areas: "sidebarRight content sidebar";
  height: calc(100vh - 180px); /* full viewport below header */
  transition: grid-template-columns 0.3s ease;
  padding: 70px 16px 80px;
  overflow: hidden; /* ❗ IMPORTANT */
  column-gap: 10px;
}

/* Swap Layout */
.layout.swap {
  grid-template-columns: var(--sidebarRightWidth) 1fr var(--sidebarWidth);
  grid-template-areas: "sidebar content sidebarRight";
}

.sidebar{
  grid-area: sidebar;
  border-radius:16px;
  background: linear-gradient(180deg, var(--bg-right), rgba(99,102,241,0.04));
  flex-direction:column;

}

.sidebarRight{
  grid-area: sidebarRight;
  border-radius:16px;
  background: linear-gradient(180deg, var(--bg-right), rgba(99,102,241,0.04));

}

.content{
  grid-area: content;
  max-width: calc(100vw - 500px);
  max-width: 1024px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-content), rgba(99,102,241,0.03));

}

.sidebar,
.sidebarRight,
.content {
  padding: 20px;
  padding-top: 5px;
  border:2px solid var(--card-border);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    inset 0 0 20px rgba(255,255,255,0.02);
  scrollbar-width: thin;
  scroll-behavior: smooth;
  scrollbar-color: var(--bg-main) transparent; /* thumb color | track color */
  height: calc(100vh - 160px); /* full viewport below header */
  overflow-y:auto; 
}

.sidebar:hover,
.sidebarRight:hover,
.content:hover {
    scrollbar-color: var(--card-border) transparent; /* thumb color | track color */
}


body, .sidebar, .content, .sidebarRight {
  transition: background 0.25s ease, color 0.25s ease;
}



/* =========================
   TYPOGRAPHY
========================= */
.content h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom:20px;
}


.content h2 {
  font-size: 26px;
  margin-top: 40px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content h3 {
  margin-top: 40px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.content h4 {
  margin-top: 40px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.sidebarRight h2,
.sidebarRight h1 {
  font-size: 34px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebarRight ul,
.sidebarRight p,
.content p {
  font-size:15px;
  line-height:1.9;
  color: var(--text-secondary);
  text-align: justify;
}

.sidebarRight ol li,
.content ul li,
.content ol li {
  line-height:1.8;
  margin-bottom:8px;
  text-align: justify;
  letter-spacing: 0.2px;
  word-spacing: 1px;
  padding-bottom: 10px;
}


.content img{
  max-width: 700px;
  max-height: 450px;
  margin-left: 30px;
  display:block;
  margin-top: 10px;
  margin-bottom: 10px;
  border:1px solid #e5e5e5;
  border-radius:6px;
  background:#fafafa;
}

.note{
  color: orange;
}


.article{min-width:0}
.article h1,
.article h2,
.article h3 {
  scroll-margin-top: 20px;
}


.sidebar a{
display:block;
padding:6px 10px;
border-radius:6px;
color:  var(--text-secondary);
text-decoration:none;
list-style: none;
font-size:13px;
}

.sidebar a.active{
background:#0057ff;
color:white;
}

.sidebar a:hover{
background:orange;
color:white;
}

.sidebar li{
display:block;
padding:6px 10px;
border-radius:6px;
color:  var(--text-secondary);
text-decoration:none;
list-style: none;
}

.sidebar li.active{
background:#0057ff;
color:white;
}

.sidebar li:hover{
background:orange;
color:white;
}


.toc{position:sticky; padding-top:0px; font-size:13px;}
.toc ul{list-style:none;padding:0;}
.toc ul ul {list-style:none;padding-left:20px;}

.toc li{margin-bottom:6px;}

.toc a:hover{
 text-decoration:underline;
}

.toc a{
color:#666;
text-decoration:none;
}


.toc a.active{
font-weight:600;
color:white;
}

.sidebarRight h3{
  padding-top: 30px;
}




.breadcrumb{
  position:sticky; 
  top:-20px; 
  background: var(--breadcrump-bg);
  z-index: 2000;
  width: 186px;
  padding-top: 10px;
  padding-left: 20px;
  margin-left: -20px;
  margin-top: -20px;
  padding-bottom: 15px;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: orange;
}

.breadcrumb h4,
.breadcrumb h3 {
  padding-top: 20px;
  background: linear-gradient(90deg, var(--accent2), var(--accent) );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.active-section {
  position: relative;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(99,102,241,0.15), transparent);
  padding: 6px;
  transition: all 0.3s ease;
}

.active-section::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #6366f1, #818cf8);
}


/* Footer */
.footer{
position: fixed;
bottom:0;
width:100%;
height:50px;
display:flex;
justify-content:space-between;
align-items:center;
padding:0 20px;
background: linear-gradient(90deg, #0f172a, #1e293b);
color:#ddd;
box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
gap:100px;
font-size:14px;
}


.footer-left{
  display:flex;
  margin-left: 10px;
  align-items:center;
  gap:100px;
  height: 40px;
}

.footer-right{
  display:flex;
  margin-right: 50px;
  justify-content: flex-end;

}


.imgHover:hover img{
  transform:scale(1.05);
  transition:0.3s;
}

/* Previous and next navigation */
.doc-navigation{
display:flex;
justify-content:space-between;

border-top:1px solid #eee;
padding-top:20px;
gap: 5px;
}

/* =========================
   BUTTONS
========================= */

.btn-demo,
.nav-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:white;
  padding:10px 18px;
  border-radius:8px;
  text-decoration:none;
  border:none;
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
  transition: all 0.25s ease;

}

.btn-demo:hover,
.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99,102,241,0.4);
}


.helpBtn{
display: flex;
flex-direction: column;
gap: 20px;

border-top:1px solid #eee;
padding-top:20px;  
}

summary {
  cursor: pointer; /* Makes it look more like a button */
  padding: 20px;
  background: var(--bg-summary);
  border:2px solid var(--card-border);
  border-radius: 5px;
  font-size:13px;
  margin-left: -20px;
  margin-right: -20px;

}


table{
    border-collapse:collapse;
    margin:30px 0;
    border-radius:10px;
    overflow:hidden;
    font-family:Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--text-primary);
}

/* Header */

thead{
background: linear-gradient(90deg, var(--accent), var(--accent2));
color:white;
}

thead th{
  padding:10px;
  font-weight: bold;
  font-size: 14px;
  text-align: left;
  border-bottom:1px solid var(--border-color);
}

/* Table cells */

td{
  padding:10px;
  padding-left:10px;
  padding-right:10px;
  border-bottom:1px solid var(--border-color);
  font-size: 14px;
}

/* Alternate rows */

tbody tr:nth-child(even){
background:#f5f7fb;
    color: black;
}

tbody tr:nth-child(odd){
background:#ffffff;
    color: black;
}


.icon-inline {
  white-space: nowrap;
  background: var(--highlight);
  padding: 2px 6px;
  border-radius: 6px;
}

.inline-icon-group {
  display: inline-flex;       /* 🔥 key fix */
  align-items: center;
  gap: 6px;
  white-space: nowrap;        /* 🔥 prevents breaking */
}

.inline-icon-group img {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.doc-icon {
  display: inline-block; /* 🔥 important */
  width: 20px;
  vertical-align: middle;
  margin: 0 4px;
}

iframe {
  border-radius: 12px;
  border: none; /* optional - cleaner look */
  margin-left: 30px;
}


/* -----------------------------
KNOWLEDGE HERO CARD
----------------------------- */
.hero-card {
  position: sticky;
  top: 60px;

  padding: 24px;
  border-radius: 18px;

  background: var(--card-bg);
  border: 1px solid var(--border-color);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 1px 2px rgba(0,0,0,0.05);

  transition: all 0.3s ease;

  position: relative; /* IMPORTANT */
  overflow: hidden;   /* IMPORTANT */
}

/* DARK MODE */
body.dark .hero-card {
  background: linear-gradient(
    145deg,
    rgba(30,30,30,0.9),
    rgba(20,20,20,0.7)
  );

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.6);
}

/* -----------------------------
BADGE
----------------------------- */
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;

  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(59,130,246,0.1);
  color: #3b82f6;

  margin-bottom: 10px;
}

/* -----------------------------
TITLE
----------------------------- */
.hero-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;

  margin-bottom: 10px;
}

/* -----------------------------
SUBTITLE
----------------------------- */
.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);

  margin-bottom: 16px;
}

/* -----------------------------
DIVIDER
----------------------------- */
.hero-divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

/* -----------------------------
POINTS
----------------------------- */
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.hero-points li {
  font-size: 14px;
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.hero-points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-size: 12px;
}

/* -----------------------------
CTA BUTTON
----------------------------- */
.hero-cta {
  display: block;
  text-align: center;

  padding: 12px;
  border-radius: 12px;

  font-weight: 600;
  font-size: 14px;

  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;

  text-decoration: none;

  transition: all 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}

/* -----------------------------
ANIMATED GRADIENT BORDER
----------------------------- */
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px; /* slightly outside */

  border-radius: 20px;

  background: linear-gradient(
    120deg,
    #3b82f6,
    #6366f1,
    #8b5cf6,
    #3b82f6
  );

  background-size: 300% 300%;

  animation: borderFlow 6s linear infinite;

  z-index: 0;
}

/* MASK INNER CONTENT */
.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;

  border-radius: 18px;

  background: var(--card-bg);

  z-index: 1;
}

@keyframes borderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-card > * {
  position: relative;
  z-index: 2;
}

.hero-card:hover::before {
  filter: blur(6px);
  opacity: 0.8;
}


.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  padding: 1px; /* border thickness */

  background: linear-gradient(
    270deg,
    #6366f1,
    #22c55e,
    #06b6d4,
    #6366f1
  );

  background-size: 300% 300%;
  animation: borderFlow 6s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gradient-border::after {
  background: inherit; /* instead of var(--bg-content) */
}

.gradient-border::after {
  background: inherit; /* instead of var(--bg-content) */
}


.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1400;
  display: none;
}

.drawer-overlay.active {
  display: block;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 901px) {

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas: "content";
  }

  .layout.swap {
    grid-template-columns: 1fr;
    grid-template-areas: "content";
  }

  .content {
    max-width: 100%;
  }


  /* LEFT SIDEBAR → DRAWER */
  .sidebar {
    position: fixed;
    top: 60px;
    right: 0;
    width: 220px;
    height: calc(100vh - 140px);

    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1500;

    background: var(--bg-sidebar);
  }

  /* RIGHT SIDEBAR → DRAWER */
  .sidebarRight {
    position: fixed;
    top: 60px;
    left: 0;
    width: 270px;
    height: calc(100vh - 140px);

    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1500;

    background: var(--bg-sidebar);
  }

  /* OPEN STATES */
  .sidebar.open {
    transform: translateX(0);
  }

  .sidebarRight.open {
    transform: translateX(0);
  }

  #searchResults{
      width: calc(100vw - 150px);
      max-width: 500px;
      height: calc(100vh - 200px);
  }

  #searchBox {
    display: none;
    width: 100%;
  }

  #searchBox.active {
    display: block;
  }

  .search-toggle {
    display: block;
    font-size: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .header-right.search-open #themeToggle,
  .header-right.search-open #swapBtn {
    display: none;
  }

  .header-right.search-open #searchBox {
    display: block;
    width: 100%;
  }

  .product{
    display: none;
  }

}

@media (min-width: 901px) {
  #openLeft,
  #openRight {
    display: none;
  }
}

/* Mobile media query */
