/* === Navbar Styling === */
.navbar {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Segoe UI", sans-serif;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
}

/* Logo */
.navbar-logo a {
  color: #4f46e5;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

/* Search Bar */
.navbar-search {
  display: flex;
  align-items: center;
  background-color: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
  width: 45%;
}

.navbar-search input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.6rem 1rem;
  width: 100%;
  font-size: 1rem;
}

.navbar-search button {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.navbar-search button:hover {
  background: #4338ca;
}

/* Right icons */
.navbar-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon {
  text-decoration: none;
  font-size: 1.1rem;
  color: #374151;
  transition: color 0.3s;
}

.icon:hover {
  color: #4f46e5;
}

/* 👇 NEW: Contact Us Button */
.contact-btn {
  text-decoration: none;
  color: #4f46e5;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border: 1px solid #4f46e5;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #4f46e5;
  color: white;
}

/* Admin / Client */
.admin-section, .client-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-email {
  color: #4b5563;
  font-weight: 500;
}

.logout-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.logout-btn:hover {
  background: #dc2626;
}

/* Category Bar */
.navbar-categories {
  display: flex;
  justify-content: center;
  background-color: #f9fafb;
  padding: 0.6rem 0;
  border-top: 1px solid #e5e7eb;
}

.navbar-categories a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: 0 0.8rem;
}

.navbar-categories a:hover {
  color: #4f46e5;
}

/* 👇 NEW: Hero-style loading bar */
.hero-loading-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  padding: 1rem;
  border-top: 1px solid #bae6fd;
  animation: pulse 1.5s infinite ease-in-out;
}

.loading-text {
  color: #0369a1;
  font-weight: 600;
  font-size: 1.1rem;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar-mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .navbar-search {
    display: none;
  }

  .contact-btn {
    display: none; /* Hide on mobile — already in mobile menu */
  }

  .menu-toggle {
    display: block;
  }

  .navbar-categories {
    display: none;
  }

  .navbar-mobile-menu {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 1rem;
    gap: 0.8rem;
    border-top: 1px solid #e5e7eb;
  }

  .navbar-mobile-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
  }

  .navbar-mobile-menu .logout-btn.mobile {
    align-self: flex-start;
  }
}