/**
 * ============================================================================
 * atmospheric_3d_viewer.css — IMD NOVA 3D Area Explorer & Multi-Sensor Styles
 * ============================================================================
 * Implements 1:1 pixel-perfect styling matching IMD NOVA:
 *  - 2D Map Selection Card ("Explore a weather area")
 *  - 3-Column 3D Area Explorer Modal
 *  - Left Multi-Sensor Product Selector & Appearance Controls
 *  - Center 3D WebGL Scene with Atmospheric Wireframe & Height Guide
 *  - Right Statistical & Physical Analytics Suite (3 Histograms)
 * ============================================================================
 */

/* ── 1. 2D MAP SELECTION WIDGET CARD (Explore a weather area) ── */
.nova-3d-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

body.dark-mode .nova-3d-card,
.dark-theme .nova-3d-card,
.sidebar-dark .nova-3d-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nova-3d-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.nova-3d-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.2px;
}

.nova-3d-card-title i {
  color: #38bdf8;
  font-size: 14px;
}

body.dark-mode .nova-3d-card-title,
.dark-theme .nova-3d-card-title {
  color: #f8fafc;
}

.nova-3d-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nova-3d-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 10px;
}

body.dark-mode .nova-3d-card-desc,
.dark-theme .nova-3d-card-desc {
  color: #94a3b8;
}

/* 2-Tier Responsive Layout (Zero Clipping) */
.nova-3d-btn-full {
  width: 100%;
  margin-bottom: 7px;
}

.nova-3d-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.nova-3d-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.nova-3d-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.nova-3d-action-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.nova-3d-btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.nova-3d-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7) !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.5);
}

.nova-3d-status {
  font-size: 10.5px;
  color: #94a3b8;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.dark-mode .nova-3d-status,
.dark-theme .nova-3d-status {
  color: #94a3b8;
}

/* ── SATELLITE & NWP SELECT DROPDOWN REINFORCEMENT ── */
.sat-select {
  width: 100% !important;
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.sat-select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
}
.sat-select option {
  background: #0f172a !important;
  color: #f1f5f9 !important;
}
.sat-select optgroup {
  background: #1e293b !important;
  color: #94a3b8 !important;
}

/* Leaflet Selection Rectangle Style */
.leaflet-interactive.nova-draw-rect {
  stroke: #0284c7;
  stroke-width: 2.5;
  stroke-dasharray: 6, 6;
  fill: #38bdf8;
  fill-opacity: 0.22;
  filter: drop-shadow(0 0 6px rgba(2, 132, 199, 0.5));
}

/* ── 2. FULL 3D AREA EXPLORER MODAL WRAPPER ── */
.atm3d-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

.atm3d-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.atm3d-container {
  position: relative;
  z-index: 2;
  width: 96vw;
  max-width: 1560px;
  height: 92vh;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  transition: all 0.25s ease;
}

.atm3d-fullscreen {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}

/* ── THEME SWITCHING ── */
.atm3d-theme-dark.atm3d-container {
  background: #090d16;
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.3);
}

