@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");/* 
 * Accessibility CSS - WCAG 2.1 AA Compliance
 * Provides essential accessibility utilities and enhancements
 */

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

.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: inherit !important;
  margin: inherit !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: inherit !important;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.skip-link:focus {
  top: 6px;
  border-color: #fff;
  outline: 3px solid #4e40c5;
  outline-offset: 2px;
}

/* Focus Management */
.focus-trap {
  position: relative;
}

/* Enhanced Focus Styles */
*:focus-visible {
  /* Unified with ThemeCSSVars focus ring */
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(78, 64, 197, 0.6));
  border-radius: 4px;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn,
  .button,
  button {
    border: 2px solid currentColor !important;
  }

  .card,
  .paper {
    border: 1px solid currentColor !important;
  }

  .input,
  input,
  textarea,
  select {
    border: 2px solid currentColor !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Touch Target Enhancements */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.touch-target-small {
  min-height: 36px;
  min-width: 36px;
}

.touch-target-large {
  min-height: 52px;
  min-width: 52px;
}

/* Spacing for Touch Targets */
.touch-spacing {
  margin: 4px;
}

.touch-spacing-large {
  margin: 8px;
}

/* Color Contrast Utilities */
.high-contrast-text {
  color: #000;
  background: #fff;
}

.high-contrast-text-inverse {
  color: #fff;
  background: #000;
}

/* Loading States with Accessibility */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Accessible Loading Text */
.loading-text {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ARIA Live Regions */
.aria-live-polite {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aria-live-assertive {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mobile-First Responsive Utilities - Standardized breakpoints */
/* Phone devices (< 576px) - matches theme.breakpoints.down('sm') */
@media (max-width: 575.98px) {
  .mobile-hidden {
    display: none !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-center {
    text-align: center !important;
  }

  /* Larger touch targets on mobile */
  .btn,
  .button,
  button {
    min-height: 48px !important;
    padding: 14px 20px !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  .input,
  input,
  textarea,
  select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    min-height: 48px !important;
  }
}

/* Tablet devices (576px - 768px) - matches theme.breakpoints.between('sm', 'md') */
@media (min-width: 576px) and (max-width: 767.98px) {
  .tablet-hidden {
    display: none !important;
  }

  .btn,
  .button,
  button {
    min-height: 44px !important;
    padding: 12px 18px !important;
  }

  .input,
  input,
  textarea,
  select {
    min-height: 44px !important;
  }
}

/* Desktop devices (>= 768px) - matches theme.breakpoints.up('md') */
@media (min-width: 768px) {
  .desktop-hidden {
    display: none !important;
  }

  .btn,
  .button,
  button {
    min-height: 40px !important;
    padding: 10px 16px !important;
  }

  .input,
  input,
  textarea,
  select {
    min-height: 40px !important;
  }
}

/* Tablet Responsive Utilities */
@media (min-width: 577px) and (max-width: 992px) {
  .tablet-hidden {
    display: none !important;
  }

  .tablet-full-width {
    width: 100% !important;
  }
}

/* Desktop Responsive Utilities */
@media (min-width: 993px) {
  .desktop-hidden {
    display: none !important;
  }
}

/* Error States with Better Accessibility */
.error-text {
  color: #d32f2f;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 8px;
}

.error-border {
  border-color: #d32f2f !important;
  border-width: 2px !important;
}

/* Success States */
.success-text {
  color: #2e7d32;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 8px;
}

.success-border {
  border-color: #2e7d32 !important;
  border-width: 2px !important;
}

/* Warning States */
.warning-text {
  color: #ed6c02;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 8px;
}

.warning-border {
  border-color: #ed6c02 !important;
  border-width: 2px !important;
}

/* Keyboard Navigation Indicators */
.keyboard-user *:focus {
  outline: 3px solid #4e40c5 !important;
  outline-offset: 2px !important;
}

.mouse-user *:focus {
  outline: none !important;
}

/* Print Styles for Accessibility */
@media print {
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  /* Ensure good contrast in print */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Dark Mode Accessibility Enhancements */
@media (prefers-color-scheme: dark) {
  .skip-link {
    background: #fff;
    color: #000;
  }

  .high-contrast-text {
    color: #fff;
    background: #000;
  }

  .high-contrast-text-inverse {
    color: #000;
    background: #fff;
  }
}

/* Animation Utilities for Accessibility */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-in {
  animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-in {
    animation: none !important;
  }
}


/* Import fonts - must be at the top */
/* Import accessibility styles */
/* 
 * Accessibility CSS - WCAG 2.1 AA Compliance
 * Provides essential accessibility utilities and enhancements
 */
/* Screen Reader Only Content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: inherit !important;
  margin: inherit !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: inherit !important;
}
/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.skip-link:focus {
  top: 6px;
  border-color: #fff;
  outline: 3px solid #4e40c5;
  outline-offset: 2px;
}
/* Focus Management */
.focus-trap {
  position: relative;
}
/* Enhanced Focus Styles */
*:focus-visible {
  /* Unified with ThemeCSSVars focus ring */
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(78, 64, 197, 0.6));
  border-radius: 4px;
}
/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}
/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn,
  .button,
  button {
    border: 2px solid currentColor !important;
  }

  .card,
  .paper {
    border: 1px solid currentColor !important;
  }

  .input,
  input,
  textarea,
  select {
    border: 2px solid currentColor !important;
  }
}
/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Touch Target Enhancements */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.touch-target-small {
  min-height: 36px;
  min-width: 36px;
}
.touch-target-large {
  min-height: 52px;
  min-width: 52px;
}
/* Spacing for Touch Targets */
.touch-spacing {
  margin: 4px;
}
.touch-spacing-large {
  margin: 8px;
}
/* Color Contrast Utilities */
.high-contrast-text {
  color: #000;
  background: #fff;
}
.high-contrast-text-inverse {
  color: #fff;
  background: #000;
}
/* Loading States with Accessibility */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Accessible Loading Text */
.loading-text {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* ARIA Live Regions */
.aria-live-polite {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.aria-live-assertive {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Mobile-First Responsive Utilities - Standardized breakpoints */
/* Phone devices (< 576px) - matches theme.breakpoints.down('sm') */
@media (max-width: 575.98px) {
  .mobile-hidden {
    display: none !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-center {
    text-align: center !important;
  }

  /* Larger touch targets on mobile */
  .btn,
  .button,
  button {
    min-height: 48px !important;
    padding: 14px 20px !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  .input,
  input,
  textarea,
  select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    min-height: 48px !important;
  }
}
/* Tablet devices (576px - 768px) - matches theme.breakpoints.between('sm', 'md') */
@media (min-width: 576px) and (max-width: 767.98px) {
  .tablet-hidden {
    display: none !important;
  }

  .btn,
  .button,
  button {
    min-height: 44px !important;
    padding: 12px 18px !important;
  }

  .input,
  input,
  textarea,
  select {
    min-height: 44px !important;
  }
}
/* Desktop devices (>= 768px) - matches theme.breakpoints.up('md') */
@media (min-width: 768px) {
  .desktop-hidden {
    display: none !important;
  }

  .btn,
  .button,
  button {
    min-height: 40px !important;
    padding: 10px 16px !important;
  }

  .input,
  input,
  textarea,
  select {
    min-height: 40px !important;
  }
}
/* Tablet Responsive Utilities */
@media (min-width: 577px) and (max-width: 992px) {
  .tablet-hidden {
    display: none !important;
  }

  .tablet-full-width {
    width: 100% !important;
  }
}
/* Desktop Responsive Utilities */
@media (min-width: 993px) {
  .desktop-hidden {
    display: none !important;
  }
}
/* Error States with Better Accessibility */
.error-text {
  color: #d32f2f;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 8px;
}
.error-border {
  border-color: #d32f2f !important;
  border-width: 2px !important;
}
/* Success States */
.success-text {
  color: #2e7d32;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 8px;
}
.success-border {
  border-color: #2e7d32 !important;
  border-width: 2px !important;
}
/* Warning States */
.warning-text {
  color: #ed6c02;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 8px;
}
.warning-border {
  border-color: #ed6c02 !important;
  border-width: 2px !important;
}
/* Keyboard Navigation Indicators */
.keyboard-user *:focus {
  outline: 3px solid #4e40c5 !important;
  outline-offset: 2px !important;
}
.mouse-user *:focus {
  outline: none !important;
}
/* Print Styles for Accessibility */
@media print {
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  /* Ensure good contrast in print */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
  }
}
/* Dark Mode Accessibility Enhancements */
@media (prefers-color-scheme: dark) {
  .skip-link {
    background: #fff;
    color: #000;
  }

  .high-contrast-text {
    color: #fff;
    background: #000;
  }

  .high-contrast-text-inverse {
    color: #000;
    background: #fff;
  }
}
/* Animation Utilities for Accessibility */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.slide-in {
  animation: slideIn 0.3s ease-in-out;
}
@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-in {
    animation: none !important;
  }
}
:root {
  font-family: "Inter", "Roboto", "Helvetica", "Arial", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* CSS Custom Properties for consistent theming */
  --primary-color: #4e40c5;
  --secondary-color: #ebae1b;
  --error-color: #ff3d71;
  --warning-color: #ffaa00;
  --success-color: #00d68f;
  --text-primary: #15110e;
  --text-secondary: #6b6b6b;
  --background-default: #ffffff;
  --background-paper: #ffffff;

  /* Touch target sizes */
  --touch-target-min: 44px;
  --touch-target-small: 36px;
  --touch-target-large: 52px;

  /* Spacing system */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #b0b8c4;
    --background-default: #15110e;
    --background-paper: #2a2520;
  }
}
html {
  /* Improve text rendering */
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* Smooth scrolling with reduced motion support */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  /* Prevent horizontal scroll */
  overflow-x: hidden;
}
body {
  background-color: var(--background-default);
  color: var(--text-primary);
  /* Improve font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Better text selection */
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Utility class to hide scrollbars while maintaining scroll functionality */
.hide-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
/* Sidebar specific scrollbar hiding */
.sidebar-scrollbar-hidden {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}
.sidebar-scrollbar-hidden::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
/* Global focus management */
body.keyboard-user *:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}
body.mouse-user *:focus {
  outline: none;
}
/* Ensure proper focus visibility for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}
/* Mobile-first responsive design utilities - Standardized breakpoints */
/* Phone devices (< 576px) - matches theme.breakpoints.down('sm') */
@media (max-width: 575.98px) {
  :root {
    /* Larger touch targets on mobile */
    --touch-target-min: 48px;
    --touch-target-small: 40px;
    --touch-target-large: 56px;
  }

  /* Prevent zoom on form inputs */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}
/* Tablet devices (576px - 768px) - matches theme.breakpoints.between('sm', 'md') */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --touch-target-min: 44px;
    --touch-target-small: 36px;
    --touch-target-large: 52px;
  }
}
/* Desktop devices (>= 768px) - matches theme.breakpoints.up('md') */
@media (min-width: 768px) {
  :root {
    --touch-target-min: 40px;
    --touch-target-small: 32px;
    --touch-target-large: 48px;
  }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --text-primary: #000000;
    --background-default: #ffffff;
    --background-paper: #ffffff;
  }

  * {
    border-color: currentColor !important;
  }
}
/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }

  p,
  blockquote {
    orphans: 3;
    widows: 3;
  }

  .no-print {
    display: none !important;
  }
}
fieldset.MuiOutlinedInput-notchedOutline.css-r01yff-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline:focus-visible {
  outline: none;
  box-shadow: unset;
  border-radius: 4px;
}
fieldset:focus-visible {
  box-shadow: unset;
}
.MuiInputBase-root.MuiOutlinedInput-root.MuiInputBase-colorPrimary.MuiInputBase-fullWidth.MuiInputBase-formControl.MuiInputBase-adornedStart.css-rfqn6q-MuiInputBase-root-MuiOutlinedInput-root:focus-visible {
  box-shadow: unset !important;
}
.MuiInputBase-root.MuiOutlinedInput-root.MuiInputBase-colorPrimary.MuiInputBase-fullWidth.MuiInputBase-formControl.MuiInputBase-adornedStart.MuiInputBase-adornedEnd.css-11d7lbb-MuiInputBase-root-MuiOutlinedInput-root:focus-visible {
  box-shadow: unset;
}
.css-14nz2m3-MuiFormControl-root-MuiTextField-root
  .MuiOutlinedInput-root:focus
  .MuiOutlinedInput-notchedOutline {
  border-color: rgba(78, 64, 197, 0.5);
}
input:focus-visible {
  outline: unset;
  outline-offset: unset;
  box-shadow: unset;
}
.css-1jzy2n3-MuiInputBase-input-MuiOutlinedInput-input:invalid {
  outline: unset;
}
