/* css/menu.css */

.menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.menuOverlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sideMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(390px, 100vw);
  height: 100dvh;
  background: #171919;
  color: #f2f2f2;
  z-index: 100;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  box-shadow: -20px 0 40px rgba(0, 0, 0, .35);
}

.sideMenu.is-open {
  transform: translateX(0);
}

.menuProfile {
  height: 78px;
  background: #2b2c2f;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #444;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.userName {
  font-size: 20px;
  font-weight: 800;
  flex: 1;
  white-space: nowrap;
}

.avatarBtn {
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: #bfc0c3;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}

.menuItem,
.menuLink {
  min-height: 56px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #171919;
  color: #ededed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.menuLink {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
}

.menuLink:hover,
.menuItem:hover {
  background: #202222;
}

.menuDivider {
  height: 24px;
  background: #2b2c2f;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.menuSwitch {
  width: 44px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: #0f1010;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}

.menuSwitch::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #9a9a9a;
  transition: transform .2s ease, background .2s ease;
}

.menuSwitch.is-on::after {
  transform: translateX(16px);
  background: #c7c7c7;
}

.menuFooter {
  margin-top: auto;
  height: 42px;
  background: #2b2c2f;
  color: #96999f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}