﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-dark: #090e17; /* Slate Navy */
  --bg-panel: rgba(16, 24, 39, 0.65);
  --bg-panel-hover: rgba(22, 32, 50, 0.85);
  
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-active: rgba(56, 189, 248, 0.3);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-data: #cbd5e1;
  
  /* Refined, muted accent colors */
  --accent-blue: #38bdf8; /* Light sky blue */
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-green: #10b981;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.04), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.03), transparent 25%);
  background-attachment: fixed;
}

/* Typography refinements */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.data-font {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

.label-font {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Premium Glassmorphism Panels */
.data-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.data-panel:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-active);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Clean UI Elements */
.intel-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.intel-button:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.intel-button.primary {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--accent-blue);
}

.intel-button.primary:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent-blue);
}

/* Subtle Data Pulse (replaces cheesy glow) */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-dot.critical { background: var(--accent-red); }
.status-dot.warning { background: var(--accent-amber); }
.status-dot.active { background: var(--accent-blue); }

.status-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid inherit;
  opacity: 0;
}

.status-dot.pulse-subtle::after {
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.status-dot.critical.pulse-subtle::after { border-color: var(--accent-red); }
.status-dot.warning.pulse-subtle::after { border-color: var(--accent-amber); }

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Grid overlay */
.analytical-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: 0;
}

/* Map Container */
#globeViz {
  width: 100%;
  height: 100%;
  cursor: grab;
}
#globeViz:active {
  cursor: grabbing;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-data);
}
.data-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}
\ n / *   H T M L   G l o b e   M a r k e r s   * / \ n . g l o b e - m a r k e r   {   p o s i t i o n :   r e l a t i v e ;   f o n t - f a m i l y :   ' J e t B r a i n s   M o n o ' ,   m o n o s p a c e ;   p o i n t e r - e v e n t s :   n o n e ;   } \ n . g l o b e - m a r k e r - d o t   {   w i d t h :   6 p x ;   h e i g h t :   6 p x ;   b o r d e r - r a d i u s :   5 0 % ;   p o s i t i o n :   a b s o l u t e ;   t o p :   - 3 p x ;   l e f t :   - 3 p x ;   b o x - s h a d o w :   0   0   1 0 p x   c u r r e n t C o l o r ;   } \ n . g l o b e - m a r k e r - l a b e l   {   p o s i t i o n :   a b s o l u t e ;   l e f t :   1 0 p x ;   t o p :   - 1 0 p x ;   b a c k g r o u n d :   r g b a ( 1 5 ,   2 3 ,   4 2 ,   0 . 8 5 ) ;   b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ;   p a d d i n g :   4 p x   6 p x ;   b o r d e r - r a d i u s :   3 p x ;   f o n t - s i z e :   9 p x ;   w h i t e - s p a c e :   n o w r a p ;   c o l o r :   # c b d 5 e 1 ;   b a c k d r o p - f i l t e r :   b l u r ( 4 p x ) ;   b o x - s h a d o w :   0   4 p x   6 p x   r g b a ( 0 , 0 , 0 , 0 . 3 ) ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   l e t t e r - s p a c i n g :   0 . 0 5 e m ;   } \ n . g l o b e - m a r k e r - l a b e l . c r i t i c a l   {   b o r d e r - c o l o r :   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 4 ) ;   } \ n . g l o b e - m a r k e r - l a b e l . w a r n i n g   {   b o r d e r - c o l o r :   r g b a ( 2 4 5 ,   1 5 8 ,   1 1 ,   0 . 4 ) ;   } \ n . g l o b e - m a r k e r - l a b e l . i n f o   {   b o r d e r - c o l o r :   r g b a ( 5 6 ,   1 8 9 ,   2 4 8 ,   0 . 4 ) ;   } \ n  
 \ n / *   F i x   g l o b e   m a r k e r   c e n t e r i n g   * / \ n . g l o b e - m a r k e r   {   w i d t h :   0 p x   ! i m p o r t a n t ;   h e i g h t :   0 p x   ! i m p o r t a n t ;   p o s i t i o n :   r e l a t i v e ;   f o n t - f a m i l y :   ' J e t B r a i n s   M o n o ' ,   m o n o s p a c e ;   p o i n t e r - e v e n t s :   n o n e ;   d i s p l a y :   f l e x ;   j u s t i f y - c o n t e n t :   c e n t e r ;   a l i g n - i t e m s :   c e n t e r ;   }  
 

/* HTML Globe Markers */
.globe-marker { position: relative; font-family: 'JetBrains Mono', monospace; pointer-events: none; width: 0; height: 0; }
.globe-marker-dot { width: 6px; height: 6px; border-radius: 50%; position: absolute; top: -3px; left: -3px; box-shadow: 0 0 10px currentColor; }
.globe-marker-label { position: absolute; left: 10px; top: -10px; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(255,255,255,0.1); padding: 4px 6px; border-radius: 3px; font-size: 9px; white-space: nowrap; color: #cbd5e1; backdrop-filter: blur(4px); box-shadow: 0 4px 6px rgba(0,0,0,0.3); text-transform: uppercase; letter-spacing: 0.05em; }
.globe-marker-label.critical { border-color: rgba(239, 68, 68, 0.4); }
.globe-marker-label.warning { border-color: rgba(245, 158, 11, 0.4); }
.globe-marker-label.info { border-color: rgba(56, 189, 248, 0.4); }
