/* Modern Navigation Styles */
.site-header {
  position: relative;
  background: #4a90e2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 70px;
  width: 100%;
  box-sizing: border-box;
  gap: 20px;
}

.logo-link {
  flex-shrink: 0;
}

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

.desktop-nav {
  display: none;
  gap: 2px;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.nav-link {
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-link i {
  font-size: 16px;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  margin-left: auto;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0052cc;
}

.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.2);
}

.badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  display: none;
  min-width: 18px;
  text-align: center;
}

.btn-login {
  padding: 8px 20px;
  background: linear-gradient(135deg, #0052cc, #007bff);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  transition: transform 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Modern Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-nav.active {
  right: 0;
  visibility: visible;
}

/* User Profile Header in Mobile Menu */
.nav-user-header {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  padding: 30px 20px;
  color: white;
  text-align: center;
  margin-bottom: 10px;
}

.nav-user-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
  object-fit: cover;
}

.nav-user-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Mobile Menu Links Container */
.mobile-nav-links {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 12px 15px;
  color: #444;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.mobile-link i {
  width: 35px;
  min-width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  border-radius: 8px;
  margin-right: 15px;
  color: #4a90e2;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-link:hover {
  background: #f0f7ff;
  color: #4a90e2;
  transform: translateX(5px);
}

.mobile-link:hover i {
  background: #4a90e2;
  color: white;
}

/* Logout Button Special Style */
#mobile-logout {
  color: #e74c3c !important;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  border-radius: 0;
}

#mobile-logout i {
  background: #fdeaea !important;
  color: #e74c3c !important;
}

#mobile-logout:hover {
  background: #fff5f5 !important;
  color: #c0392b !important;
}

#mobile-logout:hover i {
  background: #e74c3c !important;
  color: white !important;
}

/* Admin Link Specific Fix */
#mobile-admin {
  display: flex !important;
  align-items: center !important;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  
  .hamburger {
    display: none;
  }
  
  .mobile-nav {
    display: none;
  }
}