/* ── 3. HEADER BAR ── */
.atm3d-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.atm3d-theme-dark .atm3d-header {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.atm3d-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.atm3d-badge-sub {
  font-size: 10px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.atm3d-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.atm3d-title-text {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.atm3d-theme-dark .atm3d-title-text {
  color: #f8fafc;
}

.atm3d-extent-text {
  font-size: 12px;
  color: #475569;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.atm3d-theme-dark .atm3d-extent-text {
  color: #94a3b8;
}

.atm3d-footprint-meta {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atm3d-footprint-meta b {
  color: #334155;
}

.atm3d-theme-dark .atm3d-footprint-meta b {
  color: #cbd5e1;
}

.atm3d-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.atm3d-head-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.atm3d-head-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.atm3d-theme-dark .atm3d-head-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.atm3d-theme-dark .atm3d-head-btn:hover {
  background: #334155;
}

.atm3d-close-btn {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.atm3d-close-btn:hover {
  background: #fecaca;
  color: #b91c1c;
}

/* ── 4. SUBHEADER BAR ── */
.atm3d-subheader {
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
  padding: 6px 16px;
  font-size: 11px;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atm3d-theme-dark .atm3d-subheader {
  background: #111827;
  border-color: #1f2937;
  color: #94a3b8;
}

.atm3d-bearing-pill {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── 5. MAIN 3-COLUMN LAYOUT GRID ── */
.atm3d-body-grid {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── LEFT COLUMN: PRODUCTS & CONTROLS ── */
.atm3d-left-panel {
  width: 285px;
  min-width: 285px;
  max-width: 285px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  scrollbar-width: thin;
}

.atm3d-theme-dark .atm3d-left-panel {
  background: #090d16;
  border-color: rgba(255, 255, 255, 0.08);
}

.atm3d-left-actions {
  display: flex;
  gap: 6px;
}

.atm3d-tool-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.atm3d-tool-btn:hover {
  background: #f1f5f9;
}

.atm3d-theme-dark .atm3d-tool-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.atm3d-sec-hdr {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.atm3d-theme-dark .atm3d-sec-hdr {
  color: #cbd5e1;
}

.atm3d-prod-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.atm3d-prod-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 11.5px;
  color: #334155;
  transition: all 0.15s;
}

.atm3d-prod-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.atm3d-prod-item.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
  font-weight: 700;
}

.atm3d-theme-dark .atm3d-prod-item {
  background: #111827;
  border-color: #1f2937;
  color: #cbd5e1;
}

.atm3d-theme-dark .atm3d-prod-item.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: #0284c7;
  color: #38bdf8;
}

.atm3d-prod-cnt {
  font-size: 10px;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

.atm3d-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #475569;
}

.atm3d-theme-dark .atm3d-form-row {
  color: #94a3b8;
}

.atm3d-form-row label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.atm3d-select, .atm3d-input {
  width: 100%;
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.atm3d-theme-dark .atm3d-select,
.atm3d-theme-dark .atm3d-input {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

/* ── CENTER COLUMN: 3D THREE.JS CANVAS HOST ── */
.atm3d-center-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #eef2f6;
}

.atm3d-theme-dark .atm3d-center-panel {
  background: #090d16;
}

#atm3dCanvasHost {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

#atm3dCanvasHost canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* In-Scene Top-Left Height Guide Legend (Exact match to Image 2!) */
.atm3d-height-guide-card {
  position: absolute;
  top: 168px;
  right: 14px;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  font-size: 11px;
  color: #f8fafc;
  pointer-events: auto;
  user-select: none;
  min-width: 140px;
}

.atm3d-theme-dark .atm3d-height-guide-card {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.atm3d-hg-title {
  font-weight: 800;
  font-size: 11px;
  color: #0f172a;
  margin-bottom: 2px;
}

.atm3d-theme-dark .atm3d-hg-title {
  color: #f8fafc;
}

.atm3d-hg-sub {
  font-size: 9.5px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 6px;
}

.atm3d-theme-dark .atm3d-hg-sub {
  color: #94a3b8;
}

.atm3d-hg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  font-family: "JetBrains Mono", Consolas, monospace;
  margin-top: 2px;
}

.atm3d-theme-dark .atm3d-hg-row {
  color: #f1f5f9;
}

.atm3d-hg-dash {
  width: 16px;
  height: 3px;
  border-radius: 2px;
}

/* Floating Navigation Controls (Bottom Right) */
.atm3d-float-nav {
  position: absolute;
  bottom: 14px;
  right: 18px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.atm3d-theme-dark .atm3d-float-nav {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), 0 0 10px rgba(56, 189, 248, 0.15);
}

.atm3d-nav-btn {
  background: transparent;
  border: none;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.atm3d-nav-btn:hover {
  background: #e2e8f0;
  color: #0284c7;
}

.atm3d-nav-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.atm3d-theme-dark .atm3d-nav-btn {
  color: #cbd5e1;
}

.atm3d-theme-dark .atm3d-nav-btn:hover {
  background: #334155;
  color: #38bdf8;
}

.atm3d-theme-dark .atm3d-nav-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* In-Scene Bottom Legend */
.atm3d-bottom-legend {
  position: absolute;
  bottom: 8px;
  left: 14px;
  z-index: 10;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1.5px solid #94a3b8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}

.atm3d-theme-dark .atm3d-bottom-legend {
  background: rgba(15, 23, 42, 0.92);
  color: #f1f5f9;
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* ── RIGHT COLUMN: STATISTICAL & HISTOGRAM SUITE ── */
.atm3d-right-panel {
  width: 320px;
  min-width: 300px;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 14px;
  overflow-y: auto;
}

.atm3d-theme-dark .atm3d-right-panel {
  background: #090d16;
  border-color: rgba(255, 255, 255, 0.08);
}

.atm3d-chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.atm3d-theme-dark .atm3d-chart-card {
  background: #111827;
  border-color: #1f2937;
}

.atm3d-chart-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.atm3d-theme-dark .atm3d-chart-title {
  color: #f8fafc;
}

.atm3d-chart-desc {
  font-size: 9.5px;
  color: #64748b;
}

.atm3d-chart-canvas-wrap {
  width: 100%;
  height: 120px;
  position: relative;
}

.atm3d-chart-canvas-wrap canvas,
.atm3d-chart-canvas-wrap svg {
  width: 100%;
  height: 100%;
}

/* ── 6. COLLAPSIBLE DATA TABLE ── */
.atm3d-table-drawer {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  font-size: 10.5px;
}

.atm3d-theme-dark .atm3d-table-drawer {
  background: #111827;
  border-color: #1f2937;
}

.atm3d-table-drawer summary {
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  background: #f1f5f9;
  user-select: none;
}

.atm3d-theme-dark .atm3d-table-drawer summary {
  background: #1f2937;
}

.atm3d-data-table {
  width: 100%;
  border-collapse: collapse;
  max-height: 150px;
  overflow-y: auto;
  display: block;
}

.atm3d-data-table th, .atm3d-data-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.atm3d-theme-dark .atm3d-data-table th,
.atm3d-theme-dark .atm3d-data-table td {
  border-color: #1f2937;
}

/* ── 7. ADVANCED 3D MARKER SETTINGS CARD (Image 3 Parity) ── */
.atm3d-marker-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atm3d-theme-dark .atm3d-marker-card {
  background: #0f172a;
  border-color: #334155;
}

.atm3d-marker-card-title {
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.atm3d-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: 6px;
}

.atm3d-theme-dark .atm3d-toggle-group {
  background: rgba(255, 255, 255, 0.05);
}

.atm3d-toggle-btn {
  padding: 5px 4px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.atm3d-toggle-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

.atm3d-theme-dark .atm3d-toggle-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.atm3d-toggle-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.atm3d-size-btn-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-top: 4px;
}

.atm3d-size-btn {
  padding: 3px 2px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.atm3d-theme-dark .atm3d-size-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.atm3d-size-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.atm3d-size-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}

.atm3d-chk-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.atm3d-chk-label input[type="checkbox"] {
  accent-color: #0284c7;
  width: 13px;
  height: 13px;
  cursor: pointer;
}

/* ── 3D Basemap Customization Grid (Image 2 Parity) ── */
.atm3d-basemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 6px;
  padding: 1px;
}

.atm3d-bm-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  padding: 6px 2px;
  min-height: 48px;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.1;
  box-sizing: border-box;
}

.atm3d-bm-btn .atm3d-bm-icon {
  font-size: 14px;
  line-height: 1;
}

.atm3d-bm-btn .atm3d-bm-lbl {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.atm3d-bm-btn i {
  font-size: 12px;
  color: #0284c7;
}

.atm3d-bm-btn:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

.atm3d-bm-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.atm3d-bm-btn.active i {
  color: #ffffff;
}

.atm3d-theme-dark .atm3d-bm-btn {
  background: rgba(30, 41, 59, 0.75);
  border-color: #334155;
  color: #cbd5e1;
}

.atm3d-theme-dark .atm3d-bm-btn i {
  color: #38bdf8;
}

.atm3d-theme-dark .atm3d-bm-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #38bdf8;
  color: #38bdf8;
}

.atm3d-theme-dark .atm3d-bm-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.atm3d-theme-dark .atm3d-bm-btn.active i {
  color: #ffffff;
}

/* ── 3D LIGHTNING FILTERS (HEIGHT, TYPE & PEAK KA) ── */
.atm3d-filter-card {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.atm3d-theme-dark .atm3d-filter-card {
  background: #0f172a;
  border-color: #334155;
}

.atm3d-filter-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}

.atm3d-filter-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 5px 3px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atm3d-theme-dark .atm3d-filter-tab {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.atm3d-filter-tab:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.atm3d-filter-tab.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.35);
}

.atm3d-mini-tab {
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-theme-dark .atm3d-mini-tab {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.atm3d-mini-tab.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.atm3d-mini-btn {
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-theme-dark .atm3d-mini-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.atm3d-mini-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.atm3d-filter-slot-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 2px;
}

.atm3d-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-theme-dark .atm3d-slot-row {
  background: #1e293b;
  border-color: #334155;
}

.atm3d-slot-row.active {
  border-color: rgba(2, 132, 199, 0.45);
}

.atm3d-slot-lbl {
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.atm3d-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.atm3d-slot-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #334155;
  margin-right: 6px;
}

.atm3d-theme-dark .atm3d-slot-pill {
  background: #334155;
  color: #cbd5e1;
}

.atm3d-slot-row input[type="checkbox"] {
  accent-color: #0284c7;
  width: 12px;
  height: 12px;
  cursor: pointer;
}

/* ── COLLAPSIBLE DUAL SIDEBARS ── */
.atm3d-left-panel, .atm3d-right-panel {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.3s ease;
}

.atm3d-left-panel.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-right: none !important;
}

.atm3d-right-panel.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-left: none !important;
}

/* Floating Glassmorphic Pane Toggle Buttons */
.atm3d-pane-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  width: 22px;
  height: 54px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cbd5e1;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  font-size: 13px;
  padding: 0;
}
.atm3d-pane-toggle:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}
.atm3d-toggle-left {
  left: 0;
  border-radius: 0 8px 8px 0;
  border-left: none;
}
.atm3d-toggle-right {
  right: 0;
  border-radius: 8px 0 0 8px;
  border-right: none;
}
.atm3d-theme-dark .atm3d-pane-toggle {
  background: rgba(15, 23, 42, 0.88);
  border-color: #334155;
  color: #38bdf8;
}
.atm3d-theme-dark .atm3d-pane-toggle:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Legend Switch Button */
.atm3d-legend-switch-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0284c7;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 8px;
  line-height: 1.2;
}
.atm3d-legend-switch-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}
.atm3d-theme-dark .atm3d-legend-switch-btn {
  background: #1e293b;
  border-color: #334155;
  color: #38bdf8;
}
.atm3d-theme-dark .atm3d-legend-switch-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Peak kA Spectrum Guide Card */
.atm3d-peak-guide-card {
  max-width: 210px;
}

/* ══════════════════════════════════════════════════════════════════
   3D AREA EXPLORER REGIONAL INSET MINI-MAP CARD
   ══════════════════════════════════════════════════════════════════ */
.atm3d-minimap-card {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 280px;
  height: 195px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  transition: width 0.22s ease, height 0.22s ease;
}

.atm3d-minimap-card.expanded {
  width: 360px;
  height: 260px;
}

.atm3d-minimap-card.collapsed {
  width: 170px !important;
  height: 32px !important;
  overflow: visible !important;
}

.atm3d-minimap-card.collapsed .atm3d-minimap-body {
  display: none !important;
}

.atm3d-minimap-card.collapsed #btnAtmMiniMapExpand {
  display: none !important;
}

.atm3d-minimap-restore-tab {
  display: none;
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 20px;
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.6);
  border-top: none;
  border-radius: 0 0 6px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 60;
}

.atm3d-minimap-restore-tab:hover {
  background: rgba(14, 165, 233, 0.55);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.atm3d-minimap-card.collapsed .atm3d-minimap-restore-tab {
  display: block;
}

.atm3d-minimap-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  cursor: grab;
}

.atm3d-minimap-title {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.atm3d-minimap-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.atm3d-minimap-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 9px;
  transition: all 0.15s ease;
}

.atm3d-minimap-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
}

