/* User Portal Mobile Sidebar Fix */

/* Desktop: Sidebar always visible */
@media (min-width: 992px) {
  .dashboard .dashboard__sidebar {
    transform: translateX(0) !important;
    display: block !important;
  }
}

/* Mobile: Work with existing transform-based toggle */
@media (max-width: 991px) {
  .dashboard .dashboard__sidebar {
    position: fixed !important;
    top: 0;
    height: 100vh;
    width: 280px;
    background: white;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }

  /* Default: Hidden */
  .dashboard .dashboard__sidebar {
    transform: translateX(-100%);
  }

  /* When toggled: Visible */
  .dashboard.dsh_board_sidebar_hidden .dashboard__sidebar {
    transform: translateX(0) !important;
  }

  /* Overlay when sidebar is open */
  .dashboard.dsh_board_sidebar_hidden .dashboard__main::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    cursor: pointer;
  }
}
