/* ===================== LIGHT MODE (default scheme) ===================== */
/* ----------------------Heading color and font size----------------*/
/* Hide the top "site name" title in the left sidebar */
.md-sidebar--primary .md-nav__title {
  display: none !important;
}
[data-md-color-scheme="default"] img.icon {
  filter: brightness(0) saturate(100%) invert(19%) sepia(95%) saturate(7491%) hue-rotate(244deg) brightness(94%) contrast(103%);
}

[data-md-color-scheme="slate"] img.icon {
  filter: brightness(0) saturate(100%) invert(75%) sepia(7%) saturate(1784%) hue-rotate(201deg) brightness(102%) contrast(103%);
}



/*.md-nav__icon {
    display: none !important;
}*/

.md-typeset h1,.md-typeset h2,.md-typeset h3,.md-typeset h4,.md-typeset h5,.md-typeset h6 {
  color: #2b2b2b; 
}
.md-typeset h1 {
  font-size: 28px;
  font-weight: 600;
}
.md-typeset h2 {
  font-size: 24px;
  font-weight: 600;
}
.md-typeset h3 {
  font-size: 20px;
  font-weight: 600;
}
.md-typeset h4 {
  font-size: 20px;
  font-weight: 500;
}
.md-typeset h5 {
  font-size: 18px;
  font-weight: 500;
}
.md-typeset h6 {
  font-size: 18px;
  font-weight: 400;
}
/* Change body text weight */
.md-typeset {
  font-size: 16px;
  font-weight: 400;  /* Normal */
  color: #2c2c2c;
}
.md-typeset h1
{
  margin-bottom: 0px;
}
.md-typeset h2{
  margin: 0;
}
.md-typeset strong {
  font-weight: 600;  /* Bold text */
}
.md-header {
    background-color: #ffffff;
    color: #2b2b2b;
}
.md-search__form {
    border-radius: .1rem;
    height: 1.8rem;
    border: 1px solid #2b2b2b;
    background-color: #ffffff;
}
.md-search__input+.md-search__icon {
  color: #2b2b2b;
}
.md-search__input::placeholder {
  color: #2b2b2b !important;     /* "Search" placeholder */
  opacity: 0.8;              /* make it slightly dim */
}
.md-search__input::placeholder {
  color: #2b2b2b !important;     /* "Search" placeholder */
  opacity: 0.8;              /* make it slightly dim */
}
.md-main__inner {
  margin-top: 0;
}
.md-sidebar--primary .md-sidebar__scrollwrap {
    border-right: 1px solid #d3d3d367;
}
[data-md-color-scheme="slate"] .md-header {
    background-color: #1E2129;
    color: #ffffff;
    border-bottom: 1px solid #d3d3d367;
}
/* Force header to always show the site name */
/* Keep site name always visible in the header */
.md-header__title {
  display: flex;
  align-items: center;
}