.atm3d-minimap-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100% - 32px);
  overflow: hidden;
  border-radius: 0 0 10px 10px;
}

.atm3d-minimap-host {
  width: 100%;
  height: 100%;
}

.atm3d-minimap-pill {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
  font-size: 9.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono', Consolas, monospace;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 500;
  backdrop-filter: blur(4px);
}

/* Pulsing / Blinking Selected 3D Bounding Box */
@keyframes atm3dBoxBlink {
  0%   { stroke-opacity: 1; stroke-width: 2.5px; stroke: #ef4444; }
  50%  { stroke-opacity: 0.3; stroke-width: 3.5px; stroke: #f87171; }
  100% { stroke-opacity: 1; stroke-width: 2.5px; stroke: #ef4444; }
}

.atm3d-minimap-pulse-box {
  animation: atm3dBoxBlink 1.4s infinite ease-in-out;
  stroke: #ef4444 !important;
  stroke-dasharray: 6, 5 !important;
  fill: #ef4444 !important;
  fill-opacity: 0.28 !important;
}

/* ══════════════════════════════════════════════════════════════
   IMD NOVA MULTISENSOR 3D EXTENSIONS (RADAR, SATELLITE RELIEF)
   ══════════════════════════════════════════════════════════════ */
.atm3d-prod-item input[type="checkbox"],
.atm3d-prod-item input[type="radio"] {
  accent-color: #0284c7;
  cursor: pointer;
  margin-right: 6px;
  width: 14px;
  height: 14px;
}

.atm3d-prod-subslider {
  background: rgba(2, 132, 199, 0.08);
  border-left: 2px solid #0284c7;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  margin-top: -2px;
  margin-bottom: 4px;
}

.atm3d-thermal-guide {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 11px;
  z-index: 200;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
  pointer-events: auto;
  user-select: none;
}

.atm3d-thermal-guide-title {
  font-weight: 700;
  font-size: 11.5px;
  color: #38bdf8;
  margin-bottom: 3px;
}

.atm3d-thermal-guide-sub {
  font-size: 9px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.atm3d-thermal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 3px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.atm3d-thermal-row:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateX(2px);
}

.atm3d-thermal-line {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.atm3d-hg-row {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.atm3d-hg-row:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateX(2px);
}

.atm3d-b13-legend {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: auto;
  width: calc(100% - 390px);
  max-width: 500px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 6px 14px;
  color: #e2e8f0;
  font-size: 10.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 150;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
  pointer-events: auto;
}

.atm3d-b13-bar {
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(to right,
    #ffffff 0%,
    #00e5ff 16.6%,
    #2563eb 33.3%,
    #7c3aed 50%,
    #0f766e 66.6%,
    #334155 83.3%,
    #1e293b 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.atm3d-b13-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
  font-family: monospace;
}





/* ══════════════════════════════════════════════════════════════════
   UNIFIED TABBED IN-SCENE GUIDE (MAP-CUSTOMIZATION PILL STYLE)
   ══════════════════════════════════════════════════════════════════ */
.atm3d-unified-guide {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 120;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
  padding: 8px 10px;
  color: #f8fafc;
  pointer-events: auto;
  user-select: none;
  min-width: 220px;
  max-width: 260px;
  transition: all 0.2s ease;
}

.atm3d-theme-light .atm3d-unified-guide {
  background: rgba(255, 255, 255, 0.96);
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.atm3d-guide-tabs {
  display: flex;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.atm3d-theme-light .atm3d-guide-tabs {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.atm3d-guide-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.atm3d-theme-light .atm3d-guide-tab {
  color: #475569;
}

.atm3d-guide-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.atm3d-theme-light .atm3d-guide-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

.atm3d-guide-tab.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.atm3d-guide-sub {
  font-size: 9px;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atm3d-theme-light .atm3d-guide-sub {
  color: #64748b;
}

/* ══════════════════════════════════════════════════════════════════
   LEFT SIDEBAR 6-SECTION ACCORDIONS (COLLAPSIBLE WITH ▼ / ▶)
   ══════════════════════════════════════════════════════════════════ */
.atm3d-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.atm3d-theme-light .atm3d-accordion {
  border-bottom-color: #e2e8f0;
}

.atm3d-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.65);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.atm3d-theme-light .atm3d-accordion-header {
  background: #f1f5f9;
  color: #0f172a;
}

.atm3d-accordion-header:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.atm3d-accordion-header .acc-icon {
  font-size: 9.5px;
  color: #38bdf8;
  transition: transform 0.2s ease;
}

.atm3d-accordion.collapsed .atm3d-accordion-header .acc-icon {
  transform: rotate(-90deg);
}

.atm3d-accordion-body {
  padding: 8px 4px;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  overflow: visible;
}

.atm3d-accordion.collapsed .atm3d-accordion-body {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   CAMERA & ROTATION KEYPAD (12-BUTTON MATRIX MATCHING IMD NOVA)
   ══════════════════════════════════════════════════════════════════ */
.atm3d-camera-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.atm3d-cam-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 2px;
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atm3d-theme-light .atm3d-cam-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.atm3d-cam-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.atm3d-cam-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}

.atm3d-cam-cardinal {
  font-weight: 900;
  color: #38bdf8;
}

.atm3d-cam-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.atm3d-cam-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-btn-rotate {
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid #0284c7;
  color: #38bdf8;
}

.atm3d-btn-rotate:hover, .atm3d-btn-rotate.active {
  background: #0284c7;
  color: #ffffff;
}

.atm3d-btn-stop {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
}

.atm3d-btn-stop:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════
   EXPORT SUITE (PNG IMAGE / JSON DATA / 30-SEC MP4 RECORDING)
   ══════════════════════════════════════════════════════════════════ */
.atm3d-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.atm3d-export-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.atm3d-theme-light .atm3d-export-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.atm3d-export-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

.atm3d-export-video-btn {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid #38bdf8;
  border-radius: 6px;
  padding: 9px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: all 0.15s ease;
}

.atm3d-export-video-btn:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
}

.atm3d-export-video-btn.recording {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #f87171;
  animation: atm3d-pulse 1s infinite alternate;
}

@keyframes atm3d-pulse {
  from { opacity: 0.85; transform: scale(0.99); }
  to { opacity: 1.0; transform: scale(1.01); }
}

/* ══════════════════════════════════════════════════════════════════
   DYNAMIC BOTTOM COLORBAR & COLLAPSIBLE RECORDS DRAWER
   ══════════════════════════════════════════════════════════════════ */
.atm3d-bottom-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.atm3d-bottom-bar-wrapper {
  padding: 6px 14px;
  pointer-events: auto;
  max-width: 520px;
  margin-left: 14px;
  margin-bottom: 4px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.atm3d-radar-bar {
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(to right,
    #050550 0%, #0000a0 8%, #0000ff 16%, #0080ff 25%, #00e0ff 33%, #a0ffff 42%,
    #ffffcc 50%, #ffff00 58%, #ffb000 67%, #ff7000 75%, #ff0000 83%, #d00000 92%, #900000 100%
  );
  margin: 3px 0;
}

.atm3d-records-drawer {
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  max-height: 240px;
  transition: max-height 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.atm3d-records-drawer.collapsed {
  max-height: 32px !important;
}

.atm3d-drawer-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.9);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  user-select: none;
}

.atm3d-drawer-hdr:hover {
  background: rgba(56, 189, 248, 0.15);
}

.atm3d-drawer-body {
  padding: 8px 16px;
  overflow-y: auto;
  flex: 1;
}

/* ── 2D MAP 3-BUTTON GRID & INSTRUCTIONS ── */
.nova-3d-btn-grid-3 {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.nova-3d-btn-grid-3 .nova-3d-action-btn {
  padding: 8px 4px;
  font-size: 10px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

.nova-3d-instructions {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* ── IMD NOVA KEYBOARD NAVIGATION FOOTER ── */
.atm3d-nav-help-footer {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.45;
  user-select: none;
}

.atm3d-theme-dark .atm3d-nav-help-footer {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(56, 189, 248, 0.15);
  color: #94a3b8;
}


/* ══════════════════════════════════════════════════════════════════
   ADVANCED 3D CAMERA CONSOLE (FLOATING GLASSMORPHIC POPOVER)
   ══════════════════════════════════════════════════════════════════ */
.atm3d-camera-console {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 326px;
  max-height: calc(100vh - 130px);
  background: rgba(10, 18, 36, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.2);
  z-index: 450;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  pointer-events: auto;
}

.atm3d-camera-console.collapsed {
  max-height: 44px !important;
  overflow: hidden !important;
}

.atm3d-console-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  cursor: pointer;
  user-select: none;
}

.atm3d-console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.atm3d-console-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.atm3d-console-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-live 1.5s infinite alternate;
}

@keyframes pulse-live {
  from { opacity: 0.5; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.15); }
}

.atm3d-console-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atm3d-console-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-console-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.atm3d-console-body {
  padding: 10px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

/* Console Card Modules */
.atm3d-console-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
}

.atm3d-console-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.atm3d-console-card-hdr span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atm3d-console-card-hdr i.info-icon {
  font-size: 10px;
  color: #64748b;
  cursor: help;
}

/* 🧭 Interactive Navigation Compass */
.atm3d-compass-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.atm3d-compass-dial-wrap {
  width: 110px;
  height: 110px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.atm3d-compass-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}

.atm3d-compass-telemetry {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atm3d-tel-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 5px 8px;
}

.atm3d-tel-lbl {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.atm3d-tel-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 1px;
}

/* 🔄 Orbit Rotation Controls */
.atm3d-orbit-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 8px;
}

.atm3d-orbit-btn {
  flex: 1;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-orbit-btn i {
  font-size: 13px;
}

.atm3d-orbit-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.atm3d-orbit-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.atm3d-orbit-btn.glow-pulse {
  animation: glow-pulse 1.8s infinite;
}

@keyframes glow-pulse {
  0% { box-shadow: 0 0 6px rgba(56, 189, 248, 0.4); }
  50% { box-shadow: 0 0 16px rgba(56, 189, 248, 0.85); }
  100% { box-shadow: 0 0 6px rgba(56, 189, 248, 0.4); }
}

/* Sliders */
.atm3d-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.atm3d-slider-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.atm3d-slider-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Preset Pills (Angle & Tilt) */
.atm3d-preset-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.atm3d-pill-step {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 6px;
  padding: 5px 2px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-pill-step:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.atm3d-pill-step.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.6);
}

/* 🔍 Zoom & Focus */
.atm3d-zoom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.atm3d-zoom-stepper {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-zoom-stepper:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.atm3d-zoom-acts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.atm3d-zoom-act-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 5px 2px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.atm3d-zoom-act-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

/* 🧊 10 Camera Presets Grid */
.atm3d-presets-grid-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.atm3d-preset-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.atm3d-preset-card i {
  font-size: 11px;
  color: #38bdf8;
}

.atm3d-preset-card:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.atm3d-preset-card.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════
   BOTTOM INTERACTIVE TOOLBAR & TELEMETRY STRIP (1:1 PARITY)
   ══════════════════════════════════════════════════════════════════ */
.atm3d-interactive-bottom-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  max-width: 95%;
}

.atm3d-pill-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(10, 18, 36, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 30px;
  padding: 4px 8px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.2);
}

.atm3d-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.atm3d-pill-btn i {
  font-size: 11px;
}

.atm3d-pill-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.atm3d-pill-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.atm3d-pill-console-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.atm3d-pill-console-btn:hover,
.atm3d-pill-console-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.atm3d-pill-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 2px;
}

.atm3d-telemetry-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 18, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 9.5px;
  color: #94a3b8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  user-select: none;
  white-space: nowrap;
}

.atm3d-telemetry-strip b {
  color: #38bdf8;
  font-weight: 700;
}

.atm3d-tel-sep {
  opacity: 0.35;
  color: #64748b;
}


/* ── PRIORITY LAYERS SLOT 6: 3D WEATHER EXPLORER INTERACTIVE CARD ── */
.wls-switch-card-3d {
  border-color: rgba(56, 189, 248, 0.4) !important;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.22), rgba(15, 23, 42, 0.9)) !important;
  position: relative;
  overflow: hidden;
}

.wls-switch-card-3d:hover {
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.35), rgba(22, 33, 56, 0.96)) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45), 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  transform: translateY(-1.5px);
}

