/*!
 * Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Локальная версия с основными иконками для MST Site
 */

/* WebFont loading - локальные файлы имеют приоритет */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("webfonts/fa-solid-900.woff2") format("woff2"),
       url("webfonts/fa-solid-900.woff") format("woff"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2"),
       url("https://use.fontawesome.com/releases/v6.5.1/webfonts/fa-solid-900.woff2") format("woff2");
}

/* Base Font Awesome styles */
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
  vertical-align: -0.125em;
}

.fas {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", monospace;
  font-weight: 900;
}

.fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", monospace;
  font-weight: 900;
}

/* Иконки через CSS content и Unicode (Font Awesome коды) */
.fa-check-circle:before,
.fa-circle-check:before { content: "\f058"; }
.fa-exclamation-circle:before,
.fa-circle-exclamation:before { content: "\f06a"; }
.fa-exclamation-triangle:before,
.fa-triangle-exclamation:before,
.fa-warning:before { content: "\f071"; }
.fa-chevron-left:before { content: "\f053"; }
.fa-chevron-right:before { content: "\f054"; }
.fa-chevron-down:before { content: "\f078"; }
.fa-pen:before { content: "\f304"; }
.fa-paperclip:before { content: "\f0c6"; }
.fa-file-archive:before,
.fa-file-zipper:before { content: "\f1c6"; }
.fa-download:before { content: "\f019"; }
.fa-user:before { content: "\f007"; }
.fa-user-md:before { content: "\f0f0"; }
.fa-building:before { content: "\f1ad"; }
.fa-plus:before { content: "\f067"; }
.fa-search:before { content: "\f002"; }
.fa-times:before { content: "\f00d"; }
.fa-edit:before { content: "\f044"; }
.fa-trash:before { content: "\f2ed"; }
.fa-users:before { content: "\f0c0"; }

/* Fallback на системные символы если шрифт не работает */

/* Если Font Awesome не работает совсем, показываем символы */
.fa-fallback .fa-check-circle:before,
.fa-fallback .fa-circle-check:before { content: "[✓]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-exclamation-circle:before,
.fa-fallback .fa-circle-exclamation:before { content: "[!]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-exclamation-triangle:before,
.fa-fallback .fa-triangle-exclamation:before,
.fa-fallback .fa-warning:before { content: "[!]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-chevron-left:before { content: "[<]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-chevron-right:before { content: "[>]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-chevron-down:before { content: "[v]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-pen:before { content: "[✎]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-paperclip:before { content: "[📎]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-file-archive:before,
.fa-fallback .fa-file-zipper:before { content: "[ZIP]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-download:before { content: "[↓]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-user:before { content: "[👤]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-user-md:before { content: "[👨‍⚕️]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-building:before { content: "[🏢]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-plus:before { content: "[+]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-search:before { content: "[🔍]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-times:before { content: "[×]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-edit:before { content: "[✏]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-trash:before { content: "[🗑]"; font-family: system-ui, sans-serif; }
.fa-fallback .fa-users:before { content: "[👥]"; font-family: system-ui, sans-serif; }

/* Отступы и размеры */
.fa.me-1,
.fas.me-1 {
  margin-right: 0.25rem;
}

.fa.text-success,
.fas.text-success {
  color: #198754 !important;
}

.fa.text-danger,
.fas.text-danger {
  color: #dc3545 !important;
}

.fa.text-warning,
.fas.text-warning {
  color: #ffc107 !important;
}

.fa.text-info,
.fas.text-info {
  color: #0dcaf0 !important;
}

.fa.text-primary,
.fas.text-primary {
  color: #0d6efd !important;
}

.fa.text-muted,
.fas.text-muted {
  color: #6c757d !important;
}

/* Размеры иконок */
.fa.fs-3,
.fas.fs-3 {
  font-size: calc(1.3rem + 0.6vw);
}

/* Стили для кнопок */
.btn .fa,
.btn .fas {
  margin-right: 0.375rem;
}

.btn .fa:only-child,
.btn .fas:only-child {
  margin-right: 0;
}
