/* ==========================================================================
   Bio Medics Medical System — Swiss Medical Precision Theme
   Colors direct from official logo: 
   - Medical Green: #008744
   - Medical Deep Blue: #003B64
   ========================================================================== */

:root {
  --color-green: #008744;
  --color-green-dark: #006b36;
  --color-green-light: #f0fdf4;
  --color-blue: #003B64;
  --color-blue-dark: #002642;
  --color-blue-light: #f0f6fa;
  --color-hairline: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
}

.font-mono-tech {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hairline Grid Architecture */
.grid-hairline {
  border: 1px solid var(--color-hairline);
}
.grid-hairline-b {
  border-bottom: 1px solid var(--color-hairline);
}
.grid-hairline-t {
  border-top: 1px solid var(--color-hairline);
}
.grid-hairline-r {
  border-right: 1px solid var(--color-hairline);
}
.grid-hairline-l {
  border-left: 1px solid var(--color-hairline);
}

/* Row Hover for Technical Catalog */
.catalog-row {
  transition: all 0.2s ease;
  border-bottom: 1px solid #e2e8f0;
}
.catalog-row:hover {
  background-color: #f8fafc;
}

/* 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: #003B64;
}

/* Input Focus */
.input-swiss {
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}
.input-swiss:focus {
  outline: none;
  border-color: #003B64;
  box-shadow: 0 0 0 2px rgba(0, 59, 100, 0.15);
}

/* Subtle Green Badge */
.badge-clinical {
  background-color: #f0fdf4;
  color: #008744;
  border: 1px solid rgba(0, 135, 68, 0.25);
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Subtle Blue Badge */
.badge-institutional {
  background-color: #f0f6fa;
  color: #003B64;
  border: 1px solid rgba(0, 59, 100, 0.2);
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Pulsing Indicator */
.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #008744;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(0, 135, 68, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 135, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 135, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 135, 68, 0);
  }
}