.wls-switch-card-3d.active {
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.45), rgba(15, 23, 42, 0.98)) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.wls-switch-card-3d.active::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.wls-card-icon.cube-3d-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(99, 102, 241, 0.35)) !important;
  border: 1px solid rgba(56, 189, 248, 0.6) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wls-switch-card-3d:hover .wls-card-icon.cube-3d-icon {
  transform: scale(1.18) rotate(8deg);
}

.wls-3d-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2.5px 6.5px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wls-3d-badge-pill:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.wls-3d-badge-pill i {
  font-size: 8px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wls-3d-glow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  margin-left: 3px;
  animation: wlsPulseDot 1.8s infinite;
}

@keyframes wlsPulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ── EXPANDABLE 3D AREA EXPLORATION DRAWER ── */
.wls-3d-explore-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.25s ease;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.wls-3d-explore-drawer.open {
  max-height: 280px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 7px;
  margin-bottom: 8px;
}

.wls-3d-drawer-inner {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 11px;
  padding: 10px 11px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wls-3d-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.wls-3d-drawer-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wls-3d-drawer-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
  margin-bottom: 8px;
}

.nova-3d-btn-grid-3 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 5px;
  margin-bottom: 6px;
}

.nova-3d-instructions {
  font-size: 9px;
  color: #64748b;
  margin-bottom: 5px;
  line-height: 1.25;
}

