/**
 * Mobile Menu Toggle Styles
 */

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1100;
  background-color: #252a31;
  border: 1px solid #4BB2D9;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-menu-toggle:hover {
  background-color: #4BB2D9;
}
.mobile-menu-toggle .hamburger-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #4BB2D9;
  position: relative;
  transition: all 0.3s ease;
}
.mobile-menu-toggle:hover .hamburger-icon,
.mobile-menu-toggle:hover .hamburger-icon::before,
.mobile-menu-toggle:hover .hamburger-icon::after {
  background-color: #fff;
}
.mobile-menu-toggle .hamburger-icon::before,
.mobile-menu-toggle .hamburger-icon::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: #4BB2D9;
  transition: all 0.3s ease;
}
.mobile-menu-toggle .hamburger-icon::before {
  top: -7px;
}
.mobile-menu-toggle .hamburger-icon::after {
  top: 7px;
}

/* Hamburger to X animation when sidebar is open */
body.sidebar-mobile-open .mobile-menu-toggle .hamburger-icon {
  background-color: transparent;
}
body.sidebar-mobile-open .mobile-menu-toggle .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
  background-color: #fff;
}
body.sidebar-mobile-open .mobile-menu-toggle .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: #fff;
}
body.sidebar-mobile-open .mobile-menu-toggle {
  background-color: #4BB2D9;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
body.sidebar-mobile-open .sidebar-overlay {
  display: block;
}

/* Show hamburger and enable sidebar toggle on mobile/tablet */
@media (max-width: 991.98px) {
  .mobile-menu-toggle {
    display: block;
  }
  /* Override the negative margin when sidebar is open */
  body.sidebar-mobile-open .sidebar {
    margin-left: 0 !important;
  }
  /* Ensure sidebar is above overlay */
  .sidebar {
    z-index: 1050;
    transition: margin-left 0.3s ease;
  }
}

/* Responsive logo - show full logo on desktop, triangle on mobile */
img.logo-mobile {
  display: none !important;
}
img.logo-desktop {
  display: inline-block !important;
}
@media (max-width: 991.98px) {
  img.logo-mobile {
    display: inline-block !important;
    max-width: 40px;
    max-height: 40px;
  }
  img.logo-desktop {
    display: none !important;
  }
}
