/* ===== LARGE DEVICES (≥ 992px) ===== */
@media (min-width: 992px) {
  #main-content {
    padding-left: 85px;
    transition: padding-left 0.3s ease;
  }

  /* Left vertical menu */
  #menubar-left {
    margin-top: 56px;
    height: calc(100vh - 56px);
    width: 70px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    background-color: #1c1f23;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
  }

  #menubar-left-items {
    display: flex;
    flex-direction: column;
  }

  #menubar-left-footer {
    padding: 0.5rem;
    text-align: center;
  }

  /* Slide-out menubar */
  #menubar-slide {
    margin-top: 56px;
    height: calc(100vh - 56px);
    width: 0;
    position: fixed;
    left: 70px;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    background-color: #1c1f23;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .menubar-slide-items {
    display: none;
    padding: 1rem;
  }
}


/* ===== SMALL DEVICES (< 992px) ===== */
@media (max-width: 991px) {
  #main-content {
    padding-bottom: 75px;
  }

  /* Bottom navigation bar */
  #menubar-bottom {
    height: 62px;
    width: 100vw;
    position: fixed;
    left: 0;
    bottom: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 950;
    background-color: #1c1f23;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  
  #menubar-bottom-items {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
  
  #menubar-bottom-items button {
    flex: 1; /* Make each button take equal space */
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: transparent;
    padding: 0;
    height: 100%;
  }

  /* Slide-out menubar (shared) */
  #menubar-slide {
    height: 0;
    width: 100vw;
    position: fixed;
    left: 0;
    bottom: 62px;
    overflow-y: auto;
    overflow-x: auto;
    z-index: 1000;
    background-color: #1c1f23;
    transition: height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .menubar-slide-items {
    display: none;
    padding: 1rem;
  }
}
