#header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;            /* pick the real header height used across site */
  z-index: 1200;           /* above content */
  display: flex;
  align-items: center;
  background: #245cc6;     /* preserve your existing background if needed */
  box-shadow: 0 3px 8px rgba(2,6,23,0.08);
}

/* make sure header contents don't add unexpected vertical space */
#header-container * { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
 }

body {
  padding-top: 72px;       /* must match header height */
}

/* Header bar */
.custom-header {
  position: fixed;
  top: 0;
  left: 0; /* full width header */
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Keep your styles */
  padding: 1rem 2rem;
  /* Add left padding equal to collapsed gutter so content aligns */
  padding-left: calc(60px + 2rem);
  background: linear-gradient(90deg, #3b82f6, #1e3a8a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1100; /* ABOVE sidebar */
  transition: padding 0.3s ease; /* only for shrink */
}

/* Shrunk header on scroll (unchanged) */
.custom-header.shrink {
  padding: 0.4rem 1rem;
  padding-left: calc(60px + 1rem);
}
.custom-header.shrink .logo {
  height: 28px;
  width: 28px;
  margin-right: 0.5rem;
}
.custom-header.shrink .site-name {
  font-size: 1rem;
}
.custom-header.shrink .nav-btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

/* Rest of your header styles unchanged */
.logo-section {
  display: flex;
  align-items: center;
}
.logo {
  height: 56px;
  width: 56px;
  margin-right: 0.75rem;
  border-radius: 6px;
  background-color: white;
  padding: 3px;
}
.site-name {
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.username {
  font-weight: 500;
  color: #e0f2fe;
  white-space: nowrap;
}
.nav-btn {
  padding: 0.4rem 0.9rem;
  background-color: white;
  color: #1e3a8a;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-btn:hover {
  background-color: #e0f2fe;
  transform: scale(1.05);
}
.logout-btn {
  background-color: #ef4444;
  color: white;
}
.logout-btn:hover {
  background-color: #dc2626;
}
