:root {
  --st-bg: #f4f6f8;
  --st-surface: #ffffff;
  --st-border: #e5e7eb;
  --st-charcoal: #111827;
  --st-text-muted: #6b7280;
  --st-primary: #0284c7;
  --st-primary-hover: #0369a1;
  --st-radius: 20px;
}

body {
  background: #f4f6f8 !important;
  color: #111827 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f4f6f8 !important;
}

.app-main {
  background: #f4f6f8 !important;
  color: #111827 !important;
  flex: 1;
}

.view-content {
  background: #f4f6f8 !important;
  padding: 1.5rem;
}

/* ELEGANT LIGHT SAAS CARD & PANEL STYLING */
.st-card, .kpi-card, .workflow-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  color: #111827 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* KPI CARDS (Soft Pastel Tints) */
.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.35rem;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  border-color: #cbd5e1 !important;
}

.kpi-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}

/* KPI SOFT PASTEL BADGES */
.kpi-badge-blue {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd;
}

.kpi-badge-green {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0;
}

.kpi-badge-yellow {
  background: #fef9c3 !important;
  color: #a16207 !important;
  border: 1px solid #fef08a;
}

.kpi-badge-cyan {
  background: #f3e8ff !important;
  color: #7e22ce !important;
  border: 1px solid #e9d5ff;
}

/* ELEGANT WORKFLOW CARDS (Soft Pastel Tiles) */
.workflow-card {
  position: relative;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.workflow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.workflow-action-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s ease-in-out;
}

.workflow-card:hover .workflow-action-arrow {
  background: #111827;
  color: #ffffff;
  transform: scale(1.1) rotate(45deg);
  border-color: #111827;
}

/* PASTEL CARD TILES */
.card-tile-blue {
  background: #f0f9ff !important;
  border-color: #e0f2fe !important;
}

.card-tile-yellow {
  background: #fefce8 !important;
  border-color: #fef9c3 !important;
}

.card-tile-purple {
  background: #faf5ff !important;
  border-color: #f3e8ff !important;
}

.card-tile-green {
  background: #f0fdf4 !important;
  border-color: #dcfce7 !important;
}

.card-tile-cyan {
  background: #ecfeff !important;
  border-color: #cffafe !important;
}

/* CLEAN MINIMALIST TOP HEADER */
.app-header-clean {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.brand-logo-clickable {
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in-out;
}

.brand-logo-clickable:hover {
  opacity: 0.92;
  transform: scale(1.035);
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  background: #e0f2fe;
  border: 1.5px solid #bae6fd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.15);
}

.animate-target-spin {
  display: inline-block;
  animation: targetRotatePulse 10s linear infinite;
}

@keyframes targetRotatePulse {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.btn-pill {
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.95rem;
  transition: all 0.18s ease-in-out;
}

/* EXECUTIVE SYSTEM MENU TRIGGER BUTTON */
.btn-wow-menu-trigger {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 0.4rem 1rem !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  z-index: 1030 !important;
}

.btn-wow-menu-trigger * {
  pointer-events: none !important;
}

.btn-wow-menu-trigger:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35) !important;
}

/* AWWWARDS-STYLE FULL-SCREEN CURTAIN MENU OVERLAY */
.wow-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 25000 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wowMenuCurtainIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wowMenuCurtainIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.wow-menu-curtain-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: #f4f6f8 !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.btn-wow-menu-close {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s ease-in-out;
  position: relative;
  z-index: 30;
  pointer-events: auto !important;
}

.btn-wow-menu-close:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

.wow-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 30;
  pointer-events: auto !important;
}

.wow-nav-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.25rem;
  color: #1e293b !important;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 40 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.wow-nav-item * {
  pointer-events: none;
}

.wow-nav-num {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0284c7 !important;
  opacity: 0.9;
}

.wow-nav-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-grow: 1;
  color: #111827 !important;
}

.wow-nav-arrow {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease-in-out;
}

.wow-nav-item:hover, .wow-nav-item.active {
  color: #111827 !important;
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12) !important;
  transform: translateX(8px);
}

.wow-nav-item:hover .wow-nav-arrow, .wow-nav-item.active .wow-nav-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #0284c7 !important;
}

.wow-menu-preview-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 30px rgba(2, 132, 199, 0.08) !important;
  border-radius: 20px !important;
  color: #111827 !important;
}