/* Prevent the site name from disappearing on scroll */
.md-header__topic:first-child {
  display: inline !important;   /* keep "Saralflow Documentation" */
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hide the dynamic page title that replaces it */
.md-header__topic:not(:first-child) {
  display: none !important;
}

/*-----------Left-side Navigation (Sidebar menu)------------------ */
.md-nav__link {
  font-size: 15px;   
}

.md-nav--secondary .md-nav__title::before {
  /*content: "📑"; */             /* table of contents icon */
  content: "📖";
  font-size: 16px;
  margin-right: 6px;
  color: #3e0fca;
}
.md-nav--secondary .md-nav__title, .md-nav--primary .md-nav__title
{
  color: #2b2b2b;
  font-weight: 600;
  font-size: 16px;
}
/*--------Other Font size------*/
.md-typeset .admonition>:last-child
{
  font-size: 16px;
}
.md-typeset code:not(.focus-visible)
{
  font-size: 16px;
}

/* --- Top-level nav items (level 1) --- */
.md-nav__list > .md-nav__item > .md-nav__link {
  font-size: 14px;              /* bigger font for main sections */
  font-weight: 600;             /* bold */
  color: #2b2b2b !important;    /* dark gray text */
}

/* --- Second-level nav items (level 2) --- */
.md-nav__list .md-nav__list .md-nav__link {
  font-size: 14px;              /* smaller font */
  font-weight: 400;          /* regular weight */
  color: #2c2c2c !important;       /* lighter gray */
}

/* Hover state for sidebar nav links */
.md-sidebar--primary .md-nav__link:hover,
.md-sidebar--secondary .md-nav__link:hover {
  color: #3e0fca !important;   /* Blue hover */
}

/* Active (current page) link in sidebar */
.md-sidebar--primary .md-nav__link.md-nav__link--active{
  color: #3e0fca !important;   /* Blue active */
  font-weight: 600 !important; /* Bold active */
}

/* ===================== DARK MODE (slate scheme) ===================== */
[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3,
[data-md-color-scheme="slate"] .md-typeset h4,
[data-md-color-scheme="slate"] .md-typeset h5,
[data-md-color-scheme="slate"] .md-typeset h6 {
  color: #ffffff;   /* White text in dark mode */
}
[data-md-color-scheme="slate"] .md-typeset {
  color: #eaeaea;     /* Soft light gray for dark mode */
}
[data-md-color-scheme="slate"] .md-nav--secondary .md-nav__title,
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__title {
  color: #ffffff;      /* Soft light gray */
}
/* ================== DARK MODE ================== */

/* --- Top-level nav items (level 1) --- */
[data-md-color-scheme="slate"] .md-nav__list > .md-nav__item > .md-nav__link {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f5 !important;   /* bright text */
}

/* --- Second-level nav items (level 2) --- */
[data-md-color-scheme="slate"] .md-nav__list .md-nav__list .md-nav__link {
  font-size: 14px;
  font-weight: 400;
  color: #eaeaea !important;   /* softer gray */
}
/* ===================== RIGHT SIDEBAR (Table of Contents) ===================== */

/* Reset default multiple active */
.md-sidebar--secondary .md-nav__link.md-nav__link--active {
  color: inherit !important;
  font-weight: normal !important;
  background: transparent !important;
}
/* Hover state */
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link:hover {
  color: #b3a6ff !important;   /* Purple hover */
}

/* Active (current page) link in LEFT sidebar */
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link.md-nav__link--active {
  color: #b3a6ff !important;   /* Bright purple */
  font-weight: 600 !important;
}

/* Reset multiple actives in RIGHT sidebar */
[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link.md-nav__link--active {
  color: inherit !important;
  font-weight: normal !important;
}

/* Only highlight current visible section */
[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link.active-only {
  color: #b3a6ff !important;
  font-weight: 600 !important;
  border-radius: 4px;
}

/* Hover still works on non-active */
[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link:not(.active-only):hover {
  color: #b3a6ff !important;
}
/* Custom active */
.md-sidebar--secondary .md-nav__link.active-only {
  color: #3e0fca !important;
  font-weight: 600 !important;
  /*background: rgba(62, 15, 202, 0.08);*/
  border-radius: 4px;
}

/* Hover works everywhere (except active) */
.md-sidebar--secondary .md-nav__link:not(.active-only):hover {
  color: #3e0fca !important;
}
/*---Footer section--*/
.md-footer {
    background-color: #fff;
    color: #000;
}
[data-md-color-scheme="slate"] .md-footer {
    background-color: #1E2129;
    color: #fff;
}
.md-footer-meta 
{
  background-color: #ffffff;
  color: #1E2129;
}
.md-copyright__highlight {
    color: #1E2129;
}
.md-copyright
{
     color: #1E2129;
}
.md-footer-meta__inner {
    justify-content: center;
    align-items: center;
}
.md-footer__inner
{
   border-bottom: 1px solid #cdcdcd;
}
