/* ================================
   MENU BUTTON
================================ */

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;

  font-size: 25px;
  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.menu-button:active {
  transform: scale(0.95);
}


/* ================================
   SIDE MENU
================================ */

.side-menu {
  position: fixed;

  top: 0;
  left: -330px;

  width: 310px;
  max-width: 86%;

  height: 100vh;
  height: 100dvh;

  padding: 22px 16px;

  background:
    linear-gradient(
      180deg,
      #0b1b2f 0%,
      #07111f 100%
    );

  border-right: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.35);

  z-index: 2001;

  overflow-y: auto;

  transition: left 0.3s ease;
}

.side-menu.active {
  left: 0;
}


/* ================================
   MENU HEADER
================================ */

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.menu-account {
  display: flex;
  align-items: center;

  gap: 12px;
  min-width: 0;
}

.menu-user-avatar {
  width: 52px;
  height: 52px;

  border-radius: 50%;

  object-fit: cover;

  border: 2px solid #2196f3;
  background: #14263b;
}

.menu-account-info {
  display: flex;
  flex-direction: column;

  min-width: 0;
  gap: 4px;
}

.menu-account-info strong {
  color: #ffffff;

  font-size: 16px;
  font-weight: 700;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-account-info span {
  color: #9eb0c5;
  font-size: 12px;
}


/* ================================
   CLOSE BUTTON
================================ */

.close-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: none;
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;

  font-size: 25px;
  cursor: pointer;

  flex-shrink: 0;
}

.close-menu-button:hover {
  background: rgba(255, 255, 255, 0.16);
}


/* ================================
   DIVIDER
================================ */

.menu-divider {
  width: 100%;
  height: 1px;

  margin: 18px 0;

  background: rgba(255, 255, 255, 0.1);
}


/* ================================
   MENU ITEMS
================================ */

.menu-item {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 50px;

  padding: 12px 14px;
  margin-bottom: 8px;

  gap: 13px;

  border: 1px solid transparent;
  border-radius: 12px;

  background: transparent;
  color: #eaf3ff;

  font-size: 15px;
  font-weight: 600;

  text-decoration: none;
  text-align: left;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.menu-item:hover {
  background: rgba(33, 150, 243, 0.14);
  border-color: rgba(33, 150, 243, 0.25);
  color: #ffffff;
}

.menu-item:active {
  transform: scale(0.98);
}

.menu-item-icon {
  width: 25px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
}

.menu-logout {
  font-family: inherit;
}


/* ================================
   OVERLAY
================================ */

.menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.68);

  z-index: 2000;

  backdrop-filter: blur(2px);
}


/* ================================
   BODY LOCK
================================ */

body.menu-open {
  overflow: hidden;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 480px) {
  .side-menu {
    width: 290px;
    padding: 18px 13px;
  }

  .menu-user-avatar {
    width: 46px;
    height: 46px;
  }

  .menu-item {
    min-height: 48px;
    font-size: 14px;
  }
}