/* FOLDABLE BOTTOM-RIGHT SPEED-DIAL FLOATING DOCK */
#floatingHudDock, .floating-hud-dock {
  position: fixed !important;
  bottom: 1.75rem !important;
  right: 1.75rem !important;
  z-index: 10080 !important;
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: flex-end !important;
  gap: 0.6rem !important;
}

/* Main Foldable Trigger Button */
.hud-trigger-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0284c7 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab !important;
  user-select: none !important;
  touch-action: none !important;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.hud-trigger-btn:hover {
  background: #0369a1 !important;
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.55) !important;
}

.hud-trigger-btn.is-dragging {
  cursor: grabbing !important;
  transform: scale(1.12) !important;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.65) !important;
  transition: none !important;
}

#floatingHudDock.dock-top-half {
  flex-direction: column !important;
}

#floatingHudDock.dock-left-side {
  align-items: flex-start !important;
}

#floatingHudDock.dock-left-side .hud-expanded-menu,
#floatingHudDock.dock-left-side .hud-speed-dial-menu {
  align-items: flex-start !important;
}

#floatingHudDock.dock-left-side .hud-item-wrapper {
  flex-direction: row-reverse !important;
}

.hud-trigger-btn .hud-icon-close { display: none; }
.hud-trigger-btn .hud-icon-fold { display: block; }

#floatingHudDock.active .hud-trigger-btn,
.floating-hud-dock.active .hud-trigger-btn,
.floating-hud-dock.expanded .hud-trigger-btn {
  background: #ef4444 !important;
  border-color: #ffffff !important;
  transform: rotate(90deg);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.45) !important;
}

#floatingHudDock.active .hud-trigger-btn .hud-icon-fold,
.floating-hud-dock.active .hud-trigger-btn .hud-icon-fold,
.floating-hud-dock.expanded .hud-trigger-btn .hud-icon-fold { display: none; }

#floatingHudDock.active .hud-trigger-btn .hud-icon-close,
.floating-hud-dock.active .hud-trigger-btn .hud-icon-close,
.floating-hud-dock.expanded .hud-trigger-btn .hud-icon-close { display: block; }

/* Expanded Speed-Dial Items Container */
.hud-expanded-menu, .hud-speed-dial-menu {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#floatingHudDock.active .hud-expanded-menu,
#floatingHudDock.active .hud-speed-dial-menu,
.floating-hud-dock.active .hud-expanded-menu,
.floating-hud-dock.active .hud-speed-dial-menu,
.floating-hud-dock.expanded .hud-expanded-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

/* Individual Unfolded Action Item */
.hud-item-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hud-tooltip {
  background: #1e293b;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.95;
}

.hud-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-item:hover {
  background: #0284c7;
  color: #ffffff;
  transform: scale(1.12);
  border-color: #0284c7;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.4);
}

.hud-item-primary {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.workflow-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(2, 132, 199, 0.2) !important;
  border-color: #0284c7 !important;
}

.app-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--st-bg);
}

.view-content {
  padding: 1.5rem;
  display: none;
}

.view-content.active {
  display: block;
}

.st-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
}

.st-card-header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--st-border);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.st-card-body {
  padding: 1.15rem;
}

.kpi-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--st-text-muted);
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--st-charcoal);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--st-text-muted);
}

.target-canvas-box {
  position: relative;
  background: #ffffff;
  display: inline-block;
  overflow: hidden !important;
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 3D Target View Mode Transformation */
.target-canvas-box-3d {
  perspective: 1000px;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  padding: 1rem !important;
  overflow: hidden !important;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08) !important;
}

#targetSimCanvas, #targetModalSimCanvas, #targetInspectCanvas {
  max-width: 100% !important;
  height: auto !important;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.12s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
  touch-action: none;
}

.table-compact th, .table-compact td {
  padding: 0.5rem 0.65rem;
  font-size: 0.825rem;
  vertical-align: middle;
}

.badge-status {
  font-size: 0.72rem;
  padding: 0.3em 0.55em;
  border-radius: 4px;
  font-weight: 600;
}

.row-deactivated {
  opacity: 0.45;
  background-color: #f1f5f9 !important;
}

.calc-pill {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
}

.photo-preview-box {
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* MOBILE & PORTABLE DEVICE RESPONSIVE CSS */
@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    bottom: 0;
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  }

  .app-sidebar.show-mobile {
    left: 0;
  }

  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1040;
    display: none;
  }

  .sidebar-backdrop.show {
    display: block;
  }

  .top-toolbar {
    padding: 0.6rem 1rem;
  }

  .view-content {
    padding: 1rem 0.75rem;
  }

  .target-canvas-box-3d {
    padding: 1rem !important;
  }
}

