/* Base Styles & Font Definition - Enlarged Scale for Enhanced Legibility */
html {
  font-size: 16.5px;
}

@media (min-width: 768px) {
  html {
    font-size: 17.5px;
  }
}

body {
  font-family: 'Tajawal', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  font-size: 1rem;
  line-height: 1.6;
}

/* Custom Scrollbar for sleek EMR look */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B1120;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0EA5E9;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Tab active states */
.active-tab {
  background-color: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.active-diff {
  background-color: #0EA5E9;
  color: #ffffff !important;
}

.active-spec {
  border-color: #0EA5E9 !important;
  background-color: rgba(14, 165, 233, 0.15) !important;
}

.active-status-filter {
  background-color: #0EA5E9 !important;
  color: #ffffff !important;
}

.active-emr-subtab {
  background-color: #0EA5E9 !important;
  color: #ffffff !important;
}

/* Decision option styles */
.decision-option-btn {
  transition: all 0.15s ease-out;
}
.decision-option-btn:hover {
  border-color: #0EA5E9;
  background-color: rgba(14, 165, 233, 0.08);
}
.decision-option-btn.selected {
  border-color: #0EA5E9;
  background-color: rgba(14, 165, 233, 0.18);
  color: #ffffff;
}

/* ECG pattern mockup styling */
.ecg-pattern {
  background-image: radial-gradient(#0EA5E9 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Vital pulse indicator animation */
@keyframes heartBeatGlow {
  0% { transform: scale(1); opacity: 0.8; }
  25% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px #10B981); }
  50% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.8; }
}

.vital-pulse {
  animation: heartBeatGlow 1.2s infinite ease-in-out;
}

/* Safe card hover states */
.case-card {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  border-color: rgba(14, 165, 233, 0.4);
}
.case-card:active {
  transform: scale(0.98);
}

/* Badge Glow states */
.badge-unlocked {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(245, 158, 11, 0.08));
}
.badge-locked {
  filter: grayscale(1);
  opacity: 0.5;
}