.main-header {
  background: white;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.main-nav {
  flex: 1;
  margin: 0 40px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.nav-item {
  text-decoration: none;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
}

.nav-item:hover {
  color: var(--primary-color);
  background: rgba(139, 195, 74, 0.1);
}

.nav-item.active {
  color: white;
  background: var(--primary-color);
}

.user-section {
  position: relative;
}

.avatar-container {
  cursor: pointer;
  position: relative;
}

.avatar-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-avatar {
  font-size: 24px;
  color: #999;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: none;
  margin-top: 10px;
}

.avatar-container:hover .user-dropdown {
  display: block;
}

.user-info {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.user-name {
  font-weight: 600;
  margin: 0;
}

.user-email {
  font-size: 12px;
  color: #666;
  margin: 5px 0 0 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 5px 0;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    margin: 10px 0;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}