@media (max-width: 576px) {
  .kpi-value {
    font-size: 1.25rem;
  }

  .top-toolbar span {
    font-size: 0.9rem !important;
  }

  .btn-group-sm > .btn {
    padding: 0.2rem 0.35rem;
    font-size: 0.72rem;
  }
}

/* 3D INTRO SPLASH SCENE & ANIMATION STYLES */
#appIntroSplashModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #000000 !important;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

#introVideoContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  overflow: hidden;
}

#introVideo {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  object-fit: cover !important;
  background: #000000;
}

.intro-recoil-shake {
  animation: recoilKick 0.18s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes recoilKick {
  0% { transform: scale(1) translate(0, 0); }
  25% { transform: scale(1.025) translate(-4px, -8px); }
  50% { transform: scale(1.01) translate(3px, 4px); }
  75% { transform: scale(1.005) translate(-2px, -1px); }
  100% { transform: scale(1) translate(0, 0); }
}

#introLaunchBtnContainer {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  max-width: 260px;
}

.btn-intro-launch {
  background: #ffffff !important;
  color: #111827 !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.35rem;
  border-radius: 30px;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.btn-intro-launch:hover {
  transform: scale(1.05);
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.4) !important;
}

.fade-in {
  animation: fadeInControls 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInControls {
  from { opacity: 0; transform: translate(-50%, 25px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* RESPONSIVE INTRO MODAL CSS FOR MOBILE & PORTABLE DEVICES (<768px) */
@media (max-width: 767.98px) {
  #introLaunchBtnContainer {
    bottom: 6%;
    max-width: 210px;
  }

  .btn-intro-launch {
    font-size: 0.74rem;
    padding: 0.38rem 1rem;
  }

  #introTopControlsBar {
    padding: 0.4rem 0.6rem !important;
  }

  #introUnmuteBtn, #introLoopBadge {
    font-size: 0.68rem !important;
    padding: 0.22rem 0.55rem !important;
  }
}

/* LIGHT SAAS ENTERPRISE LOGIN MODAL GATEWAY */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 30000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.login-card-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 30001;
}

.login-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
  padding: 2.25rem 2rem !important;
  color: #111827 !important;
}

