/* Web font configuration with fallbacks */
/* This file ensures fonts load properly on web, especially on localhost */

/* Roboto font family - system fonts as fallback */
@font-face {
  font-family: 'Roboto_Fallback';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'),
       local('Roboto-Regular'),
       local('Arial'),
       local('Helvetica'),
       local('sans-serif');
}

@font-face {
  font-family: 'Roboto_Fallback';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Bold'),
       local('Roboto-Bold'),
       local('Arial Bold'),
       local('Helvetica Bold'),
       local('sans-serif');
}

@font-face {
  font-family: 'Roboto_Fallback';
  font-style: italic;
  font-weight: 400;
  src: local('Roboto Italic'),
       local('Roboto-Italic'),
       local('Arial Italic'),
       local('Helvetica Oblique'),
       local('sans-serif');
}

/* Global font fallback configuration */
body, html {
  font-family: 'Roboto', 'Roboto_Fallback', -apple-system, BlinkMacSystemFont,
               'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Prevent CORS issues by using system fonts when external fonts fail */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
}

/* Flutter web specific font smoothing */
flt-glass-pane, flutter-view {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

