/* Tailwind CSS via CDN - Include this in header */
/* The React app uses Tailwind, so we need to include it */

/* Custom CSS Variables matching React app exactly */
:root {
  --background: 0 0% 98%;
  --foreground: 210 40% 8%;
  --card: 0 0% 100%;
  --card-foreground: 210 40% 8%;
  --popover: 0 0% 100%;
  --popover-foreground: 210 40% 8%;
  --primary: 207 90% 20%;
  --primary-foreground: 0 0% 98%;
  --primary-glow: 207 85% 35%;
  --secondary: 207 25% 90%;
  --secondary-foreground: 207 90% 20%;
  --muted: 207 15% 95%;
  --muted-foreground: 207 10% 45%;
  --accent: 195 85% 45%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 207 25% 90%;
  --input: 207 25% 90%;
  --ring: 207 90% 20%;
  --medical-blue: 207 90% 20%;
  --medical-light: 207 85% 35%;
  --medical-accent: 195 85% 45%;
  --medical-gradient: linear-gradient(135deg, hsl(207 90% 20%), hsl(195 85% 45%));
  --hero-gradient: linear-gradient(135deg, hsl(207 90% 15%) 0%, hsl(195 85% 40%) 100%);
  --card-shadow: 0 10px 30px -10px hsl(207 90% 20% / 0.1);
  --glow-shadow: 0 0 40px hsl(195 85% 45% / 0.15);
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Utility classes for Tailwind-like functionality */
.bg-primary { background-color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.bg-background { background-color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-accent { color: hsl(var(--accent)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.bg-secondary\/20 { background-color: hsl(var(--secondary) / 0.2); }
.bg-hero-gradient { background: var(--hero-gradient); }
.bg-medical-gradient { background: var(--medical-gradient); }
.shadow-card { box-shadow: var(--card-shadow); }
.shadow-glow { box-shadow: var(--glow-shadow); }
.text-medical-accent { color: hsl(var(--medical-accent)); }
.border-destructive { border-color: hsl(var(--destructive)); }
.bg-destructive\/10 { background-color: hsl(var(--destructive) / 0.1); }
.text-destructive { color: hsl(var(--destructive)); }

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.text-center { text-align: center; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-4 { bottom: 1rem; }
.left-4 { left: 1rem; }
.min-h-\[600px\] { min-height: 600px; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: var(--radius); }
.rounded-2xl { border-radius: 1rem; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-primary-foreground\/20 { border-color: hsl(var(--primary-foreground) / 0.2); }
.opacity-30 { opacity: 0.3; }
.opacity-60 { opacity: 0.6; }
.opacity-10 { opacity: 0.1; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.text-primary-foreground\/90 { color: hsl(var(--primary-foreground) / 0.9); }
.text-primary-foreground\/70 { color: hsl(var(--primary-foreground) / 0.7); }
.text-primary-foreground\/60 { color: hsl(var(--primary-foreground) / 0.6); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-primary\/90 { --tw-gradient-from: hsl(var(--primary) / 0.9); --tw-gradient-to: hsl(var(--primary) / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-primary\/70 { --tw-gradient-to: hsl(var(--primary) / 0.7); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-background { --tw-gradient-from: hsl(var(--background)); --tw-gradient-to: hsl(var(--background) / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }
.h-16 { height: 4rem; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.hover\:text-accent:hover { color: hsl(var(--accent)); }
.hover\:bg-accent\/90:hover { background-color: hsl(var(--accent) / 0.9); }
.hover\:shadow-glow:hover { box-shadow: var(--glow-shadow); }
.hover\:scale-105:hover { transform: scale(1.05); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:p-12 { padding: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hidden { display: none; }

/* Card styles */
.rounded-lg { border-radius: var(--radius); }
.bg-card { background-color: hsl(var(--card)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

/* Input styles */
.flex { display: flex; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.w-full { width: 100%; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.border { border-width: 1px; }
.border-input { border-color: hsl(var(--input)); }
.bg-background { background-color: hsl(var(--background)); }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.ring-offset-background { --tw-ring-offset-color: hsl(var(--background)); }
.placeholder\:text-muted-foreground::placeholder { color: hsl(var(--muted-foreground)); }
.focus-visible\:outline-none:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.focus-visible\:ring-2:focus-visible { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus-visible\:ring-ring:focus-visible { --tw-ring-color: hsl(var(--ring)); }
.focus-visible\:ring-offset-2:focus-visible { --tw-ring-offset-width: 2px; }

/* Button styles */
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.whitespace-nowrap { white-space: nowrap; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-medium { font-weight: 500; }
.h-11 { height: 2.75rem; }
.h-14 { height: 3.5rem; }
.bg-accent { background-color: hsl(var(--accent)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }

/* Space utilities */
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }

/* Textarea */
.min-h-\[120px\] { min-height: 120px; }

/* Checkbox area */
.items-start { align-items: flex-start; }

/* Mega menu animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in 0.2s ease-out;
}

.fade-in {
  animation: fade-in 0.2s ease-out;
}

.slide-in-from-top-2 {
  animation: slide-in-from-top-2 0.2s ease-out;
}

@keyframes slide-in-from-top-2 {
  from {
    transform: translateY(-8px);
  }
  to {
    transform: translateY(0);
  }
}

/* Scrollbar styling for mega menu */
.max-h-96::-webkit-scrollbar {
  width: 6px;
}

.max-h-96::-webkit-scrollbar-track {
  background: hsl(var(--muted));
  border-radius: 3px;
}

.max-h-96::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 3px;
}

.max-h-96::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Sticky header */
.sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* GDPR Cookie Consent Styles */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
  z-index: 9999;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

#cookie-consent-banner.show {
  transform: translateY(0);
}

#cookie-consent-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#cookie-consent-modal.show {
  display: flex;
}

#cookie-consent-modal-content {
  background: hsl(var(--card));
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--muted));
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: hsl(var(--accent));
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Accessibility - Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Accessibility Toolbar */
.accessibility-toolbar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.accessibility-toggle {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: none;
  border-radius: 8px 0 0 8px;
  padding: 1rem;
  cursor: pointer;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.accessibility-toggle:hover {
  background: hsl(var(--accent) / 0.9);
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
  transform: translateX(-4px);
}

.accessibility-toggle:focus {
  outline: 3px solid hsl(var(--accent));
  outline-offset: 2px;
}

.accessibility-toggle:focus-visible {
  outline: 3px solid hsl(var(--accent));
  outline-offset: 2px;
}

.accessibility-panel {
  position: absolute;
  right: 56px;
  top: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.accessibility-panel.hidden {
  transform: translateX(100%);
  pointer-events: none;
}

.accessibility-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
}

.accessibility-panel-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.accessibility-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-close:hover {
  color: hsl(var(--foreground));
}

.accessibility-panel-content {
  padding: 1rem;
}

.accessibility-option {
  margin-bottom: 1.5rem;
}

.accessibility-option:last-child {
  margin-bottom: 0;
}

.accessibility-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.accessibility-label input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.accessibility-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.accessibility-btn {
  background: hsl(var(--secondary));
  border: 2px solid hsl(var(--border));
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-btn:hover {
  background: hsl(var(--secondary) / 0.8);
  border-color: hsl(var(--accent));
}

.accessibility-btn.active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.accessibility-btn:focus {
  outline: 3px solid hsl(var(--accent));
  outline-offset: 2px;
}

.accessibility-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.accessibility-reset {
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  width: 100%;
  min-height: 44px;
}

.accessibility-reset:hover {
  background: hsl(var(--secondary) / 0.8);
  border-color: hsl(var(--muted-foreground));
}

.accessibility-reset:focus {
  outline: 3px solid hsl(var(--accent));
  outline-offset: 2px;
}

/* Font Size Classes */
html.font-small {
  font-size: 14px;
}

html.font-small body,
html.font-small p,
html.font-small span,
html.font-small div,
html.font-small li,
html.font-small td,
html.font-small th {
  font-size: 14px;
}

html.font-small h1 { font-size: 1.8rem; }
html.font-small h2 { font-size: 1.5rem; }
html.font-small h3 { font-size: 1.25rem; }
html.font-small h4 { font-size: 1.125rem; }
html.font-small h5 { font-size: 1rem; }
html.font-small h6 { font-size: 0.875rem; }

html.font-normal {
  font-size: 16px;
}

html.font-large {
  font-size: 18px;
}

html.font-large body,
html.font-large p,
html.font-large span,
html.font-large div,
html.font-large li,
html.font-large td,
html.font-large th {
  font-size: 18px;
}

html.font-large h1 { font-size: 2.5rem; }
html.font-large h2 { font-size: 2rem; }
html.font-large h3 { font-size: 1.75rem; }
html.font-large h4 { font-size: 1.5rem; }
html.font-large h5 { font-size: 1.25rem; }
html.font-large h6 { font-size: 1rem; }

html.font-xlarge {
  font-size: 20px;
}

html.font-xlarge body,
html.font-xlarge p,
html.font-xlarge span,
html.font-xlarge div,
html.font-xlarge li,
html.font-xlarge td,
html.font-xlarge th {
  font-size: 20px;
}

html.font-xlarge h1 { font-size: 3rem; }
html.font-xlarge h2 { font-size: 2.5rem; }
html.font-xlarge h3 { font-size: 2rem; }
html.font-xlarge h4 { font-size: 1.75rem; }
html.font-xlarge h5 { font-size: 1.5rem; }
html.font-xlarge h6 { font-size: 1.125rem; }

/* Contrast Classes */
.contrast-normal {
  /* Default - no changes */
}

.contrast-high {
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 0%;
  --primary: 0 0% 0%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 95%;
  --secondary-foreground: 0 0% 0%;
  --muted: 0 0% 90%;
  --muted-foreground: 0 0% 20%;
  --accent: 0 0% 0%;
  --accent-foreground: 0 0% 100%;
  --border: 0 0% 0%;
}

.contrast-high body {
  background: #ffffff;
  color: #000000;
}

.contrast-high a {
  color: #0000ff;
  text-decoration: underline;
  font-weight: 600;
}

.contrast-high button {
  border: 2px solid #000000;
}

.contrast-dark {
  --background: 0 0% 10%;
  --foreground: 0 0% 98%;
  --card: 0 0% 15%;
  --card-foreground: 0 0% 98%;
  --primary: 0 0% 20%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 25%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 20%;
  --muted-foreground: 0 0% 80%;
  --accent: 195 85% 55%;
  --accent-foreground: 0 0% 10%;
  --border: 0 0% 30%;
}

.contrast-dark body {
  background: #1a1a1a;
  color: #fafafa;
}

.contrast-dark a {
  color: #4dd0e1;
}

/* Highlight Links */
.highlight-links a {
  background-color: #ffff00 !important;
  color: #000000 !important;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.highlight-links a:visited {
  background-color: #ff00ff !important;
  color: #ffffff !important;
}

.highlight-links a:hover {
  background-color: #ff8800 !important;
  color: #000000 !important;
}

/* Scrollbar for accessibility panel */
.accessibility-panel::-webkit-scrollbar {
  width: 8px;
}

.accessibility-panel::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}

.accessibility-panel::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 4px;
}

.accessibility-panel::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Focus Visible Styles - WCAG 2.4.7 Focus Visible (Level AA) */
/* Ensure all interactive elements have visible focus indicators */
*:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

/* Remove default outline for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Font Display Optimization - Performance */
/* Swap fonts immediately to prevent invisible text */
@font-face {
  font-family: 'System Font';
  font-display: swap;
}

/* Image Loading Skeleton - Better perceived performance */
.image-skeleton {
  background: linear-gradient(
    90deg,
    hsl(var(--muted)) 0%,
    hsl(var(--muted) / 0.5) 50%,
    hsl(var(--muted)) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 0.75rem;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Image Container */
.responsive-image {
  position: relative;
  overflow: hidden;
}

.responsive-image img {
  transition: opacity 0.3s ease-in-out;
}

.responsive-image img[loading="lazy"] {
  opacity: 0;
}

.responsive-image img.loaded {
  opacity: 1;
}

/* Mobile Touch Targets - WCAG 2.5.5 Target Size (Level AAA) */
/* Ensure minimum 44x44px touch targets on mobile devices */
@media (max-width: 768px) {
  /* Buttons */
  button,
  input[type="submit"],
  input[type="button"],
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Links in navigation */
  nav a,
  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Form inputs should also be easily tappable */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    min-height: 44px;
  }
  
  /* Checkboxes and radio buttons with larger touch area */
  input[type="checkbox"],
  input[type="radio"] {
    min-width: 24px;
    min-height: 24px;
    margin: 10px 0;
  }
  
  /* Increase spacing between interactive elements */
  button + button,
  a + a,
  button + a,
  a + button {
    margin-top: 8px;
  }
  
  /* Ensure icons in buttons have proper spacing */
  button svg,
  a svg {
    flex-shrink: 0;
  }
}

/* Responsive Accessibility Toolbar */
@media (max-width: 768px) {
  .accessibility-toolbar {
    top: auto;
    bottom: 80px;
    transform: none;
  }
  
  .accessibility-panel {
    right: 0;
    bottom: 56px;
    top: auto;
    width: 100vw;
    max-width: 100vw;
    border-radius: 8px 8px 0 0;
    max-height: 60vh;
  }
  
  .accessibility-panel.hidden {
    transform: translateY(100%);
  }
  
  .accessibility-toggle {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  }
  
  .accessibility-toggle:hover {
    transform: translateY(-4px);
  }
}