.login-card .brand-icon-box {
  background: rgba(2, 132, 199, 0.08) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card .brand-icon-box i {
  color: #0284c7 !important;
}

.login-card h4 {
  color: #111827 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.login-card .portal-sub-heading {
  color: #0284c7 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

.login-card .demo-fill-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0.85rem !important;
}

.login-card .demo-btn-admin {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}
.login-card .demo-btn-admin:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

.login-card .demo-btn-coach {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #16a34a !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}
.login-card .demo-btn-coach:hover {
  background: #dcfce7 !important;
  border-color: #16a34a !important;
  color: #15803d !important;
}

.login-card .demo-btn-shooter {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #d97706 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}
.login-card .demo-btn-shooter:hover {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #b45309 !important;
}

.login-card .form-label {
  color: #374151 !important;
  font-weight: 600 !important;
}

.login-card .input-group-text {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-right: none !important;
  color: #64748b !important;
}

.login-card .form-control {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 0.9rem !important;
}

.login-card .form-control:focus {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.login-card .btn-pw-toggle {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-left: none !important;
  color: #64748b !important;
}
.login-card .btn-pw-toggle:hover {
  background: #e2e8f0 !important;
  color: #111827 !important;
}

.login-card .btn-login-submit {
  background: #0284c7 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.2s ease;
}

.login-card .btn-login-submit:hover {
  background: #0369a1 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35) !important;
  transform: translateY(-1px);
}

/* FIX FOR FLOATING DOCK OBSTRUCTING TABLE ACTIONS & DELETE BUTTONS */
#floatingHudDock, .floating-hud-dock {
  pointer-events: none !important;
}

.hud-trigger-btn, .hud-item, .hud-expanded-menu, .hud-speed-dial-menu {
  pointer-events: auto !important;
}

#view-records .st-card-body,
#view-records .table-responsive {
  padding-bottom: 90px !important;
  margin-bottom: 2rem !important;
}

.table-compact td:last-child,
.table td:last-child {
  white-space: nowrap !important;
  min-width: 130px !important;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & PORTABLE DEVICE RESPONSIVENESS (v2.8.0)
   ========================================================================== */

@media (max-width: 992px) {
  .wow-nav-title {
    font-size: 0.95rem !important;
    letter-spacing: 0.02em !important;
  }

  .wow-nav-num {
    font-size: 0.8rem !important;
  }

  .wow-nav-item {
    padding: 0.55rem 0.85rem !important;
    gap: 0.75rem !important;
  }

  .wow-nav-list {
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    padding-right: 0.25rem !important;
  }

  .btn-wow-menu-trigger {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 768px) {
  .view-content {
    padding: 0.85rem !important;
  }

  .app-header-clean {
    padding: 0.5rem 0.75rem !important;
  }

  .brand-logo-clickable div:first-child {
    font-size: 0.85rem !important;
  }

  .brand-logo-clickable div:last-child {
    display: none !important;
  }

  .wow-nav-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  .wow-nav-num {
    font-size: 0.75rem !important;
    min-width: 20px !important;
  }

  .wow-nav-item {
    padding: 0.5rem 0.75rem !important;
    gap: 0.6rem !important;
    border-radius: 10px !important;
  }

  .wow-nav-arrow {
    font-size: 0.95rem !important;
  }

  #userProfileDropdown {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.6rem !important;
  }

  #userProfileDropdown span {
    max-width: 65px !important;
  }

  .kpi-card {
    padding: 0.85rem 0.75rem !important;
    border-radius: 14px !important;
  }

  .kpi-card .kpi-value {
    font-size: 1.35rem !important;
  }

  .kpi-icon-badge {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
  }

  .workflow-card {
    padding: 0.85rem !important;
    border-radius: 14px !important;
  }

  .workflow-card h6 {
    font-size: 0.82rem !important;
  }

  .workflow-card p {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  .workflow-action-arrow {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.9rem !important;
  }

  .table-compact th, .table-compact td,
  .table th, .table td {
    padding: 0.5rem 0.4rem !important;
    font-size: 0.76rem !important;
  }

  .btn-sm, .btn-xs {
    min-height: 34px !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
  }

  .modal-dialog {
    margin: 0.5rem !important;
  }

  .modal-body {
    padding: 0.85rem !important;
  }

  #targetInspectCanvas, #detailTargetCanvas, #targetModalSimCanvas {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 576px) {
  .wow-nav-title {
    font-size: 0.78rem !important;
  }

  .btn-wow-menu-trigger {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
  }

  .btn-wow-menu-trigger span:not(.wow-menu-burger-icon) {
    display: none !important;
  }

  .btn-wow-menu-close {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.6rem !important;
  }

  .kpi-card .text-secondary {
    font-size: 0.62rem !important;
  }

  .modal-footer {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .modal-footer > * {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* QUICK NAVBAR TOP TABS */
.btn-nav-tab {
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  padding: 0.35rem 0.75rem !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent !important;
}
.btn-nav-tab:hover {
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
}
.btn-nav-tab.active {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
  border-color: #bae6fd !important;
}

/* CUSTOM DASHBOARD TAG / TAB PILLS */
.custom-analytics-tabs {
  gap: 0.35rem;
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 0.35rem !important;
  border: 1px solid #e2e8f0 !important;
}
.custom-analytics-tabs .nav-link {
  border-radius: 10px !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  padding: 0.5rem 1.1rem !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent !important;
}
.custom-analytics-tabs .nav-link:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}
.custom-analytics-tabs .nav-link.active,
.custom-analytics-tabs .nav-link.active *,
.custom-analytics-tabs .nav-link.active i {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}
/* READ-ONLY SPECTATOR MODE STYLING & STRICT LOCKDOWN */
body.is-read-only-mode .btn-record-session,
body.is-read-only-mode .btn-add-card,
body.is-read-only-mode .btn-clear-data,
body.is-read-only-mode .btn-record-edit,
body.is-read-only-mode .btn-record-delete,
body.is-read-only-mode .btn-hide-readonly,
body.is-read-only-mode .btn-wow-menu-trigger,
body.is-read-only-mode [onclick*="openShareModal"],
body.is-read-only-mode #floatingHudDock,
body.is-read-only-mode .floating-hud-dock,
body.is-read-only-mode .hud-trigger-btn,
body.is-read-only-mode .hud-expanded-menu,
body.is-read-only-mode .hud-speed-dial-menu,
body.is-read-only-mode #btnDetailDelete,
body.is-read-only-mode #btnDetailEdit,
body.is-read-only-mode #btnDetailCalibrate {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.read-only-banner {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
}
