body {
  font-family: "Poppins", sans-serif;
}

.modern-navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

:root {
  --visitor-navbar-offset: 4rem;
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.visitor-header .navbar-end .navbar-item {
  font-weight: 500;
  color: #64748b;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  border-bottom: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  animation: slideIn 0.4s ease forwards;
  position: relative;
}

.visitor-header .navbar-end .navbar-item .icon {
  color: inherit;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.15rem;
}

.visitor-header .navbar-end .navbar-item .nav-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.visitor-header .navbar-end .navbar-item:hover {
  background-color: #f3f9ff !important;
  color: #1d4ed8;
}

.visitor-header .navbar-end .navbar-item.is-active {
  background-color: #eef4ff !important;
  color: #1d4ed8;
  font-weight: 600;
  border-bottom: none;
  box-shadow: none;
  transform: none;
}

.main-visitor-content {
  background: linear-gradient(to bottom, #f9fbfd, #ffffff) !important;
  margin-top: var(--visitor-navbar-offset);
}

/* Responsive adjustments */
@media screen and (max-width: 1023px) {
  .navbar-menu.is-active {
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
  }

  .visitor-header .navbar-end .navbar-item {
    margin: 0.2rem 0.5rem;
    border-radius: 10px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --visitor-navbar-offset: 3rem;
  }

  .modern-navbar {
    display: flex;
    align-items: center;
    min-height: 0;
    padding: 0.3rem 0;
  }

  .modern-navbar .navbar-brand {
    min-height: 0;
    align-items: center;
  }

  .modern-navbar .container {
    align-items: center;
    min-height: 0;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --visitor-navbar-offset: 3rem;
  }

  .modern-navbar {
    padding: 0.25rem 0;
  }
}

/* Animation for the nav items */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visitor-header .navbar-end .navbar-item:nth-child(1) {
  animation-delay: 0.1s;
}

.visitor-header .navbar-end .navbar-item:nth-child(2) {
  animation-delay: 0.2s;
}

.visitor-header .navbar-end .navbar-item:nth-child(3) {
  animation-delay: 0.3s;
}

.visitor-header .navbar-end {
  gap: 0.35rem;
  align-items: center;
}
