/* SFDB02 / Starfleet Dashboard chrome parity.
 * Tokens measured from https://sfdb02.ccitestpartner.com on 2026-09-02.
 * Loaded after app.css so these overrides win without rewriting 4.5k lines. */

:root {
  --in-cyan: #0098df;
  --in-elevated: #1a1d36;
  --in-font: "Maven Pro", Arial, Helvetica, sans-serif;
  --in-gray: #58585b;
  --in-gray-light: #bcbec0;
  --in-gray-mid: #6d6e71;
  --in-ink: #0b0c18;
  --in-navy: #211e71;
  --in-sky: #a8cbeb;
  --in-status-degraded: #e0a33a;
  --in-status-offline: #d8615f;
  --in-status-online: #34c77b;
  --in-surface: #121428;
  --text: #f0f2f5;
  --text-primary: #f0f2f5;
  --ok: #34c77b;
  --ok-tint: rgba(52, 199, 123, 0.14);
  --warn: #e0a33a;
  --warn-tint: rgba(224, 163, 58, 0.14);
  --err: #d8615f;
  --err-tint: rgba(216, 97, 95, 0.14);
}

html, body, #root {
  font-family: "Maven Pro", Arial, Helvetica, sans-serif;
}

/* —— Login (Starfleet Management Portal) —— */
.login-shell {
  background-color: #0b0c18;
  background-image:
    linear-gradient(rgba(168, 203, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 203, 235, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.login-shell::after { display: none; }
.login-card {
  width: min(440px, 100%);
  padding: 36px 36px 28px;
  border-radius: 18px;
  background: #121428;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.login-brand-logo {
  display: block;
  width: min(236px, 72%);
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
}
.login-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.32px;
  color: #f0f2f5;
}
.login-sub { display: none; }
.login-card .field label {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.login-card .field label .req {
  color: #d8615f;
  margin-left: 3px;
}
.field-control {
  position: relative;
  display: flex;
  align-items: center;
}
.field-control .field-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: #6d6e71;
  pointer-events: none;
}
.field-control input {
  width: 100%;
  padding-left: 40px !important;
  min-height: 44px;
  border-radius: 8px;
  background: #0b0c18;
  border: 1px solid rgba(188, 190, 192, 0.28);
  color: #f0f2f5;
}
.field-control input:focus {
  border-color: rgba(0, 152, 223, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 152, 223, 0.18);
}
.field-toggle {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #bcbec0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.field-toggle:hover { color: #f0f2f5; background: rgba(255,255,255,0.04); }
.login-card .btn {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.28px;
  background: linear-gradient(135deg, #0098df 0%, #1d4ed8 58%, #211e71 100%);
  box-shadow: 0 1px 3px rgba(0, 152, 223, 0.35);
}
.login-foot {
  color: #6d6e71;
  font-size: 12px;
}

/* —— Shell / sidebar —— */
.app-shell { grid-template-columns: 268px 1fr; }
.sidebar {
  background: #0e101a;
  border-right: 1px solid rgba(168, 203, 235, 0.08);
  padding: 16px 12px 12px;
}
.side-brand {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  border-bottom: 1px solid rgba(168, 203, 235, 0.08);
  margin-bottom: 14px;
  padding: 4px 6px 14px;
}
.side-brand-logo {
  display: block;
  width: 100%;
  max-width: 236px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.admin-access-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  align-self: flex-start;
  margin-left: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 152, 223, 0.55);
  color: #0098df;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-access-badge svg { width: 13px; height: 13px; }
.nav-section {
  font-family: "Maven Pro", Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #6d6e71;
}
.nav-item {
  gap: 10px;
  padding: 9px 12px 9px 11px;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  color: #d5dce8;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-item:hover {
  background: rgba(0, 152, 223, 0.08);
  color: #f0f2f5;
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 152, 223, 0.22), rgba(0, 152, 223, 0.06));
  border-left-color: #0098df;
  color: #f0f2f5;
}
.nav-item .dot { display: none; }
.nav-item .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
  opacity: 0.9;
}
.nav-item.active .nav-icon { color: #0098df; }

.sidebar-footer {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(168, 203, 235, 0.08);
  color: #6d6e71;
  font-size: 11px;
  line-height: 1.45;
}
.sidebar-footer-copyright,
.sidebar-version { color: #6d6e71; }
.sidebar-footer-link { color: #a8cbeb; }

/* —— Top bar —— */
.topbar {
  height: 56px;
  background: rgba(11, 12, 24, 0.92);
  box-shadow: inset 0 -1px 0 0 rgba(0, 152, 223, 0.12);
}
.crumbs,
.topbar-product {
  font-family: "Maven Pro", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #f0f2f5;
}
.topbar-product span {
  display: none;
}
.topbar-help {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(188, 190, 192, 0.22);
  background: transparent;
  color: #bcbec0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-help:hover {
  color: #f0f2f5;
  border-color: rgba(0, 152, 223, 0.45);
}
.account-avatar {
  width: 34px;
  height: 34px;
  border: 0;
  background: #0098df;
  color: #fff;
  font-family: "Maven Pro", Arial, Helvetica, sans-serif;
  box-shadow: none;
}
.account-avatar:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 3px rgba(0, 152, 223, 0.22);
}

/* —— Buttons / tables / page heads —— */
.btn {
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.28px;
  min-height: 42.5px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #0098df 0%, #1d4ed8 62%, #211e71 100%);
  box-shadow: 0 1px 3px rgba(0, 152, 223, 0.35);
}
.btn-ghost,
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(0, 152, 223, 0.55);
  color: #0098df;
  font-weight: 700;
}
.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(0, 152, 223, 0.1);
  color: #f0f2f5;
  border-color: rgba(0, 152, 223, 0.75);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.view-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.32px;
  color: #f0f2f5;
}
.page-head p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13.5px;
}

table thead th,
.data-table thead th,
.table th {
  background: rgba(33, 30, 113, 0.35);
  color: #bcbec0;
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.ok,
.pill.ok {
  background: rgba(52, 199, 123, 0.16);
  color: #34c77b;
}
.badge.warn,
.pill.warn {
  background: rgba(224, 163, 58, 0.16);
  color: #e0a33a;
}
.badge.danger,
.pill.danger {
  background: rgba(216, 97, 95, 0.16);
  color: #d8615f;
}

.sidebar-wgip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b919a;
  font-size: 12px;
  line-height: 1.35;
  padding: 2px 0 6px;
}
.sidebar-wgip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #7b818c;
}
