.EMPleftmenubar {
    width: 15%;
    min-width: 200px;
    height: 100%;
    flex-shrink: 0;
    background: #6F4F37;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
  }
  
  /* Branding/logo */
  .EMPuserprofile {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .EMPuseravatar {
    width: 72%;
    max-width: 140px;
    border-radius: 50%;
    border: 1px solid #000;
    display: block;
    margin: 0 auto 12px;
  }
  
  .EMPusername {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* top group of buttons (Payment, POS System, etc) */
  .EMPpaymentBtn,
  .EMPposBtn,
  .EMPprofileBtn,
  .EMPmenu-top-btn { /* optional shared class if you add it later */
    width: 100%;
    height: 48px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin: 6px 0;
    padding: 0 14px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    border: none;
  }
  
  /* visual styles */
  /* Base styles for all buttons */
.EMPpaymentBtn,
.EMPposBtn,
.EMPprofileBtn,
.EMPordersBtn {
  width: 100%;
  height: 48px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin: 6px 0;
  padding: 0 14px;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  font-weight: 700;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

/* Active (highlighted) button */
.EMPpaymentBtn.active,
.EMPposBtn.active,
.EMPprofileBtn.active,
.EMPordersBtn.active {
  background: #fff;
  color: #6F4F37;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Hover effects */
.EMPpaymentBtn:hover:not(.active),
.EMPposBtn:hover:not(.active),
.EMPprofileBtn:hover:not(.active),
.EMPordersBtn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

  
  
  /* push profile/logout to bottom:
     give the first bottom element margin-top:auto so it (and the following siblings)
     move to the bottom of the sidebar column */
  .EMPprofileBtn {
    margin-top: auto;   /* <-- key: pushes this and anything after it to the bottom */
  }
  
  .EMPlogout {
    width: 100%;
    height: 44px;
    border-radius: 28px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;    /* small gap between profile & logout */
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
  }

.EMPlogout:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
    transform: translateY(-1px);
}
  
  /* link styles inside buttons */
  .EMPprofileBtn a,
  .EMPlogout a,
  .EMPposBtn a,
  .EMPpaymentBtn a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
  }

  @media only screen and (max-width: 1024px) {

    .EMPleftmenubar {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: auto;
        border-radius: 12px;
        margin-bottom: 15px;
        position: relative;
        z-index: auto;
      }
  
    
      .EMPuserprofile {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
      }
    
      .EMPuseravatar {
        width: 60px;
        max-width: 80px;
      }
    
      .EMPprofileBtn,
      .EMPlogout {
        margin-top: 0;
        width: auto;
        height: 40px;
        padding: 0 12px;
      }
  }

  @media only screen and (max-width: 768px) {

    .EMPleftmenubar {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 buttons per row */
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
        text-align: center;
        justify-items: center;
        position: relative;
        z-index: auto;
        height: auto;
      }
    
      /* Logo centered */
      .EMPuserprofile {
        grid-column: span 2;
        margin-bottom: 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }
    
      .EMPuseravatar {
        width: 55px;
        max-width: 70px;
        border-radius: 50%;
        margin: 0 auto 6px;
        display: block;
      }
    
      .EMPusername {
        font-size: 15px;
        font-weight: 700;
        color: #6F4F37;
        margin: 0;
        text-align: center;
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
      }
    
      /* ===== BUTTONS (Payment, POS System, Profile, Logout) ===== */
      .EMPpaymentBtn,
      .EMPposBtn,
      .EMPprofileBtn,
      .EMPlogout {
        width: 100%;
        max-width: 150px;   /* keeps them smaller */
        height: 38px;       /* shorter height */
        font-size: 13px;
        padding: 0 10px;
        border-radius: 20px; /* less rounded */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;     /* center buttons */
      }
    
      .EMPlogout {
        border: 1px solid #ddd;
        background: #fff;
        font-weight: 600;
      }

  }

  @media only screen and (max-width: 480px) {
    .EMPleftmenubar {
      flex-wrap: wrap;
      justify-content: center;
    }
  }

/* Mobile Responsive Styles */
/* Desktop Logo - visible by default */
.EMPdesktopLogo {
    display: flex;
}

/* Mobile Top Bar - hidden by default */
.EMPmobileTopBar {
    display: none;
}

/* Mobile menu container */
.EMPleftmenubarbox {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Hamburger menu */
.EMPhamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.EMPhamburger span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.EMPhamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.EMPhamburger.active span:nth-child(2) {
    opacity: 0;
}

.EMPhamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Tablet styles */
@media (max-width: 1024px) {
    .EMPleftmenubar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        border-radius: 0;
        padding: 0;
    }

    .EMPdesktopLogo {
        display: none !important;
    }

    .EMPmobileTopBar {
        display: flex !important;
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        padding: 0 15px;
        background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .EMPmobileTopBar .EMPuserprofile {
        margin-bottom: 0;
        flex-direction: row;
        gap: 10px;
    }

    .EMPmobileTopBar .EMPuseravatar {
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .EMPmobileTopBar .EMPusername {
        font-size: 16px;
        margin: 0;
    }

    .EMPhamburger {
        display: flex !important;
    }

    .EMPleftmenubarbox {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
        gap: 15px;
        border-radius: 0;
        z-index: 9999;
        background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
    }

    .EMPleftmenubarbox.active {
        max-height: 600px !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 10px !important;
        display: flex !important;
    }

    .EMPleftmenubarbox a,
    .EMPleftmenubarbox button {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .EMPleftmenubarbox a:hover,
    .EMPleftmenubarbox button:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .EMPleftmenubarbox a.active,
    .EMPleftmenubarbox button.active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

    body {
        margin-top: 60px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .EMPleftmenubar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        border-radius: 0;
        padding: 0;
    }

    .EMPdesktopLogo {
        display: none !important;
    }

    .EMPmobileTopBar {
        display: flex !important;
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        padding: 0 15px;
        background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .EMPmobileTopBar .EMPuserprofile {
        margin-bottom: 0;
        flex-direction: row;
        gap: 10px;
    }

    .EMPmobileTopBar .EMPuseravatar {
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .EMPmobileTopBar .EMPusername {
        font-size: 16px;
        margin: 0;
    }

    .EMPhamburger {
        display: flex !important;
    }

    .EMPleftmenubarbox {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
        gap: 15px;
        border-radius: 0;
        z-index: 9999;
        background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
    }

    .EMPleftmenubarbox.active {
        max-height: 600px !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 10px !important;
        display: flex !important;
    }

    .EMPleftmenubarbox a,
    .EMPleftmenubarbox button {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .EMPleftmenubarbox a:hover,
    .EMPleftmenubarbox button:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .EMPleftmenubarbox a.active,
    .EMPleftmenubarbox button.active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

    body {
        margin-top: 60px;
    }
}