/* ===================================================================
   NAVINDRA — SPATIAL UI (UNIFIED SIDEBAR & HEADER)
   Versi disederhanakan: layer shadow/gradient dikurangi, animasi pulse
   digabung jadi satu, namun gaya "glass spatial" tetap dipertahankan.
   Semua class name dijaga sama dengan versi sebelumnya agar kompatibel
   dengan markup HTML & ship-animation.js yang sudah ada.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  /* Background */
  --space-void: #05060a;

  /* Glass Surfaces */
  --glass-0: rgba(255, 255, 255, 0.03);
  --glass-1: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-3: rgba(255, 255, 255, 0.12);

  /* Glass Borders */
  --border-0: rgba(255, 255, 255, 0.04);
  --border-1: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);

  /* Text */
  --text-primary: rgba(230, 235, 255, 0.95);
  --text-secondary: rgba(180, 190, 220, 0.65);
  --text-muted: rgba(140, 152, 185, 0.45);

  /* Accent */
  --accent: #39d353;
  --danger: #ff4f4f;
  --warning: #ffb74d;
  --info: #5ab4f5;
  --success: #39d353;

  /* Layout */
  --sidebar-width: 240px;
  --header-height: 60px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Shadow shorthands (dipakai berulang -> disederhanakan jadi 1 variabel) */
  --shadow-panel: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 24px rgba(0,0,0,0.30);
  --shadow-pill: inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 10px rgba(0,0,0,0.18);
  --shadow-hover: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 16px rgba(0,0,0,0.25);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.25s var(--ease-smooth);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--space-void);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== SPATIAL BACKGROUND (1 gradient saja, tetap ada ambient glow) ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(50,100,220,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(57,211,83,0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ===== LAYOUT ===== */
.app {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
  padding: 12px;
}

/* ===================================================================
   SIDEBAR
   =================================================================== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border: 1px solid var(--border-1);
  border-right: 1px solid var(--border-1);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  transition: var(--transition);
  z-index: 100;
  position: relative;
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px; right: -50px;
  height: 280px;
  background: radial-gradient(ellipse 80% 80% at 30% 0%, rgba(82,150,255,0.10) 0%, transparent 65%);
  pointer-events: none;
}

/* ===== BRAND / LOGO AREA ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-0);
  margin-bottom: 20px;
  margin-top: -8px;
}

.brand .avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--glass-2);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-pill);
  font-weight: bold;
  font-size: 16px;
}

.brand-text h3 { font-size: 14px; font-weight: 600; }
.brand-text .subtitle { font-size: 11px; color: var(--text-muted); letter-spacing: 0.03em; }

/* ===== NAVIGATION ===== */
.nav { display: flex; flex-direction: column; gap: 4px; padding: 0 10px; flex: 1; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--glass-1);
  border-color: var(--border-1);
}

.nav-item.active {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(82,150,255,0.14), rgba(57,211,83,0.08));
  border-color: var(--border-2);
  box-shadow: var(--shadow-hover);
  font-weight: 550;
}

.nav-item.active i { color: var(--info); }
.nav-item i { width: 18px; text-align: center; font-size: 14px; }

.nav-footer {
  padding: 16px 20px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-0);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================================================================
   MAIN CONTENT
   =================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.02);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border: 1px solid var(--border-1);
  border-left: none;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

/* ===================================================================
   HEADER
   =================================================================== */
.header {
  height: var(--header-height);
  min-height: var(--header-height);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-1);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 10;
  border-radius: 0 var(--radius-lg) 0 0;
}

.header-left { display: flex; align-items: center; gap: 16px; }

/* ===== STATUS INDICATOR (1 animasi pulse, warna lewat CSS var) ===== */
.status-indicator { display: flex; align-items: center; gap: 10px; }

.status-dot {
  --pulse-color: var(--danger);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pulse-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pulse-color) 15%, transparent),
              0 0 10px color-mix(in srgb, var(--pulse-color) 50%, transparent);
  animation: spatialPulse 2.4s ease-in-out infinite;
}

.status-dot.sailing { --pulse-color: var(--success); }

