/* ═══════════════════════════════════════════
   Pest Hanter — Shared Header Styles
   Single source of truth for ALL pages
   ═══════════════════════════════════════════ */

header.hanter-header {
  background: #0F172A;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hanter-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hanter-header .logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hanter-header .logo-mark svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.hanter-header .logo-text {
  color: #F8FAFC;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.hanter-header .logo-sub {
  color: #64748B;
  font-size: 11px;
  line-height: 1.2;
}

.hanter-header .header-nav {
  display: flex;
  gap: 2px;
  margin-left: 24px;
}

.hanter-header .header-nav a {
  color: #94A3B8;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  cursor: pointer;
}

.hanter-header .header-nav a:hover {
  color: #E2E8F0;
  background: rgba(255,255,255,.06);
}

.hanter-header .header-nav a.active {
  color: #14B8A6;
  background: rgba(20,184,166,.1);
}

.hanter-header .btn-logout {
  color: #94A3B8;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
  font-family: 'Inter', 'Poppins', sans-serif;
}

.hanter-header .btn-logout:hover {
  background: rgba(239,68,68,.12);
  color: #FCA5A5;
  border-color: rgba(239,68,68,.25);
}

/* ── Header Right (role badge + logout) ── */
.hanter-header .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.hanter-header .role-badge {
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
  letter-spacing: .02em;
}

.hanter-header .role-badge.role-owner {
  color: #14B8A6;
  background: rgba(20,184,166,.1);
  border-color: rgba(20,184,166,.25);
}

.hanter-header .role-badge.role-staff {
  color: #60A5FA;
  background: rgba(96,165,250,.1);
  border-color: rgba(96,165,250,.25);
}

.hanter-header .role-badge.role-technician {
  color: #FBBF24;
  background: rgba(251,191,36,.1);
  border-color: rgba(251,191,36,.25);
}

.hanter-header .role-badge.role-developer {
  color: #A78BFA;
  background: rgba(167,139,250,.1);
  border-color: rgba(167,139,250,.25);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  header.hanter-header {
    padding: 0 1rem;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .hanter-header .logo-text,
  .hanter-header .logo-sub { display: none; }
  .hanter-header .header-nav {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 2px;
  }
  .hanter-header .header-nav a {
    padding: 5px 8px;
    font-size: 11px;
  }
  .hanter-header .role-badge {
    font-size: 10px;
    padding: 2px 8px;
  }
}
