/* header.css */
/* ✅ Navbar Structure */
.navbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 24px !important;
  flex-wrap: wrap !important;
  background-color: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
  z-index: 999 !important;
  position: relative !important;
  height: 70px !important;
}

.navbar__logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.navbar__logo-icon {
  height: 42px !important;
  width: auto !important;
}

.navbar__logo strong {
  font-size: 1.3rem !important;
}

.navbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

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

.navbar__icons a {
  font-size: 1.2em;
  color: #1e3a8a;
  transition: color 0.3s ease;
}

.navbar__icons a:hover {
  color: #f97316;
}

/* ✅ Navbar Links (Home - About - Contact) */
.navbar__links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  gap: 30px !important;
}

.navbar__links li a {
  text-decoration: none !important;
  color: #1e3a8a !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  font-size: 15px !important;
  position: relative !important;
  transition: all 0.3s ease !important;
  border-radius: 6px !important;
}

.navbar__links li a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f97316;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.navbar__links li a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar__links li a:hover {
  background-color: #f3f4f6;
  color: #f97316;
}

/* ✅ Auth Buttons */
.auth-buttons {
  display: flex !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1) !important;
}

.auth-buttons a {
  padding: 10px 20px !important;
  text-decoration: none !important;
  background-color: #1e3a8a !important;
  color: #fff !important;
  font-weight: bold !important;
  border: 1px solid #1e3a8a !important;
  transition: background-color 0.3s !important;
  font-size: 15px !important;
}

.auth-buttons a:first-child {
  border-right: none;
  border-radius: 5px 0 0 5px;
}

.auth-buttons a:last-child {
  border-radius: 0 5px 5px 0;
}

.auth-buttons a.active,
.auth-buttons a:hover {
  background-color: #f97316;
  border-color: #f97316;
}

/* ✅ User Profile */
.navbar__user {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  background: #f3f4f6;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.navbar__user:hover {
  background-color: #e2e8f0;
}

.navbar__profile-pic {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
}

.notification-icon {
  font-size: 1.3rem;
}

.notification-badge {
  font-size: 11px;
  padding: 3px 6px;
}

/* ✅ Progress Bar Styling */
.progress-bar-container {
  width: 90%;
  max-width: 100%;
  height: 14px;
  background: #e2e8f0;
  border-radius: 50px;
  overflow: hidden;
  margin: 16px auto;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 50px;
  transition: width 0.5s ease-in-out;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 8px;
  padding: 0 4px;
}

.progress-labels span {
  color: #4b5563;
  font-weight: 600;
  transition: color 0.3s ease;
}

.progress-labels span.done {
  color: #16a34a;
  font-weight: bold;
}

/* ✅ Onboarding Card */
.onboarding-container {
  max-width: 320px;
  margin: 20px auto;
  padding: 14px 18px;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
}

.onboarding-container:hover {
  transform: translateY(-2px);
}

.onboarding-progressbar {
  height: 10px;
  background-color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.onboarding-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: width 0.4s ease-in-out;
  border-radius: 6px;
}

.onboarding-card {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.onboarding-step {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: #444;
  font-weight: 500;
  width: 1000px;
}

.onboarding-step.done {
  color: #16a34a;
  font-weight: bold;
}

.onboarding-step i {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

/* ✅ Language Switch */
.lang-switch {
  margin: 0 10px !important;
}

.lang-switch select {
  padding: 6px 12px !important;
  font-family: 'Poppins', sans-serif !important;
  background-color: #ffffff !important;
  color: #1e3a8a !important;
  border: 2px solid #f97316 !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.lang-switch select:hover {
  background-color: #f97316;
  color: white;
  border-color: #1e3a8a;
}

/* ✅ Mobile Menu Button */
.mobile-menu-button {
  display: none !important;
  flex-direction: column !important;
  justify-content: space-around !important;
  width: 30px !important;
  height: 24px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  z-index: 10 !important;
  margin-left: auto !important;
}

.mobile-menu-button span {
  width: 30px !important;
  height: 3px !important;
  background: #1e3a8a !important;
  border-radius: 10px !important;
  transition: all 0.3s linear !important;
  position: relative !important;
  transform-origin: 1px !important;
}

/* Overlay for mobile menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  z-index: 8;
}

/* Dropdown menu */
.dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  min-width: 130px;
  padding: 4px 0;
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 13px;
}

.dropdown a:hover {
  background-color: #f0f0f0;
}

.premium-username {
  color: gold;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(255, 215, 0, 0.6);
}

body.no-scroll {
  overflow: hidden;
}

/* Navbar responsive layout */
@media (max-width: 992px) {
  .navbar {
    padding: 10px 20px !important;
  }
  
  .mobile-menu-button {
    display: flex !important;
  }
  
  .navbar__links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    flex-direction: column !important;
    background-color: white !important;
    width: 80% !important;
    max-width: 280px !important;
    height: 100vh !important;
    padding: 80px 20px 20px !important;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease-in-out !important;
    z-index: 9 !important;
    margin: 0 !important;
    gap: 12px !important;
  }

  .navbar__links.active {
    right: 0 !important;
  }

  .navbar__links li {
    width: 100% !important;
  }

  .navbar__links li a {
    display: block !important;
    padding: 10px 16px !important;
    font-size: 16px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .navbar__links li a::before {
    display: none;
  }
  
  .overlay.active {
    display: block;
  }
  
  .navbar__right {
    margin-left: auto;
    gap: 10px;
  }
  
  /* Animation for hamburger menu */
  .mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg);
  }
  
  .mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg);
  }
  
  /* Small screen adjustments */
  @media (max-width: 576px) {
    .navbar__user {
      margin-left: 5px;
      padding: 5px 8px;
    }
    
    .navbar__profile-pic {
      margin-right: 5px;
    }
    
    .auth-buttons a {
      padding: 8px 12px;
      font-size: 14px;
    }
    
    .navbar__logo strong {
      display: none;
    }
  }

  .mobile-only {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 !important;
    border-top: 1px solid #eee !important;
    margin-top: 8px !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only .lang-switch {
    width: 100%;
    margin-bottom: 12px;
  }

  .mobile-only .lang-switch select {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }

  .mobile-only .auth-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-only .auth-buttons a {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
  }

  .mobile-only .auth-buttons a:first-child,
  .mobile-only .auth-buttons a:last-child {
    border-radius: 8px;
  }

  .auth-buttons {
    display: none !important;
  }
}

/* ✅ Mobile/Desktop Visibility */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* ✅ Auth Buttons in Menu */
.auth-menu-item {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.auth-menu-item .auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.auth-menu-item .auth-buttons a {
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  background-color: #1e3a8a;
  color: #fff;
  font-weight: bold;
  border: 1px solid #1e3a8a;
  transition: background-color 0.3s;
}

.auth-menu-item .auth-buttons a:first-child,
.auth-menu-item .auth-buttons a:last-child {
  border-radius: 6px;
}

.auth-menu-item .auth-buttons a.active,
.auth-menu-item .auth-buttons a:hover {
  background-color: #f97316;
  border-color: #f97316;
}

@media (min-width: 993px) {
  .auth-menu-item {
    margin-top: 20px;
  }

  .auth-menu-item .auth-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .auth-menu-item .auth-buttons a {
    width: auto;
    min-width: 100px;
    font-size: 13px;
    padding: 6px 12px;
  }
}