/* User Menu Styles */
.user-menu {
  position: fixed;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(17, 29, 55, 0.15);
  border: 1px solid #e3e6ed;
  z-index: 1000;
  min-width: 280px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.user-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-content {
  padding: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3bf2c 0%, #e5a626 100%);
  color: #1d2432;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  color: #1f2736;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  color: #707a8f;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-divider {
  height: 1px;
  background: #e3e6ed;
  margin: 16px 0;
}

.user-menu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #434b5d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.user-menu-item:hover {
  background: #f8f9fb;
  color: #1f2736;
}

.user-menu-item.logout-btn {
  color: #ff4757;
}

.user-menu-item.logout-btn:hover {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
}

/* Notification Styles */
.auth-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.auth-notification.show {
  transform: translateX(0);
}

.auth-notification.success {
  background: #00b67a;
}

.auth-notification.error {
  background: #ff4757;
}

.auth-notification.info {
  background: #f3bf2c;
  color: #1d2432;
}

/* Login button updates */
.login-btn {
  transition: all 0.2s ease;
  position: relative;
}

.login-btn:hover {
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 760px) {
  .user-menu {
    right: 10px !important;
    left: 10px !important;
    min-width: auto;
    max-width: none;
  }
  
  .auth-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Animation for menu appearance */
@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu.show {
  animation: menuSlideIn 0.2s ease forwards;
}

/* Add subtle hover effect to login button when logged in */
.login-btn[data-logged-in="true"] {
  background: #00b67a !important;
  border-color: #00b67a !important;
}

.login-btn[data-logged-in="true"]:hover {
  background: #00a86d !important;
  border-color: #00a86d !important;
}
