
  .user-wrapper {
    display: flex;
    min-height: 100vh;
  }
  
  .page-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: #f8f9fa;
}

  /* Sidebar */
  #sidebar {
    background-color: #008080;
    color: white;
    width: 260px;
    box-sizing: border-box;
    padding: 20px;
    position: sticky;
    top: 120px; /* below header */
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin-right: 10px;
  }

  #sidebar a {
    display: block;
    padding: 6px 0;
    color: white;
    text-decoration: none;
    user-select: none;
  }

  #sidebar a:hover {
    text-decoration: underline;
  }

  .menu-section {
    margin-bottom: 10px;
  }

  .menu-title {
    font-weight: bold;
    padding: 5px 0;
    user-select: none;
    cursor: pointer;
    position: relative;
  }

  .menu-title::after {
    content: " ▸";
    float: right;
    transition: transform 0.3s ease;
  }

  .menu-section.active .menu-title::after {
    transform: rotate(90deg);
  }

  .submenu {
    margin-left: 10px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
  }

  .menu-section.active .submenu {
    max-height: 500px;
  }

  .submenu a {
    display: block;
    padding: 5px 0;
    color: white;
    text-decoration: none;
  }

  .submenu a:hover {
    text-decoration: underline;
  }

  /* Content */
  .user-content {
    flex-grow: 1;
    padding: 1rem; /* Instead of hard 20px */
    overflow: auto; /* vertical and horizontal scroll */
  }

  /* Hide sidebar toggle on desktop */
  .sidebar-toggle {
    display: none;
  }

  /* MOBILE STYLES */
@media (max-width: 767px) {
  .user-wrapper {
    display: block;
  }

  #sidebar {
    position: static;
    width: 100%;
    max-width: 260px;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 1.5rem;
    top: auto;
    background-color: #008080;
  }

  .sidebar-toggle {
    display: none;
  }

  .user-content {
    padding: 15px;
  }

  #sidebar i {
    margin-right: 8px;
    vertical-align: middle;
  }
}

