/* ── Profile button ────────────────────────────────────────── */
.profile-container {
  position: relative;
  display: inline-block;
}

.profile-button {
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  transition: background 0.2s;
}
.profile-button:hover {
  background: var(--color-hover-gray);
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.profile-avatar, .dropdown-avatar {
  border-radius: 50%;
  background: var(--color-action-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}
.profile-avatar  { width: 44px; height: 44px; font-size: 14px; }
.dropdown-avatar { width: 38px; height: 38px; font-size: 14px; }

.profileArrow {
  margin-left: auto;
  transition: transform 0.3s;
  color: var(--color-text-muted);
}
.profileArrow.rotated { transform: rotate(180deg); }

/* ── Dropdown ──────────────────────────────────────────────── */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 210px;
  display: none;
  z-index: 1000;
  overflow: hidden;
}
.dropdown-menu.active {
  display: block;
  animation: slideDown 0.18s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
}
.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dropdown-user-details h4 {
  font-size: 14px;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}
.dropdown-user-details p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ── Menu items ────────────────────────────────────────────── */
.menu-item {
  padding: 11px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
  color: var(--color-text-dark);
  text-decoration: none;
  border: none;
  width: 100%;
  background: none;
  font-size: 14px;
  font-family: Roboto, Arial, sans-serif;
}
.menu-item:hover  { background: var(--color-hover-gray); }
.menu-item.logout { color: #e74c3c; border-top: 1px solid var(--color-border); }
.menu-item.logout:hover { background: #fee; }

.menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Login/signup buttons ──────────────────────────────────── */
.div-login-panel {
  gap: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.login-button {
  min-width: 100px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  font-family: Roboto, Arial, sans-serif;
  color: #ffffff;
  background: var(--color-action-gradient);
  border: none;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.login-button:hover  { background: var(--color-action-gradient-hover); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35); }
.login-button:active { background: var(--color-action-gradient-hover); box-shadow: none; }
