/* Custom Docsify Theme */

/* Make the page background exactly the same as the content */
html,
body {
    background-color: #e8e8e8 !important;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #4d4d4d;
  border-radius: 4px;
}
.sidebar:hover::-webkit-scrollbar-thumb {
  background: rgb(136, 136, 136);
}
.sidebar:hover::-webkit-scrollbar-track {
  background: rgba(136,136,136,0.4);
}
/* Ensure the Docsify content wrapper also covers all leftover space */
.content {
    background-color: #e8e8e8 !important;
}


/* Sidebar background and text */
#sidebar,
.sidebar {
    background-color: #1e1e1e;
}

/* Sidebar links */
#sidebar a,
.sidebar-nav a {
    color: #e84934;
}

/* Main content background and text */
.markdown-section,
#main,
.content {
    background-color: #e8e8e8;
    color: #1a1a1a;
}

/* Main content links */
.markdown-section a,
#main a,
.content a {
    color: #e84934;
    text-decoration: none;
}
.markdown-section a:hover {
  text-decoration: underline !important; /* Adds the underline only on hover */
}


.anchor span {
    color: #1e1e1e;
}


/* 2) All sidebar links */
.sidebar ul li a {
    color: #cd3a12 !important;
    font-size: 16px;
}

/* 3) Nested (child) links */
.sidebar ul li ul li a {
    color: #e8e8e8 !important;
    font-size: 14px;
}

/* 4) Optional: change hover or active if you like */
.sidebar ul li a:hover {
    text-decoration: underline;
}

/* 1) Reset all list‐based indenting */
.sidebar ul,
.sidebar ul ul {
    margin: 0 !important;
    padding: 0 !important;
}

/* 2) Make every LI span the full width and be a positioning context */
.sidebar ul li {
    margin: 6px 0px 0px 20px !important;
    /* top/bottom spacing only */
    position: relative !important;
}


/* 5) Flush‐right active‐item bar */
.sidebar ul li.active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    /* now truly at the sidebar’s inner edge */
    width: 4px;
    /* bar thickness */
    height: 100%;
    background: #e84934;
    /* your chosen accent */
}

/* Inline snippets: `<code>` inside paragraphs, lists, etc. */
.markdown-section code {
    background-color: #ffffff;
    border-radius: 2px;
    color: #e84934;
    font-family: 'Roboto Mono', Monaco, courier, monospace;
    margin: 0 2px;
    padding: 3px 5px;
    white-space: pre-wrap;
}

 section.cover {
      /* Common properties for both orientations */
      background-repeat: no-repeat !important;
      background-position: center center !important;
      background-size: 100% 100% !important; /* Stretches to fill exactly 100% width and height, distorting if needed */
      z-index: 100;

      /* Default background image (e.g., for landscape orientation or desktop) */
      background-image: url('assets/frame.svg') !important;
  }

  /* Media query to apply portrait-specific background image */
  @media (orientation: portrait) {
      section.cover {
          background-image: url('assets/frame-portrait.svg') !important;
      }
  }
.app-nav {
margin:10px 25px;
position: absolute;
z-index: 1;
}

