/* ============================================================================
   CYCLONE ARCHITECT // SATELLITE & NEXRAD WEATHER IMAGING LAB STYLESHEET
   ============================================================================ */

.imaging-body {
  background: var(--bg-deep);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.imaging-top-bar {
  flex-wrap: wrap;
  padding: 7px 14px;
  gap: 10px;
}

.imaging-nav-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pair {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-nav-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px 0 0 5px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.24);
  color: #e0f2fe;
  cursor: pointer;
}

.btn-nav-link:hover {
  background: rgba(14, 116, 144, 0.42);
}

.btn-nav-pop {
  padding: 5px 7px;
  border-radius: 0 5px 5px 0;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-left: none;
  background: rgba(15, 23, 42, 0.78);
  color: #7dd3fc;
  cursor: pointer;
}

.btn-nav-conus {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(15, 118, 110, 0.26);
  color: #ccfbf1;
}

.sync-pill-img {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

/* LIVE HEADLINE TICKER BAR */
.imaging-headline-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  background: linear-gradient(90deg, #0b162a 0%, #132342 60%, #0b162a 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  font-size: 12.5px;
  flex-shrink: 0;
}

.imaging-headline-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fde047;
  white-space: nowrap;
}

.imaging-headline-text {
  color: #f8fafc;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* 3-COLUMN WORKSPACE (WITH DRAGGABLE SIDEBAR SPLITTERS) */
.imaging-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--left-panel-w, 372px) minmax(360px, 1fr) var(--right-panel-w, 406px);
  gap: 0;
}

.imaging-workspace.has-panel-splitters {
  grid-template-columns: var(--left-panel-w, 372px) 10px minmax(300px, 1fr) 10px var(--right-panel-w, 406px);
  gap: 0;
}

.imaging-sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 11px 13px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.imaging-sidebar-right {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}

.img-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.img-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding-bottom: 6px;
}

.img-card-hdr h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e2e8f0;
  text-transform: uppercase;
}

.img-badge {
  font-family: var(--font-mono);
  font-size: 11.2px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.img-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.img-slider-lbl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #cbd5e1;
}

.img-slider-lbl strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
}

.img-slider-row input[type="range"] {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.img-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.img-mini-btn {
  background: #162440;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 12.2px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.14s, border-color 0.14s;
}

.img-mini-btn:hover {
  background: #1e3258;
  border-color: #38bdf8;
}

.img-mini-btn.active {
  background: rgba(56, 189, 248, 0.24);
  border-color: #38bdf8;
  color: #ffffff;
}

/* CENTER VIEWPORT */
.imaging-center-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #040811;
}

.channel-deck {
  background: #091224;
  border-bottom: 1px solid var(--border-subtle);
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.channel-row-tag {
  font-family: var(--font-mono);
  font-size: 11.8px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 86px;
}

.chan-pill {
  background: #111d34;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12.2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}

.chan-pill:hover {
  background: #192b4d;
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
}

.chan-pill.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(56, 189, 248, 0.22));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.28);
}

.chan-pill.radar-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(45, 212, 191, 0.22));
  border-color: #2dd4bf;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.28);
}

/* SUB-TOOLBAR (FOV, OVERLAYS, LOOP SCRUBBER) */
.imaging-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 11px;
  background: #070e1c;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 12px;
}

.imaging-toggles {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  color: #cbd5e1;
}

.imaging-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* CANVAS CONTAINER */
.imaging-canvas-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #081224 0%, #030710 100%);
  overflow: hidden;
}

#imagingMainCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.imaging-hud-top-left {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(5, 10, 20, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 6px;
  padding: 7px 11px;
  pointer-events: none;
  max-width: 440px;
}

.hud-chan-title {
  font-family: var(--font-mono);
  font-size: 13.8px;
  font-weight: 700;
  color: #f8fafc;
}

.hud-chan-sub {
  font-family: var(--font-mono);
  font-size: 11.8px;
  color: #93c5fd;
  margin-top: 2px;
}

.imaging-hud-bottom {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
}

.imaging-colorbar-box,
.imaging-probe-box {
  background: rgba(5, 10, 20, 0.89);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11.8px;
  color: #e2e8f0;
}

.colorbar-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cb-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.2px;
}

.cb-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* DIAGNOSTIC READOUTS IN SIDEBARS */
.diag-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.diag-kv {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 5px;
  padding: 6px 8px;
}

.diag-kv .k {
  font-family: var(--font-mono);
  font-size: 10.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

.diag-kv .v {
  font-family: var(--font-mono);
  font-size: 13.8px;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

.driver-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.8px;
  line-height: 1.46;
  color: #dbeafe;
}

.driver-bullet-list li {
  background: rgba(14, 116, 144, 0.14);
  border-left: 3px solid #38bdf8;
  padding: 6px 9px;
  border-radius: 0 4px 4px 0;
}

.sig-guide-block {
  font-size: 12.8px;
  line-height: 1.48;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sig-guide-item {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 5px;
  padding: 7px 9px;
}

.sig-guide-item strong {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 11.8px;
  display: block;
  margin-bottom: 2px;
}

.adt-bulletin-pre {
  font-family: var(--font-mono);
  font-size: 12.4px;
  line-height: 1.46;
  color: #e2e8f0;
  background: #070d19;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 5px;
  padding: 9px 10px;
  white-space: pre-wrap;
}

@media (max-width: 1260px) {
  .imaging-workspace {
    grid-template-columns: var(--left-panel-w, 326px) 1fr var(--right-panel-w, 344px);
  }
  .imaging-workspace.has-panel-splitters {
    grid-template-columns: var(--left-panel-w, 326px) 10px minmax(260px, 1fr) 10px var(--right-panel-w, 344px);
  }
}