.nova-3d-status {
  font-size: 9.5px;
  color: #38bdf8;
  font-weight: 600;
  padding: 3px 6px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}


/* ── MULTI-PRODUCT COLOR-CODED BACKGROUNDS & ACCORDION ACCENTS ── */
.atm3d-prod-item {
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-width: 1.5px !important;
}

.atm3d-prod-item:hover {
  transform: translateY(-1px);
}

.atm3d-prod-chk {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #38bdf8;
  margin-right: 6px;
  flex-shrink: 0;
}

/* 1. Lightning: Golden Amber */
.atm3d-prod-item[data-prod="lightning"] .atm3d-prod-chk {
  accent-color: #f59e0b;
}
.atm3d-prod-item[data-prod="lightning"].active,
.atm3d-theme-dark .atm3d-prod-item[data-prod="lightning"].active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.95)) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35), inset 0 0 8px rgba(245, 158, 11, 0.15) !important;
}

/* 2. Satellite: Deep Purple / Fuchsia */
.atm3d-prod-item[data-prod="satellite"] .atm3d-prod-chk {
  accent-color: #c084fc;
}
.atm3d-prod-item[data-prod="satellite"].active,
.atm3d-theme-dark .atm3d-prod-item[data-prod="satellite"].active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(15, 23, 42, 0.95)) !important;
  border-color: #c084fc !important;
  color: #e879f9 !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35), inset 0 0 8px rgba(168, 85, 247, 0.15) !important;
}

