/* FILE: public/assets/css/user-menu.css */

.auth-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.user-menu {
  position: relative;
}

.user-menu__btn {
  gap: 8px;
  min-height: 40px;
  padding-left: 16px;
  padding-right: 16px;
}

.user-menu__drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  z-index: 40;
}

.user-menu__item {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}

.user-menu__item:hover {
  background: #f3f4f6;
}

.user-menu__item:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: 2px;
}

.user-menu__sep {
  height: 1px;
  margin: 8px 4px;
  background: #e5e7eb;
}

.user-menu__item-danger {
  color: #b91c1c;
}

.user-menu__item-danger:hover {
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 900px) {
  .auth-user {
    width: auto;
  }

  .user-menu__drop {
    right: auto;
    left: 0;
  }
}

@media (max-width: 640px) {
  .auth-user {
    width: 100%;
    justify-content: flex-start;
  }

  .user-menu {
    width: 100%;
  }

  .user-menu__btn {
    width: 100%;
    justify-content: space-between;
  }

  .user-menu__drop {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }
}