/* --------- Header layout --------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;                 /* keep in sync with HEADER_HEIGHT */
  padding: 0 16px;
  background: #0f0f10;          /* dark header */
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-sizing: border-box;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-name {
  color: #eaeaea;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* --------- Tabs container (aligned right) --------- */
.app-tabs-wrap {
  margin: 0; /* Dash can inject margins; zero them here */
}

.app-tabs {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;   /* push tabs to the right */
  gap: 16px;
  background: transparent !important;
  border: none !important;
}

/* Remove default dcc.Tabs border/underline */
.app-tabs .tab {
  border: none !important;
}

/* --------- Individual tab pill --------- */
.app-tab {
  position: relative;
  padding: 8px 4px;
  margin: 0;
  background: transparent !important;
  border: none !important;
  color: #cfcfcf !important;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: color 160ms ease;
}

/* the animated underline (starts collapsed at center) */
.app-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;                 /* space under text */
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #7aa2ff, #63e0ff);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease-out;
  border-radius: 2px;
  opacity: 0.9;
}

/* Hover: expand from center */
.app-tab:hover {
  color: #ffffff !important;
}
.app-tab:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Active tab: underline shown */
.app-tab--active {
  color: #ffffff !important;
}
.app-tab--active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Make selected/hovered tabs feel clickable on touch, too */
.app-tab:active {
  opacity: 0.8;
}

/* --------- Page content area below the header --------- */
.app-content {
  position: relative;
  background: #000;
  overflow-y: auto;   /* allow vertical scrolling */
  overflow-x: hidden; /* keep sideways clipping */
}