@keyframes spatialPulse {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--pulse-color) 15%, transparent),
                          0 0 8px color-mix(in srgb, var(--pulse-color) 40%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pulse-color) 5%, transparent),
                          0 0 16px color-mix(in srgb, var(--pulse-color) 60%, transparent); }
}

.header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.header-right { display: flex; align-items: center; gap: 16px; }
.header-info { display: flex; gap: 6px; }

/* ===== INFO CHIPS ===== */
.info-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--glass-1);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-pill);
  transition: var(--transition);
}

.info-item:hover { background: var(--glass-2); border-color: var(--border-2); }

.info-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.info-value { font-size: 12.5px; font-weight: 600; margin-top: 1px; }

/* ===================================================================
   DASHBOARD CONTENT
   =================================================================== */
.dashboard-content { flex: 1; padding: 18px 20px; overflow-y: auto; }

/* ===================================================================
   CARDS
   =================================================================== */
.card {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-smooth);
  height: 450px;
  width: 100%;
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-0);
  display: flex; justify-content: space-between; align-items: center;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-actions { display: flex; gap: 6px; }

.card-action {
  background: var(--glass-1);
  border: 1px solid var(--border-1);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 12px;
}

.card-action:hover {
  color: var(--text-primary);
  background: var(--glass-2);
  border-color: var(--border-2);
}

.card-body { padding: 10px; }

/* ===================================================================
   GRID LAYOUT
   =================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: minmax(50px, auto);
  gap: 16px;
  margin-bottom: 16px;
}

/* ===================================================================
   ROUTE SELECTION
   =================================================================== */
.route-selection { grid-column: 1; grid-row: 1; align-self: flex-start; height: auto; }

.route-buttons { display: flex; flex-direction: column; gap: 10px; }

.route-btn {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(57,211,83,0.16);
  color: #a8f7b8;
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(57,211,83,0.30);
  box-shadow: var(--shadow-pill);
}

.route-btn:hover {
  background: rgba(57,211,83,0.26);
  transform: translateY(-1px);
}

.route-btn.secondary {
  background: var(--glass-1);
  color: var(--text-secondary);
  border-color: var(--border-1);
}

.route-btn.secondary:hover {
  background: rgba(57,211,83,0.14);
  color: var(--text-primary);
  border-color: rgba(57,211,83,0.25);
}

.route-btn.start-btn {
  background: rgba(255,79,79,0.22);
  color: #ffb3b3;
  border-color: rgba(255,79,79,0.30);
}

.route-btn.start-btn:hover {
  background: rgba(255,79,79,0.34);
  transform: translateY(-1px);
}

.route-btn.start-btn.active {
  background: rgba(255,79,79,0.45);
  border-color: rgba(255,79,79,0.55);
}

/* ===================================================================
   GEO INFO
   =================================================================== */
.geo-info { grid-column: 2 / span 2; grid-row: 1; align-self: flex-start; height: auto; }

.geo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.geo-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-pill);
  transition: var(--transition);
}

.geo-item:hover {
  background: var(--glass-2);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

.geo-label { font-size: 10px; color: var(--text-muted); margin-bottom: 5px; letter-spacing: 0.06em; text-transform: uppercase; }
.geo-value { font-family: 'Space Grotesk', monospace; font-size: 15px; font-weight: 600; }

/* ===================================================================
   MAPS
   =================================================================== */
.satellite-map { grid-column: 1; grid-row: 2 / span 2; }
.virtual-map { grid-column: 3; grid-row: 2 / span 2; }

.map-container {
  height: 367px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.virtual-map .map-container {
  background-color: #0d1520;
  background-image:
    linear-gradient(rgba(82,150,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,150,255,0.06) 1px, transparent 1px);
  background-size: 75.5px 73px;
  box-shadow: inset 0 0 0 1px rgba(82,150,255,0.08);
}

.map-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 18px;
  font-weight: 500;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 4px;
  width: 100%; height: 100%;
  padding: 12px;
  position: relative; /* perlu untuk posisi absolute ship-icon/trail/marker */
}

.grid-cell { border: 1px solid rgba(82,150,255,0.06); border-radius: 2px; }

.grid-cell.active {
  background-color: rgba(57,211,83,0.15);
  box-shadow: inset 0 0 6px rgba(57,211,83,0.1);
}

.boat-marker {
  grid-column: 8; grid-row: 9;
  width: 24px; height: 24px;
  background: radial-gradient(circle, var(--danger) 0%, rgba(255,79,79,0.5) 100%);
  border-radius: 50%;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 12px rgba(255,79,79,0.5);
}

.boat-marker::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
}

