/* ==========================================================================
   ATMOS V4 - Cupertino 2050 Design System (Phase 3)
   ========================================================================== */

:root {
  --glass-bg: rgba(30, 41, 59, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
}

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none; /* Prevents PWA pull-to-refresh bounce */
}

/* Spatial Radial Background */
.radial-bg {
  background: 
    radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08), transparent 50%),
    #0f172a;
}

/* Smart Glass Tiles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.4);
  border-radius: 24px;
}

/* Haptic Tactile Cues */
.haptic-trigger:active {
  transform: scale(0.98);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SortableJS States */
.sortable-ghost {
  opacity: 0.4;
  border: 2px dashed rgba(6, 182, 212, 0.5);
  background: rgba(15, 23, 42, 0.5);
}

.sortable-drag {
  opacity: 1 !important;
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  cursor: grabbing !important;
}

/* Doom Index & Radar Pulse */
@keyframes threat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); border-color: rgba(255, 255, 255, 0.08); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); border-color: rgba(255, 255, 255, 0.08); }
}

.radar-pulse {
  animation: threat-pulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Details Accordion Reset */
details > summary { 
  list-style: none; 
}
details > summary::-webkit-details-marker { 
  display: none; 
}

/* MapLibre Overrides */
.maplibregl-control-container { 
  display: none; /* Hide default controls/watermarks for sleek dashboard UI */
}

/* Note: Chart Canvas Overrides removed. 
  Chart.js requires native browser anti-aliasing for smooth bezier curves 
  and crisp typography on high-DPI/Retina screens.
*/
