/* Sidebar Responsive CSS
 * Desktop: Sidebar always visible
 * Mobile: Hamburger menu with slide-out sidebar
 */

/* ========================================
 * Desktop Sidebar (Always Visible)
 * ======================================== */
.app-sidebar {
  width: 220px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background: white;
  z-index: 100;
  transition: transform 0.3s ease;
}

.app-content {
}

/* Hamburger button hidden on desktop */
.hamburger-button {
  display: none;
}

/* Overlay hidden on desktop */
.sidebar-overlay {
  display: none;
}

/* ========================================
 * Mobile Sidebar (Hamburger Menu)
 * ======================================== */
@media (max-width: 767px) {
  /* Hamburger button visible on mobile */
  .hamburger-button {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  /* Sidebar starts hidden (off-screen left) */
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    width: 80%;
    max-width: 280px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }

  /* Sidebar visible when mobile menu is open */
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Content takes full width on mobile */
  .app-content {
    margin-left: 0;
    padding-top: 50px; /* Space for hamburger button */
  }

  /* Semi-transparent overlay when sidebar is open */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

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