/* ----------------------------- Sidebar on Mobile and Tablets --------------------------------- */
/* Base styles for the sidebar and toggle button */
/* Base styles for the sidebar and toggle button */
@media (max-width: 992px) {
  .AJDWP-sidebar {
    position: fixed;
    left: -350px; /* Start off-screen */
    width: 350px !important; /* Maximum width */
    max-width: 100%; /* Ensures responsiveness */
    height: 100%;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    z-index: 1050;
    background-color: #fff;
    top: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 0 !important;
  }

  /* Styling for the toggle button */
  #sidebarToggle {
    position: fixed;
    z-index: 1051;
    top: 50%; /* Center vertically */
    left: -10px; /* Slight offset from the edge */
    transform: translateY(-50%); /* Center correctly no matter the height */
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 30px;
    transition: all 0.3s ease;
    opacity: 0.6;
    filter: drop-shadow(0px 0px 2px black);
  }

  #sidebarToggle::after {
    transition: opacity 0.3s ease;
    opacity: 0;
    margin-left: 5px;
  }

  #sidebarToggle:hover::after {
    opacity: 1;
  }

  /* Close button inside the sidebar */
  .close-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    font-size: 30px;
    filter: drop-shadow(0px 0px 2px black);
  }
}

#sidebarToggle.hide {
  opacity: 0;
  visibility: hidden;
}

#sidebarOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  z-index: 1049; /* Below the sidebar, above other content */
  display: none; /* Initially hidden */
  transition: opacity 0.3s ease;
}
