@font-face {
    font-family: "72";
    src: url("/fonts/72-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

html, body {
    font-family: var(--isx-font-family);
    font-size: var(--isx-font-size) !important;
    height: 100%;
    overflow-y: auto;
}

body, body * {
    font-size: var(--isx-font-size) !important;
}

/* Override class-based utility font sizes from Bootstrap/Fluent UI when loaded before app.css */
body [class],
body [class] * {
    font-size: var(--isx-font-size) !important;
}

body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4, body .h5, body .h6,
body .fs-1, body .fs-2, body .fs-3, body .fs-4, body .fs-5, body .fs-6,
body .display-1, body .display-2, body .display-3, body .display-4,
body .display-5, body .display-6,
body legend {
    font-size: var(--isx-font-size) !important;
    line-height: inherit !important;
}

a {
    color: var(--isx-primary, #0f6cbd);
}

/* Keep legacy validation styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Existing ISX font helper stays but now matches Fluent defaults */
:root {
    --isx-font-family: "72", "Segoe UI", SegoeUI, system-ui, -apple-system, Roboto, Arial, sans-serif;
    --isx-font-size: 12px;
}

.isx-font,
.isx-font * {
    font-family: var(--isx-font-family);
    font-size: var(--isx-font-size);
}

/* Ensure Fluent UI / component library elements inherit */
fluent-design-theme,
fluent-button,
fluent-text-field,
fluent-select,
fluent-combobox,
fluent-text-area,
fluent-data-grid,
.fluent-ui,
.ms-Fabric {
    font-family: inherit;
    font-size: inherit;
}

/* Ensure form controls inherit the global font/size */
button, input, select, textarea, optgroup, option {
    font: inherit !important;
}
