/* Reset & Variables */
/** { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background-color: #f3f4f6; margin: 20px; }*/

/* Container */
.user-a {
  text-decoration: none;
}

.signin-textANDicon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;    /* align this div to the right of the nav bar */
}

.signin-text {
  color: var(--light-green);
  font-weight: bold;
  margin-left: auto;    /* align this div to the right of the nav bar */
  padding-right: 0.5rem;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

/* Trigger Button */
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #e5e7eb;
  padding: 1px 1px 1px 1px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.user-menu-btn:hover {
  background-color: #f9fafb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.arrow { font-size: 10px; color: #6b7280; transition: transform 0.2s ease; }

/* Rotate arrow when open */
.user-menu-btn[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  z-index: 1000;
}

/* Show menu when active */
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Header */
.dropdown-header {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-header p { margin: 0; font-size: 14px; color: #374151; }
.dropdown-header .user-email { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* Dropdown Links */
.dropdown-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.dropdown-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dropdown-list li a:hover { background-color: #f3f4f6; color: #1f2937; }
.dropdown-list li a.logout { color: #dc2626; }
.dropdown-list li a.logout:hover { background-color: #fee2e2; }

/* Divider */
.divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 4px 0;
}