/* ===== ACCESSIBILITY SYSTEM ===== */
:root {
  --focus-ring: 0 0 0 3px rgba(0, 104, 87, 0.4);
}

/* Color Blindness Filters (Smart Shifts) */
.theme-protanopia { filter: url('#protanopia-filter'); }
.theme-deuteranopia { filter: url('#deuteranopia-filter'); }
.theme-tritanopia { filter: url('#tritanopia-filter'); }
.theme-achromatopsia { filter: grayscale(100%); }
.theme-high-contrast { 
  --background: #ffffff;
  --on-background: #000000;
  --primary: #000000;
  --outline: #000000;
  filter: contrast(1.2);
}

/* Dyslexia Mode */
.font-dyslexia {
  font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
  line-height: 1.8 !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.1em !important;
}

.font-dyslexia p, .font-dyslexia div, .font-dyslexia span {
  font-weight: 500 !important;
}

.reading-mode-active .bg-gradient-to-br,
.reading-mode-active .bg-gradient-to-tr {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* Accessibility UI in Settings */
.acc-preview-card {
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.acc-preview-card.active {
  border-color: #006857;
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0, 104, 87, 0.1);
}

/* Focus Visibility */
*:focus-visible {
  outline: none !important;
  box-shadow: var(--focus-ring) !important;
}
.theme-toggle-pill button {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #64748b;
  background: transparent;
  border: none;
}

.theme-toggle-pill button.active {
  background: white;
  color: #006857;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
