/* Poppins Font Override - Ensures Poppins is used throughout the project */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Global font family override - but preserve icon fonts */
*:not([class*="fa-"]):not([class*="las"]):not([class*="la-"]):not([class*="icon-"]):not(.fas):not(.far):not(.fal):not(.fab):not(.fa):not(.las):not(.lar):not(.lab):not(.la),
*::before:not([class*="fa-"]):not([class*="las"]):not([class*="la-"]):not([class*="icon-"]),
*::after:not([class*="fa-"]):not([class*="las"]):not([class*="la-"]):not([class*="icon-"]):not(.fas):not(.far):not(.fal):not(.fab):not(.fa):not(.las):not(.lar):not(.lab):not(.la) {
  font-family: "Poppins", sans-serif !important;
}

/* Specific element overrides */
body,
html,
input,
button,
textarea,
select,
option,
label,
span,
div,
p,
h1, h2, h3, h4, h5, h6,
a,
li,
td,
th,
table,
form {
  font-family: "Poppins", sans-serif !important;
}

/* Font weight overrides - making everything one shade darker */
body,
html,
p,
span,
div,
label,
input,
textarea,
select,
option {
  font-weight: 500 !important; /* Was 400, now 500 */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600 !important; /* Was 500, now 600 */
}

strong,
b,
.bold,
.fw-bold {
  font-weight: 700 !important; /* Was 600, now 700 */
}

.fw-bolder,
.bolder {
  font-weight: 800 !important; /* Was 700, now 800 */
}

/* Button and navigation overrides */
.btn,
.nav-link,
.navbar-nav .nav-link,
.dropdown-item {
  font-family: "Poppins", sans-serif !important;
  font-weight: 500 !important; /* Was 400, now 500 */
}

/* Form elements */
.form-control,
.form-select,
.form-label,
.form-text {
  font-family: "Poppins", sans-serif !important;
  font-weight: 500 !important; /* Was 400, now 500 */
}

/* Table elements */
.table,
.table th,
.table td {
  font-family: "Poppins", sans-serif !important;
  font-weight: 500 !important; /* Was 400, now 500 */
}

/* Alert and badge elements */
.alert,
.badge,
.card-title,
.card-text {
  font-family: "Poppins", sans-serif !important;
}

/* Override any vendor fonts */
.select2-container *,
.daterangepicker *,
.modal *,
.tooltip *,
.popover * {
  font-family: "Poppins", sans-serif !important;
}

/* Ensure icons and special characters still work */
[class*="fa-"],
[class*="las"],
[class*="la-"],
[class*="icon-"] {
  font-family: inherit !important;
}

/* Font Awesome specific overrides */
.fas,
.far,
.fal,
.fab,
.fa,
[class^="fa-"],
[class*=" fa-"] {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands" !important;
}

/* Line Awesome specific overrides */
.las,
.lar,
.lab,
.la,
[class^="la-"],
[class*=" la-"] {
  font-family: "Line Awesome Free", "Line Awesome Brands" !important;
}

/* CSS Variables for consistent usage */
:root {
  --font-family-base: "Poppins", sans-serif;
  --font-family-heading: "Poppins", sans-serif;
  --font-weight-light: 400;      /* Was 300, now 400 */
  --font-weight-normal: 500;     /* Was 400, now 500 */
  --font-weight-medium: 600;     /* Was 500, now 600 */
  --font-weight-semibold: 700;   /* Was 600, now 700 */
  --font-weight-bold: 800;       /* Was 700, now 800 */
  --font-weight-bolder: 900;     /* Was 800, now 900 */
}
