/* Header Styles */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

/* Ensure dropdown appears above header */
.nav-item.dropdown {
  position: relative;
  z-index: 1001;
}

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

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

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.9) 0%, 
    rgba(118, 75, 162, 0.9) 50%,
    rgba(52, 152, 219, 0.9) 100%);
  z-index: -1;
}

.main-header.scrolled {
  transform: translateY(0);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

/* Header Notifications */
.header-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 350px;
  border-left: 4px solid #667eea;
}

.header-notification.show {
  transform: translateX(0);
}

.header-notification-success {
  border-left-color: #28a745;
}

.header-notification-error {
  border-left-color: #dc3545;
}

.header-notification .notification-content {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
}

.header-notification .notification-close {
  background: none;
  border: none;
  margin-left: auto;
  padding: 0.25rem;
  color: #666;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.header-notification .notification-close:hover {
  background: #f8f9fa;
  color: #333;
}

/* Main Navigation */
.main-navbar {
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.main-navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  z-index: 1;
}

/* Brand */
.navbar-brand {
  text-decoration: none;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #667eea;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.brand-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.navbar-brand:hover .brand-icon::before {
  transform: rotate(45deg) translateX(100%);
}

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

.brand-text {
  color: white;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #e3f2fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-tagline {
  font-size: 0.8rem;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Navigation Links */
.navbar-nav .nav-link {
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.25rem !important;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0 0.25rem;
  background: transparent;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
  left: 100%;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link i {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover i {
  color: #ffffff;
}

/* Dropdown */
.dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.75rem;
  margin-top: 0.5rem;
  z-index: 9999 !important;
  animation: dropdownSlide 0.3s ease;
  min-width: 200px;
  position: relative;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: #333 !important;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 0.25rem 0;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white !important;
  transform: translateX(5px);
}

.dropdown-item i {
  color: #667eea;
  transition: color 0.3s ease;
}

.dropdown-item:hover i {
  color: white;
}

.dropdown-divider {
  border-color: rgba(102, 126, 234, 0.2);
  margin: 0.5rem 0;
}

/* CTA Button */
.btn-cta {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #667eea !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-cta i {
  color: inherit;
}

/* Mobile Menu Toggle */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* Responsive */
@media (max-width: 991.98px) {
  .main-navbar {
    padding: 1rem 0;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    color: #333 !important;
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
  }
  
  .navbar-cta {
    margin-top: 1rem;
    text-align: center;
  }
  
  .btn-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
  }
  
     .dropdown-menu {
     background: #ffffff;
     border: 1px solid rgba(0, 0, 0, 0.1);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
     margin-top: 0.5rem;
   }
 }

@media (max-width: 575.98px) {
  .brand-name {
    font-size: 1.1rem;
  }
  
  .brand-tagline {
    font-size: 0.7rem;
  }
} 