/* ✅ NAVBAR BASE */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #3a6ea5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* slightly deeper shadow */
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  font-size: 13px;
  transition: all 0.3s ease;
}

/* LEFT SECTION */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand-title {
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform 0.2s ease;
}

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

.navbar-links {
  display: flex;
  gap: 25px;
}

.navbar-link {
  color: #e9eef6;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  position: relative;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.navbar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.25s ease-in-out;
  border-radius: 1px;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.navbar-link.active {
  color: #ffffff !important;
}

/* RIGHT SECTION */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-email {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s ease;
}

.user-email:hover {
  background: rgba(255,255,255,0.2);
}

.btn-logout {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-logout:hover {
  background: #ffffff;
  color: #3a6ea5;
  border-color: #ffffff;
}

/* MOBILE MENU */
#menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}

@media (max-width: 768px) {
  #menu-toggle { display: block; }
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #3a6ea5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: absolute;
    top: 56px;
    left: 0;
    padding: 12px 0;
    border-radius: 0 0 12px 12px;
  }
  .navbar-links.active { display: flex; }
  .navbar-links a { padding: 10px 20px; }
  .navbar-link::after { bottom: 0; }
}

/* Prevent overlap */
body { padding-top: 70px; }

.logo-header {
  height: 30px; 
  width: auto;
}