/* 3. Radar: Electric Cyan / Sky */
.atm3d-prod-item[data-prod="radar"] .atm3d-prod-chk {
  accent-color: #38bdf8;
}
.atm3d-prod-item[data-prod="radar"].active,
.atm3d-theme-dark .atm3d-prod-item[data-prod="radar"].active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22), rgba(15, 23, 42, 0.95)) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35), inset 0 0 8px rgba(56, 189, 248, 0.15) !important;
}

/* 4. Advanced Radar: Emerald */
.atm3d-prod-item[data-prod="advanced_radar"] .atm3d-prod-chk {
  accent-color: #34d399;
}
.atm3d-prod-item[data-prod="advanced_radar"].active,
.atm3d-theme-dark .atm3d-prod-item[data-prod="advanced_radar"].active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(15, 23, 42, 0.95)) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.35), inset 0 0 8px rgba(52, 211, 153, 0.15) !important;
}

/* 5. Rainfall: Blue */
.atm3d-prod-item[data-prod="rain"] .atm3d-prod-chk {
  accent-color: #60a5fa;
}
.atm3d-prod-item[data-prod="rain"].active,
.atm3d-theme-dark .atm3d-prod-item[data-prod="rain"].active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(15, 23, 42, 0.95)) !important;
  border-color: #60a5fa !important;
  color: #93c5fd !important;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.35) !important;
}

