/* ALCL PathoTrack - Clinical Research Styling System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Primary Clinical Brand: Deep Emerald & Surgical Teal */
  --color-brand-50: #f0fdf4;
  --color-brand-100: #dcfce7;
  --color-brand-500: #10b981;
  --color-brand-600: #059669;
  --color-brand-700: #047857;
  --color-brand-800: #065f46;
  --color-brand-900: #064e3b;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

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

/* High Contrast Badges */
.badge-dusp22 {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-tp63 {
  background-color: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.badge-tripleneg {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.badge-pending {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* TMA Grid Visualizer */
.tma-spot-cell {
  aspect-ratio: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tma-spot-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

/* Card Elevation & Borders */
.clinical-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.clinical-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Modal Transitions */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

/* Status Indicator Pulse */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.status-pulse {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Table container */
.table-container {
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Print Optimization */
@media print {
  body {
    background: #ffffff;
  }
  .no-print {
    display: none !important;
  }
  .clinical-card {
    border: 1px solid #000000;
    box-shadow: none;
  }
}

/* Flatpickr Clinical Customization */
.flatpickr-calendar {
  font-family: var(--font-sans) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #cbd5e1 !important;
  overflow: hidden;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  font-weight: 700 !important;
}
.flatpickr-day:hover {
  background: #ccfbf1 !important;
}
.flatpickr-day.today {
  border-color: #0d9488 !important;
}
.flatpickr-months .flatpickr-month {
  background: #f8fafc !important;
  color: #0f172a !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-weight: 700 !important;
}
