/* ============================================================
   header.css — fixed top navigation bar
   ============================================================ */
#portal-header {
  position: fixed;
  top: 0; left: 230px; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

/* Search bar in header */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 480px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0 12px;
  height: 34px;
}

.header-search-icon {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.header-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  width: 100%;
}

.header-search-input::placeholder {
  color: var(--text-muted);
}

/* ── Left: logo + brand ── */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.header-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Center: system status ── */
.header-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green), 0 0 12px rgba(0, 230, 118, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Right: user controls ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-btn {
  background: none;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color 0.15s, color 0.15s;
}
.header-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.3), rgba(176, 64, 255, 0.3));
  border: 1px solid rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
}

.user-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
