/* Admiral tool styles shared under HQ shell — page-specific CSS stays inline. */

:root {
  --danger: #ff6b6b;
  --ok: #4ade80;
  --warn: #fbbf24;
}

.main-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.admiral-page {
  min-height: 100%;
  position: relative;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 12, 0.65);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}

/* Toolbar controls should not stretch like form fields */
.admiral-page .page-toolbar .control-btn,
.admiral-page .page-toolbar .custom-select-btn,
.admiral-page .page-toolbar button {
  width: auto;
}
.admiral-page .page-toolbar .env-select {
  width: auto;
  min-width: 140px;
}

.page-body {
  padding: 16px 20px 80px;
}

.page-body--flush {
  padding: 0;
}

/* HQ header action buttons (fleet pause / reload) — match settings chrome */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-active-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-left: 10px;
  min-width: 0;
  white-space: nowrap;
}

.header-active-stat__label {
  font-size: 12px;
  color: var(--muted);
}

.header-active-stat__value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .header-active-stat__label {
    display: none;
  }
}

.header-update-countdown {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.header-action-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  flex-shrink: 0;
  cursor: pointer;
  outline: none;
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease);
}

.header-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-action-btn:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: #16181b;
}

.header-action-btn:active {
  background: #1a1c20;
  border-color: var(--border-strong);
}

.header-action-btn:focus-visible {
  border-color: rgba(106, 163, 255, 0.45);
  box-shadow: var(--focus-ring);
  color: var(--fg);
}

/* Fixed footers (errors) — sit under main, not under sidebar */
.admiral-page .footer {
  position: fixed;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  z-index: 2500;
}
@media (max-width: 768px) {
  .admiral-page .footer {
    left: 0;
  }
}