/* 6. TITAN: Violet */
.atm3d-prod-item[data-prod="titan"] .atm3d-prod-chk {
  accent-color: #a78bfa;
}
.atm3d-prod-item[data-prod="titan"].active,
.atm3d-theme-dark .atm3d-prod-item[data-prod="titan"].active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(15, 23, 42, 0.95)) !important;
  border-color: #a78bfa !important;
  color: #c4b5fd !important;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.35) !important;
}

/* 7. Hail Guidance: Ice Silver */
.atm3d-prod-item[data-prod="hail"] .atm3d-prod-chk {
  accent-color: #94a3b8;
}
.atm3d-prod-item[data-prod="hail"].active,
.atm3d-theme-dark .atm3d-prod-item[data-prod="hail"].active {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.22), rgba(15, 23, 42, 0.95)) !important;
  border-color: #94a3b8 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.35) !important;
}

/* Dynamic Hidden Accordion Class */
.atm3d-accordion.product-hidden {
  display: none !important;
}

/* Accordion Specific Colored Left Accents */
#accSecLightning .atm3d-accordion-header {
  border-left: 3px solid #f59e0b !important;
}
#accSecSatellite .atm3d-accordion-header {
  border-left: 3px solid #c084fc !important;
}
#accSecRadar .atm3d-accordion-header {
  border-left: 3px solid #0284c7 !important;
}
#accSecRadarAdv .atm3d-accordion-header {
  border-left: 3px solid #10b981 !important;
}

