/**
 * Be Vietnam Pro Font Family
 * Applied globally for bom.asia frontend and backend
 */

/* Font Face Declarations */
@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('../fonts/themes/BeVietnamPro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('../fonts/themes/BeVietnamPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('../fonts/themes/BeVietnamPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('../fonts/themes/BeVietnamPro-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    src: url('../fonts/themes/BeVietnamPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Global Font Override */
:root {
    --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Apply to all elements */
html,
body,
* {
    font-family: var(--font-primary) !important;
}

/* Exclude icon fonts */
.fa,
.fas,
.far,
.fab,
.fal,
.fad,
.icofont,
.iconly,
[class^="iconly-"],
[class*=" iconly-"],
[class^="icon-"],
[class*=" icon-"],
.feather,
[data-feather],
.flag-icon,
[class^="flag-icon-"],
.themify-icons,
[class^="ti-"],
.material-icons {
    font-family: inherit !important;
}

/* Reset icon font families - Font Awesome 6 */
.fa, .fas, .far, .fab, .fal, .fad,
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
}

/* Ensure Font Awesome weight for solid icons */
.fa-solid, .fas {
    font-weight: 900 !important;
}

.icofont {
    font-family: "IcoFont" !important;
}

[class^="ti-"], [class*=" ti-"] {
    font-family: "themify" !important;
}

.feather, [data-feather] {
    font-family: "feather" !important;
}

/* Typography Refinements */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-primary) !important;
    font-weight: 600;
}

p, span, div, a, li, td, th, label, input, textarea, select, button {
    font-family: var(--font-primary) !important;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select,
.form-control,
.form-select {
    font-family: var(--font-primary) !important;
}

/* Buttons */
.btn,
button {
    font-family: var(--font-primary) !important;
}

/* Tables */
.table,
.table th,
.table td {
    font-family: var(--font-primary) !important;
}

/* Navigation */
.nav,
.nav-link,
.navbar,
.menu,
.sidebar {
    font-family: var(--font-primary) !important;
}

/* Cards */
.card,
.card-header,
.card-body,
.card-footer {
    font-family: var(--font-primary) !important;
}

/* Modals */
.modal,
.modal-header,
.modal-body,
.modal-footer {
    font-family: var(--font-primary) !important;
}

/* Dropdowns */
.dropdown-menu,
.dropdown-item {
    font-family: var(--font-primary) !important;
}

/* Alerts & Badges */
.alert,
.badge {
    font-family: var(--font-primary) !important;
}

/* DataTables */
.dataTables_wrapper,
.dataTables_info,
.dataTables_paginate {
    font-family: var(--font-primary) !important;
}

/* Select2 */
.select2-container,
.select2-selection,
.select2-results {
    font-family: var(--font-primary) !important;
}

/* Toast & Notifications */
.toast,
.toastr,
.notification {
    font-family: var(--font-primary) !important;
}
