/* Header & Profile Dropdown Styles */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-main);
}

.menu-toggle {
  display: none;
  color: var(--text-main);
  cursor: pointer;
}

.menu-toggle i {
  font-size: 1.5rem;
  line-height: 1;
}

.header-search {
  position: relative;
  width: 300px;
}

.header-search input {
  background-color: var(--bg-page);
  border: 1px solid var(--border-main);
  border-radius: 6px;
  padding: 0.45rem 0.55rem 0.45rem 2rem;
  width: 100%;
  color: var(--text-main);
  font-size: 0.75rem;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search i {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.help-center {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.help-center:hover {
  color: var(--accent-primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  cursor: pointer;
}

.user-profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-profile span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  z-index: 1000;
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--border-main);
}

.profile-dropdown::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 11px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--bg-card);
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-main);
  margin-bottom: 0.35rem;
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dropdown-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-user-details h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.dropdown-user-details p {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.close-dropdown {
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.close-dropdown:hover {
  color: var(--text-main);
}

.close-dropdown i {
  font-size: 0.95rem;
  line-height: 1;
}

.dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background-color: var(--bg-page);
  color: var(--accent-primary);
}

.dropdown-menu a i {
  width: 16px;
  height: 16px;
  font-size: 1.07rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu a span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