.destination-marker {
  grid-column: 3; grid-row: 2;
  width: 16px; height: 16px;
  background: radial-gradient(circle, var(--accent) 0%, rgba(57,211,83,0.5) 100%);
  border-radius: 50%;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 10px rgba(57,211,83,0.5);
}

/* ===================================================================
   STATUS LOGS
   =================================================================== */
.status-logs { grid-column: 2; grid-row: 2; }

.logs-container { display: flex; flex-direction: column; gap: 10px; }
.log-category { display: flex; flex-direction: column; gap: 10px; }

.log-category-title {
  font-size: 10px;
  color: var(--text-muted);
  margin: 14px 0 8px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.log-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.log-pillstatus, .log-pillprogress, .log-pillsistem {
  padding: 10px 14px;
  border-radius: 50px;
  background: var(--glass-1);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-pill);
  font-size: 12px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 80px;
  transition: var(--transition);
}

.log-pillstatus:hover, .log-pillprogress:hover, .log-pillsistem:hover {
  background: var(--glass-2);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

.log-pillstatus { margin: 0 14px; margin-right: -13px; }
.log-pillstatus:last-child { margin-right: 0; }
.log-pillprogress { margin: 0 2px; }
.log-pillprogress:last-child { margin-right: 0; }
.log-pillsistem { margin: 0 35px; margin-right: -22px; }

/* ===================================================================
   IMAGING SECTION
   =================================================================== */
.imaging-section {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: -70px;
}

.imaging-card { height: 400px; }

.imaging-placeholder {
  min-height: 280px;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,12,28,0.85);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1rem;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(82,150,255,0.08);
}

.center-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
}

.logo-container { display: flex; justify-content: center; align-items: center; margin-bottom: 10px; }

.logo-image {
  width: 100px; height: auto;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(82,150,255,0.25));
  transition: var(--transition);
}

.logo-image:hover { transform: scale(1.04); }

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: bold;
  opacity: 0.8;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===================================================================
   CHARTS
   =================================================================== */
.charts-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-container { height: 250px; padding: 20px; }

