.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 75px;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(177, 177, 177, 0.7), rgba(177, 177, 177, 0.3));
  border-right: 1px solid rgba(177, 177, 177, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  z-index: 1000;
}



/* Reset list style */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 8px 0;
  font-size: 24px;
  color: black;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}
.nav-icon img {
  width: 100%;
  height: 100%;
}
.nav-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

.home-icon {
  width: 75px;
  height: 75px;
}
.home-icon img {
  width: 75px;
  height: 75px;
}

@media screen and (max-width: 828px), screen and (max-device-width: 828px), screen and (orientation: portrait) {
  /* mobile layout here */
  .sidebar {
    top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 90px;
    display: flex; /* ✅ THIS LINE IS MISSING */
    flex-direction: row; /* horizontal instead of column */
    justify-content: space-around;
    align-items: center;
    padding-top: 0;
    border-right: none;
    border-top: 1px solid #ddd;
  }

  .sidebar ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    width: 100%;
    list-style: none;
  }

  .nav-icon {
    width: 84px;
    height: 84px;
    margin: 8;
  }
}