:root {
  --text-main: #333e48;
  --text-muted: #7d848c;
  --border-color: #f0f0f0;
  --hover-bg: #f8f9fa;
}

/* Ensure body styles don't conflict but are scoped if needed, 
   though root vars are global. */
/* body { margin: 0; padding: 0; } - Removed to avoid affecting theme layout */

.user-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.profile-trigger {
  cursor: pointer;
  text-align: right;
  padding: 5px 10px;
}

.user-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.user-role {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.user-role i {
  font-size: 10px;
  transition: transform 0.2s;
}

.dropdown-card {
  position: absolute;
  top: 110%;
  right: 0;
  width: 200px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  padding: 8px 0;
  display: none;
  z-index: 999;
}

.dropdown-card.show {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-card li a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  transition: background 0.2s;
}

.dropdown-card li a:hover {
  background-color: var(--hover-bg);
}

.dropdown-card li a i {
  width: 20px;
  margin-right: 12px;
  color: var(--text-muted);
  font-size: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-right-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  background: #fff;
}
