/* JARVIS Dashboard — extras to Tailwind. */

/* Leaflet container needs an explicit height */
#map {
  background: #0f172a;
}
.leaflet-container {
  background: #0f172a !important;
}

/* Compact custom scrollbar for dark UI */
.jarvis-scroll {
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.jarvis-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.jarvis-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.jarvis-scroll::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.jarvis-scroll::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Severity badge fallbacks (Tailwind already covers via utility classes,
   but keep these as defensive defaults if Tailwind CDN fails to load). */
.badge-critical { background-color: #dc2626; color: #fff; }
.badge-medium   { background-color: #f97316; color: #fff; }
.badge-low      { background-color: #475569; color: #f1f5f9; }

/* Chat bubble base styles */
.chat-msg-user {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 6px 10px;
  align-self: flex-end;
}
.chat-msg-assistant {
  background-color: #064e3b;
  border: 1px solid #065f46;
  border-radius: 8px;
  padding: 6px 10px;
  align-self: flex-start;
}

/* Line clamp utility (Tailwind v3 includes line-clamp by default but defensive) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Live aircraft layer markers */
.aircraft-icon, .aircraft-icon-emergency {
  background: transparent !important;
  border: none !important;
}
@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.6; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Vessel icons (AIS live) */
.vessel-icon {
  background: transparent !important;
  border: none !important;
}