/* ── TEXT SELECTION ENABLEMENT (FULL TEXT SELECTABILITY IN SIDEBAR) ── */
.atm3d-sidebar,
.atm3d-sidebar *,
.atm3d-accordion,
.atm3d-accordion-body,
.atm3d-accordion-header span,
.atm3d-form-row,
.atm3d-form-row label,
.atm3d-control-row,
.atm3d-prod-item,
.atm3d-prod-cnt,
.atm3d-telemetry-strip,
.atm3d-telemetry-strip span {
  user-select: text !important;
  -webkit-user-select: text !important;
}

.atm3d-cam-btn,
.atm3d-pill-btn,
.atm3d-btn-primary,
.atm3d-acc-icon,
.atm3d-console-btn,
.atm3d-mini-btn,
.atm3d-toggle-btn {
  user-select: none !important;
  -webkit-user-select: none !important;
}


/* ── DWR RADAR STUDIO MODAL & 3D ISOSURFACE STYLES ── */
.dwr-studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: dwrFadeIn 0.25s ease-out;
}

@keyframes dwrFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.dwr-studio-dialog {
  background: linear-gradient(145deg, #0b1329, #080d1a);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
  width: 96vw;
  max-width: 1400px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f1f5f9;
}

.dwr-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.dwr-studio-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dwr-studio-title img {
  height: 42px;
  width: auto;
}

.dwr-studio-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.dwr-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .dwr-grid-cards {
    grid-template-columns: 1fr;
  }
}

.dwr-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.dwr-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.12);
}

.dwr-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
  border-left: 3px solid #38bdf8;
  padding-left: 8px;
  margin-bottom: 10px;
}

.dwr-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dwr-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dwr-card-img-wrap img:hover {
  transform: scale(1.02);
}

.dwr-analysis-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.dwr-badge-weather {
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
}

.dwr-badge-clear {
  background: #10b981;
  color: #fff;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
}