.app-nav a {
    color: #4d4d4d;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

/* ----------------------------------------- */
/* Navbar styling for links inside the <p>   */
/* ----------------------------------------- */

/* 1) Make the paragraph a flex container, use gap */
.app-nav p {
    display: inline-flex !important;
    align-items: center;
    gap: 1.5rem !important;
    /* space between each button */
    margin: 0 !important;
    /* kill any theme margins */
    padding: 0 !important;
}

/* 2) Force link color and remove extra text-dec */
.app-nav p>a {

    text-decoration: none !important;
    /* If you want a hover style, add it here: */
}

/* Hide the GitHub corner icon */
.github-corner {
    display: none !important;
}

/* Resize the sidebar logo */
.sidebar>h1 img {
    max-width: 90%;
    /* or whatever width you prefer */
    height: auto;
    /* preserve aspect ratio */
    display: block;
    /* remove any inline spacing */
    margin: 0 auto 1rem;
    /* center it and add a bit of bottom space */
}


/* Responsive YouTube embeds */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    margin: 1.5em 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* restyle all Markdown horizontal rules */
.markdown-section hr {
    border: none;
    /* remove default border */
    height: 1px;
    /* set your own thickness */
    background-color: #bdbdbd;
    /* your chosen accent color */
    margin: 2em 0;
    /* vertical spacing above/below */
}




/* Style only that intro paragraph on the cover */
section.cover.show .cover-main p.cover-intro {
    color: #e84934;
    /* light grey */
    font-weight: bold;
    /* bold */
    margin: 0.5em;
    padding-left: 25px;
    padding-right: 25px;
    /* less space to next line */
    font-size: 1.8rem;
    line-height: 1.1em;
    /* optional: bump size if you like */
}

/* -------------------------------------------------- */
/* Constrain and box the cover description text       */
/* -------------------------------------------------- */
section.cover.show .cover-main p.cover-description {
    max-width: 520px;
    /* limit line length */
    margin: 1em auto;
    padding: 20px;
    /* center and add vertical space */
    text-align: center;
    /* center the text (optional) */
}


/* Make every cover-page button filled (no more outline-only) */
section.cover .cover-main>p:last-child a {
    /* Use your theme color here (or var(--theme-color)) */
    background-color: #e84934 !important;
    border: 1px solid #e84934 !important;
    color: #fff !important;
}

/* Change cover buttons’ hover color */
section.cover .cover-main>p:last-child a:hover {
    background-color: #ffffff !important;
    /* your hover fill color */
    border-color: #ffffff !important;
    /* match border to fill */
    color: #1e1e1e !important;
    /* keep text white */
    opacity: 1 !important;
    /* reset any opacity tweaks */
}

/* 1) Change the global theme color from green to e84934 */
:root {
  --theme-color: #e84934;
}

/* 2) Ensure the search input focus ring uses your red */
.search input[type="search"]:focus {
  outline: none !important;
  border-color: #e84934 !important;
  box-shadow: 0 0 0 2px rgba(232, 73, 52, 0.5) !important;
  z-index: 100;
}

/* 3) Match highlights in the dropdown to your red */
.search .search-keyword {
  color: #e84934 !important;
}

/* 4) When hovering clear-icon or suggestion items */
.search a:hover {
  color: #e84934 !important;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section strong {
  color: #1e1e1e;
  font-weight: 600;
}



.markdown-section pre > code {
  background-color: #d5d5d5;
  border-radius: 15px;
  color: #1e1e1e;
  padding: 1.2em 15px;
  white-space: pre-wrap;
  border: 1px solid #a9a9a9;
}

.markdown-section pre {
  background-color: transparent;
  padding: 0;
}

.markdown-section figure, .markdown-section p, .markdown-section ul, .markdown-section ol {
    margin: 0.2em 0;
}

.markdown-section ol li::marker {
  color: #e84934; /* Your desired color (orange/red) */
  font-weight: bold; /* Make the numbers bold */
  font-size: 1.1em;  /* Slightly increase the size of the numbers */
  /* You can add other properties like font-family, etc. */
}

/* If you also want to style unordered list bullets */
.markdown-section ul li::marker {
  color: #e84934; /* Example color for bullets */
  font-size: 1.2em;
}

.sidebar ul > li > ul > li > ul > li > a {
  color: #8e8e8e !important;
  font-size: 13px;
  padding-left: 5px;
}

.sidebar ul > li > ul > li > ul > li.active > a {
  color: #8e8e8e;
  font-weight: 600;
}

.responsive-logo {
    width: 80%;      
    max-width: 600px; 
    height: auto;    
    display: block;  
    margin: 20px auto;
}
@media screen and (max-width: 768px) {
    .markdown-section {
        max-width: none;
        padding: 60px 30px 0 30px;
    }
    .content {
        padding-top: 60px;
    }
}

.sidebar-toggle {
    position: fixed !important; /* Make sure it's positioned relative to the viewport */
    top: 0 !important;          /* Align to the very top */
    left: 0 !important;         /* Align to the very left */
    bottom: auto !important;    /* Reset bottom position if it was set */
    right: auto !important;     /* Reset right position */
    padding: 15px 15px 15px 15px !important; /* Adjust padding for better spacing */
    background-color: transparent !important; /* Make background transparent */
    border: none !important;    /* Remove any border */
    box-shadow: none !important; /* Remove any shadow */
    z-index: 999 !important;    /* Ensure it's above other content */
    color: var(--docsify-theme-text-color, #34495e) !important; /* Inherit or set text color */
    cursor: pointer;
    font-size: 24px; /* Adjust icon size if needed */
    line-height: 1; /* Prevent extra space around icon */
}

/* Optional: Adjust main content area to prevent overlap on small screens */
@media screen and (max-width: 768px) {
    .markdown-section {
        padding-left: 40px !important; /* Give space for the button on the left */
    }
}


/* custom.css */

/* --- Existing CSS for Sidebar Toggle (from previous answer) --- */
.sidebar-toggle {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    right: auto !important;
    
    padding: 15px !important; /* Adjust if your toggle size changes */
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 999 !important;
    color: var(--docsify-theme-text-color, #34495e) !important;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
/* --- End existing CSS for Sidebar Toggle --- */


/* --- New/Modified CSS for Search Bar --- */
.docsify-sidebar .search {
    position: fixed; /* Keep it fixed so it scrolls with the page */
    top: 55px; /* Adjust this value: height of toggle (approx 50px) + desired gap */
    left: 0;
    width: 100%; /* Take full width */
    background-color: var(--docsify-theme-navbar-background, #fff); /* Match navbar background or your preference */
    padding: 10px 20px; /* Adjust padding as needed */
    box-sizing: border-box; /* Include padding in width */
    z-index: 990; /* Lower than toggle (999), higher than content */
    border-bottom: 1px solid var(--docsify-theme-border-color, #eee); /* Optional border */
}

/* Adjust the input field within the search container */
.docsify-sidebar .search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Adjust the main content area and sidebar padding to account for fixed elements */
/* We need to push content down by the combined height of toggle + search */
.content, .sidebar {
    /* Calculate total height:
       Toggle height: ~50px (24px font-size + 15px top/bottom padding)
       Search height: ~50px (8px input padding + 10px top/bottom container padding + border)
       Total: ~100px + any desired gap
    */
    padding-top: 35px !important; /* Adjust this value carefully based on your exact heights */
}

/* Optional: If you have a top navbar, you'll need to move it further down or hide it */
.docsify-navbar {
    display: none; /* Hide if you don't want a top navbar with this layout */
    /* OR reposition it further down: */
    /* top: 105px !important; */
    /* z-index: 980 !important; */
}

/* --- Mobile Adjustments (important!) --- */
@media screen and (max-width: 768px) {
    /* Ensure toggle remains at top-left */
    .sidebar-toggle {
        /* Already defined above, just ensure no conflicts */
        z-index: 1000 !important; /* Make sure it's highest on mobile too */
    }

    /* Adjust search bar for mobile */
    .docsify-sidebar .search {
        top: 55px; /* Same top value as desktop for consistency */
        width: 100%;
        left: 0;
        z-index: 990;
    }

    /* On mobile, Docsify typically moves the sidebar to the left with an overlay. */
    /* Ensure the sidebar itself doesn't conflict with the fixed elements when open. */
    /* This might require testing and further adjustments depending on exact theme. */
    .sidebar {
        padding-top: 35px !important; /* Push internal sidebar content down too */
        /* If sidebar opens as an overlay, its initial position might not need 'top' adjustment,
           but its internal content will to avoid being covered. */
    }
}

.markdown-section table td {
  padding: 1.5em 1em; /* adjust top/bottom and left/right */
}

.markdown-section table th {
  background-color: #1e1e1e !important;
  color: #fff;
}

/* odd data rows */
.markdown-section table tr:nth-child(odd) td {
  background-color: #ffffff;
}

/* even data rows */
.markdown-section table tr:nth-child(even) td {
  background-color: #f3f3f3;
}

.markdown-section table .alert-note {
  background-color: #eaeaea;
  border-style: solid;
  border-color:#bdbdbd;
  color: #e84934;
  padding: .6em 1em;
  border-radius: 4px;
  margin-top: 0.5em;
  display: inline-block;
}