/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Brand Section */
.navbar-brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Navigation Menu */
.navbar-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu-item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.menu-item.active a {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.menu-item.active a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.menu-item i {
  font-size: 14px;
}

/* Actions Section */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* User Profile Dropdown */
.user-profile {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.user-trigger:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.user-profile:hover .dropdown-menu,
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #f5f5f5;
  color: #1890ff;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: #999;
}

.dropdown-item:hover i {
  color: #1890ff;
}

.dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}

.text-danger {
  color: #ff4d4f !important;
}

.text-danger:hover {
  background: #fff1f0 !important;
  color: #ff4d4f !important;
}

.text-danger i {
  color: #ff4d4f !important;
}

/* Login Button */
.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Home Button */
.btn-home {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-home:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
  .menu-item a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .user-name {
    max-width: 80px;
  }
}

@media (max-width: 992px) {
  .navbar-container {
    padding: 0 16px;
  }
  
  .brand-name {
    display: none;
  }
  
  .menu-item a span {
    display: none;
  }
  
  .menu-item a {
    padding: 8px 12px;
  }
  
  .btn-home span {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    height: 56px;
    padding: 0 12px;
  }
  
  .brand-avatar {
    width: 36px;
    height: 36px;
  }
  
  .menu-list {
    gap: 4px;
  }
  
  .menu-item a {
    padding: 6px 10px;
  }
  
  .user-trigger {
    padding: 4px 8px;
  }
  
  .user-name {
    display: none;
  }
  
  .btn-login,
  .btn-home {
    padding: 6px 10px;
  }
}
