/* Header Styles */
.header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: auto;
  min-height: 80px;
}

.header-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100%;
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  transition: all 0.3s ease;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle:hover span {
  background: #0ea5e9;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Header Controls (Theme & Sidebar Pin) */
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.control-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.control-btn:hover {
  background: rgba(51, 65, 85, 1);
  border-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.control-btn:active {
  transform: translateY(0);
}

/* Theme Icons */
.theme-icon,
.pin-icon {
  transition: all 0.3s ease;
}

.header-spacer {
  flex: 1;
}

/* Mobile Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 10px;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
  background: #0ea5e9;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  padding: 10px 0;
  margin: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 0;
  padding-right: 0;
  margin-left: auto;
}

.logo:hover {
  opacity: 0.9;
}

.logo:hover .logo-image {
  filter: brightness(1.1);
}

.logo-image {
  height: 120px;
  width: auto;
  max-width: 100%;
  transition: filter 0.3s ease;
}

.header-icons {
  display: flex;
  gap: 12px;
  margin-left: 16px;
  list-style: none;
  padding: 0;
  margin-top: 0;
  position: relative;
}

.header-icon {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 20px;
  display: inline-block;
  padding: 0;
}

.header-icon:hover {
  color: #0ea5e9;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 400px;
  max-height: 500px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: hidden;
}

.notification-dropdown::-webkit-scrollbar {
  width: 8px;
}

.notification-dropdown::-webkit-scrollbar-track {
  background: #0f172a;
}

.notification-dropdown::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid #334155;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.notification-item:hover {
  background: rgba(96, 165, 250, 0.1);
}

.notification-item:last-child {
  border-bottom: none;
}

.header .btn {
  font-size: 14px;
  padding: 10px 18px;
}

/* Username Link with Glow Effect */
.username-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5),
               0 0 12px rgba(96, 165, 250, 0.3);
  cursor: pointer;
  position: relative;
}

.username-link:hover {
  color: #93c5fd;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.8),
               0 0 20px rgba(96, 165, 250, 0.5),
               0 0 30px rgba(96, 165, 250, 0.3);
  transform: translateY(-1px);
}

.username-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

.username-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
  }
  
  .header-actions .btn {
    display: none;
  }
  
  .header-search {
    display: none;
  }
  
  .logo-image {
    height: 150px;
  }
  
  .header-icons {
    margin-right: 10px;
  }
}
