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

:root {
  --bg-main: #080C1E;
  --bg-card: rgba(14, 22, 48, 0.9);
  --border-color: rgba(30, 58, 138, 0.4);
  --border-color-hover: rgba(13, 202, 240, 0.8);
  --accent-blue: #38BDF8;
  --accent-green: #00FF87;
  --accent-purple: #A855F7;
  --accent-pink: #EC4899;
  --accent-yellow: #F59E0B;
  --accent-red: #EF4444;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {  
  font-family: var(--font-sans) !important;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Custom Typography pairings */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display), sans-serif;
}
.font-mono {
  font-family: var(--font-mono), monospace !important;
}
/* Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 99px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

/* Dashboard Cards */
.dash-card {
  border-radius: 1rem;  
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
}
.dash-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.05);
}

/* Tabs and Pills custom styling */
.nav-pills .nav-link {
  color: #94A3B8 !important;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: transparent;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #000000 !important;
  background-color: var(--accent-blue) !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}
.nav-pills .nav-link:hover:not(.active) {
  background-color: rgba(30, 58, 138, 0.2) !important;
  color: #FFFFFF !important;
}

/* Active seed simulator buttons */
.btn-sim-active {
  background: rgba(0, 255, 135, 0.1) !important;
  border: 1px solid rgba(0, 255, 135, 0.3) !important;
  color: var(--accent-green) !important;
}

/* 3D Hospital Model SVG custom animations */
.zone-polygon {
  transition: fill 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}
.zone-polygon:hover {
  fill: rgba(56, 189, 248, 0.3) !important;
  stroke: var(--accent-green) !important;
}

/* Flow Particle Animation */
@keyframes flowParticle {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

.flow-particle {
  animation: flowParticle 6s linear infinite;
  offset-rotate: auto;
}

/* Interactive tables and lists */
.table-dark-custom {
  background: transparent !important;
  color: #E2E8F0 !important;
}
.table-dark-custom th {
  background: #0F1C3F !important;
  color: #94A3B8 !important;
  border-bottom: 1px solid var(--border-color) !important;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}
.table-dark-custom td {
  background: transparent !important;
  border-bottom: 1px solid rgba(30, 58, 138, 0.15) !important;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Select indicators */
.triage-badge {
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

/* Micro graphs */
.sparkline-container {
  height: 24px;
}

/* Form overrides */
input.form-control-dark, select.form-select-dark {
  background-color: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(30, 58, 138, 0.4) !important;
  color: #F1F5F9 !important;
  font-size: 0.75rem !important;
  border-radius: 0.375rem !important;
}
input.form-control-dark:focus, select.form-select-dark:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15) !important;
  outline: none;
}

/* Alerts custom styling */
.alert-custom-red {
  background: rgba(239, 104, 104, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.5rem;
}
.alert-custom-amber {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.5rem;
}
.alert-custom-blue {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.5rem;
}
.border {
	border-radius: 15px;
}
#shiftingDataColumn {
	font-size: 12px;
}