@font-face {
    font-family: 'RazeTechFont';
    src: url('../fonts/razetechfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Better performance */
}

/* Apply to all elements except icons */
*:not(i):not([class*="fa"]):not(.material-icons):not(.icon) {
    font-family: 'RazeTechFont', sans-serif !important;
}

/* More specific exclusions for icon libraries */
i,
[class^="fa-"],
[class*=" fa-"],
.fas,
.far,
.fal,
.fab,
.fa,
.material-icons,
.icon,
[class*="icon"] {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands', 'Material Icons', sans-serif !important;
}

/* Ensure form elements inherit properly */
input,
textarea,
select,
button {
    font-family: inherit !important;
}

/* Fix for specific elements that might need system fonts */
code,
pre,
kbd,
samp,
tt {
    font-family: 'Courier New', Courier, monospace !important;
}

/* Optional: Add font smoothing for better rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}