/* Font: Sarabun & Kanit for Government EMS UI */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #1e3a8a;
  --primary-navy: #0f172a;
  --ems-red: #dc2626;
  --ems-yellow: #eab308;
  --ems-green: #16a34a;
}

body {
  font-family: 'Sarabun', sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Kanit', sans-serif;
}

/* Sticky Emergency Bar */
.sticky-emergency-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
  animation: pulse-border 2.5s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-bottom: 3px solid #fca5a5; }
  50% { border-bottom: 3px solid #ffffff; }
}

/* Tree Structure Diagram Styling */
.tree-node {
  position: relative;
  transition: all 0.25s ease-in-out;
}

.tree-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.tree-connector-v {
  width: 2px;
  background-color: #cbd5e1;
  margin: 0 auto;
}

.tree-connector-h {
  height: 2px;
  background-color: #cbd5e1;
}

/* Badges */
.badge-emt {
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-emr {
  background-color: #ea580c;
  color: #ffffff;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Triage Bar Animations */
.triage-bar {
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cards & Hover Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.12);
}

/* Smooth Tab transitions */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
