/* Mobile menu styles */

/* Ensure the sidebar menu is properly styled */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: white;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar-menu.open {
  transform: translateX(0);
}

/* Ensure the overlay is properly styled */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.sidebar-overlay.open {
  display: block;
}

/* Style the hamburger button */
[data-action="click->sidebar#toggle"] {
  cursor: pointer;
}

/* Prevent body scrolling when sidebar is open */
body.overflow-hidden {
  overflow: hidden;
}

/* Ensure the close button is visible */
.sidebar-menu .close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* Add some padding to the sidebar content */
.sidebar-menu .menu-items {
  padding: 1rem;
}

/* Style the menu items */
.sidebar-menu .menu-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.sidebar-menu .menu-item:hover {
  background-color: #f5f5f5;
}

.sidebar-menu .menu-item.active {
  background-color: #e0e7ff;
  color: #4f46e5;
} 