.chart-placeholder {
  width: 100%; height: 100%;
  background: rgba(10,14,30,0.85);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(82,150,255,0.06);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.footer-info { display: flex; gap: 20px; }
.footer-item { display: flex; flex-direction: column; }
.footer-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.footer-value { font-size: 13px; font-weight: 600; margin-top: 2px; }

.progress-bars { display: flex; gap: 10px; }

.progress-bar {
  width: 100px; height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--info), var(--accent));
  border-radius: 2px;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .geo-info { grid-column: 1 / span 2; }
  .satellite-map { grid-column: 1; grid-row: 3; }
  .status-logs { grid-column: 2; grid-row: 3; }
  .virtual-map { grid-column: 1 / span 2; grid-row: 4; }
  .imaging-section { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { width: 70px; min-width: 70px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .brand-text, .nav-text { display: none; }
  .nav-item { justify-content: center; padding: 16px 12px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .geo-info, .satellite-map, .status-logs, .virtual-map { grid-column: 1; }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .header-info { display: none; }
  .main-content { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
  .header { border-radius: 0 var(--radius-lg) 0 0; }
  .footer { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.text-success { color: #4ade80; }
.text-danger  { color: #f87171; }
.text-warning { color: #fbbf24; }
.text-info    { color: #60a5fa; }

/* ===================================================================
   SCROLLBAR
   =================================================================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* ===================================================================
   MAP MARKERS & OVERLAYS
   (class ini dipakai langsung oleh ship-animation.js, jangan diubah namanya)
   =================================================================== */
.red-dot, .green-dot, .blue-dot {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: var(--transition);
  cursor: pointer;
}

.red-dot   { background: radial-gradient(circle, #f87171, #e74c3c); box-shadow: 0 0 8px rgba(231,76,60,0.6); }
.green-dot { background: radial-gradient(circle, #4ade80, #2ecc71); box-shadow: 0 0 8px rgba(46,204,113,0.6); }
.blue-dot  { background: radial-gradient(circle, #1f04ce, #0014ca); box-shadow: 0 0 8px rgba(7,96,198,0.6); }

.green-rect, .blue-rect {
  position: absolute;
  width: 16px; height: 8px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.4);
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: var(--transition);
  cursor: pointer;
}

.green-rect { background: linear-gradient(135deg, #4ade80, #2ecc71); box-shadow: 0 0 8px rgba(46,204,113,0.5); }
.blue-rect  { background: linear-gradient(135deg, #60a5fa, #3b82f6); box-shadow: 0 0 8px rgba(59,130,246,0.5); }

.biggreen-rect, .biggred-rect {
  position: absolute;
  width: 22px; height: 13px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.4);
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: var(--transition);
  cursor: pointer;
}

.biggreen-rect { background: linear-gradient(135deg, #4ade80, #2ecc71); box-shadow: 0 0 10px rgba(46,204,113,0.55); }
.biggred-rect  { background: linear-gradient(135deg, #f87171, #e74c3c); box-shadow: 0 0 10px rgba(231,76,60,0.55); }

.anchor-logo {
  position: absolute;
  color: rgba(140,152,185,0.5);
  font-size: 27px;
  transform: translate(-50%, -50%);
  transition: var(--transition);
  cursor: pointer;
}

.anchor-logo:hover { color: rgba(140,152,185,0.75); }

/* ===== B-LABEL ===== */
.map-container .map-grid .b-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(248,113,113,0.25);
  font-weight: 900;
  font-size: 70px;
  font-family: 'Space Grotesk', 'Arial Black', sans-serif;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  z-index: 10;
  opacity: 0.55;
  letter-spacing: 2px;
}

.map-container .map-grid .b-label:hover {
  transform: translate(-50%, -50%) scale(1.1);
  color: rgba(248,113,113,0.65);
  opacity: 1;
}

/* ===== NAVINDRA LOGO ===== */
.logo-navindra {
  width: 165px; height: auto;
  display: block;
  margin: -60px auto 10px auto;
  transition: transform 0.3s var(--ease-spring);
  filter: drop-shadow(0 0 10px rgba(82,150,255,0.20));
}

.logo-navindra:hover { transform: scale(1.04); }

/* ===================================================================
   VIDEO STREAMS
   =================================================================== */
.video-stream {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.video-overlay {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; gap: 8px;
  z-index: 10;
}

.video-badge {
  background: rgba(0,0,0,0.55);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(74,222,128,0.25);
}

.video-badge.offline { color: #fb923c; border-color: rgba(251,146,60,0.25); }

/* ===================================================================
   LOGOUT BUTTON
   =================================================================== */
.logout-btn {
  background: rgba(231,76,60,0.2);
  border: 1px solid rgba(231,76,60,0.30);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 7px;
  margin-left: 15px;
}

.logout-btn:hover {
  background: rgba(231,76,60,0.32);
  border-color: rgba(231,76,60,0.45);
  transform: translateY(-1px);
  color: #fecaca;
}

.logout-btn i { font-size: 12px; }

/* ===================================================================
   TRAIL & SHIP MARKER
   =================================================================== */
.trail-dot {
  opacity: 0.9;
  animation: fadeTrail 2s forwards;
}

@keyframes fadeTrail {
  from { opacity: 1; }
  to   { opacity: 0.1; }
}

.custom-ship-marker {
  background: transparent !important;
  border: none !important;
  display: flex; align-items: center; justify-content: center;
}

.custom-ship-marker i {
  transition: transform 0.2s linear;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.4));
}