/* Client Header User Profile Styles */
.admin-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-profile:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.admin-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: capitalize;
}

.admin-dropdown {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.admin-dropdown i {
  transition: transform 0.3s ease;
}

.admin-profile.active .admin-dropdown i {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f8f9fa;
  color: #007bff;
}

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

.dropdown-item:hover i {
  color: #007bff;
}

.dropdown-divider {
  height: 1px;
  background: #e9ecef;
  margin: 8px 0;
}

.dropdown-form {
  margin: 0;
}

.logout-btn {
  color: #dc3545 !important;
}

.logout-btn:hover {
  background: #fff5f5 !important;
  color: #dc3545 !important;
}

.logout-btn i {
  color: #dc3545 !important;
}

/* Mobile User Profile */
.mobile-user {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.mobile-user-info div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-user-info span {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.mobile-user-info small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-transform: capitalize;
}

.mobile-user-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-user-actions a,
.mobile-user-actions button {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.mobile-user-actions a:hover,
.mobile-user-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-profile {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-user {
    display: none;
  }
}
/* Light Mode Styles */
body:not(.dark-mode) .admin-profile {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .admin-profile:hover {
  background: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .admin-name {
  color: #333;
}

body:not(.dark-mode) .admin-role {
  color: #666;
}

body:not(.dark-mode) .admin-dropdown {
  color: #666;
}

body:not(.dark-mode) .admin-avatar {
  border-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .login-btn {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .login-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .register-btn {
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Mobile Light Mode */
body:not(.dark-mode) .mobile-user-info span {
  color: #333;
}

body:not(.dark-mode) .mobile-user-info small {
  color: #666;
}

body:not(.dark-mode) .mobile-user-actions a,
body:not(.dark-mode) .mobile-user-actions button {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

body:not(.dark-mode) .mobile-user-actions a:hover,
body:not(.dark-mode) .mobile-user-actions button:hover {
  background: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .mobile-login-btn {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .mobile-register-btn {
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding-top: 80px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle i {
  font-size: 20px;
  color: #fff;
}

body:not(.dark-mode) .mobile-menu-toggle i {
  color: #333;
}

.mobile-search {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
}

.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-search button {
  position: absolute;
  right: 28px;
  top: 32px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.mobile-nav {
  padding: 20px 0;
}

.mobile-nav .nav-link {
  display: block;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #667eea;
  color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active + .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }
}

/* Debug styles - remove in production */
.admin-profile {
  position: relative !important;
}

.dropdown-menu {
  position: absolute !important;
  z-index: 9999 !important;
}

/* Ensure dropdown is clickable */
