/**
 * GLOBAL FONT MANAGEMENT
 * Forces Poppins font across ALL elements
 * MUST be loaded AFTER all other CSS files
 */

/* ============================================
   APPLY POPPINS TO EVERYTHING
   ============================================ */

body,
html,
div,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
input,
textarea,
select,
button,
.btn,
.card,
.badge,
.alert,
.modal,
.dropdown,
.nav,
.navbar,
.pagination,
.breadcrumb,
.btn-group,
.input-group,
.form-control,
.list-group,
.panel,
.well,
.table,
thead,
tbody,
tfoot,
.tooltip,
.popover,
.label,
.jumbotron,
.thumbnail,
.progress,
.alert,
.navbar-brand,
.navbar-nav,
.navbar-text,
.navbar-toggle,
.icon-bar,
.btn-group,
.btn-toolbar,
.dropdown-menu,
.dropdown-header,
.caret,
.input-group-addon,
.input-group-btn,
.close,
.modal-header,
.modal-footer,
.modal-title,
.alert,
.alert h4,
.alert-dismissable,
.close,
.modal-content,
.modal-dialog,
.modal-body,
.carousel,
.carousel-indicators,
.carousel-caption,
.carousel-inner,
.carousel-inner > .item,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img,
.carousel-control,
.carousel-control.left,
.carousel-control.right,
.carousel-indicators,
.carousel-indicators li,
.carousel-caption,
.pager,
.pager li,
.pager li > a,
.pager li > span,
.pager li > a:hover,
.pager li > a:focus,
.pager li > span,
.label,
.badge,
.jumbotron,
.jumbotron h1,
.jumbotron p,
.thumbnail,
.thumbnail .caption,
.alert-dismissable,
.close,
.modal,
.modal-dialog,
.modal-content,
.modal-header,
.modal-footer,
.modal-body,
.modal-title,
.tooltip,
.tooltip-inner,
.popover,
.popover-title,
.popover-content,
.progress,
.progress-bar,
.progress-bar-success,
.progress-bar-info,
.progress-bar-warning,
.progress-bar-danger,
.list-group,
.list-group-item,
.list-group-item-heading,
.list-group-item-text,
.panel,
.panel-heading,
.panel-body,
.panel-footer,
.panel-title,
.panel-group,
.well,
.well-lg,
.well-sm,
.well blockquote,
.nav-tabs,
.nav-pills,
.navbar,
.navbar-brand,
.navbar-toggle,
.navbar-collapse,
.navbar-nav,
.navbar-form,
.navbar-text,
.navbar-btn,
.navbar-link,
.breadcrumb,
.pagination,
.pager,
.label,
.badge,
.btn,
.btn-default,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.btn-link,
.btn-lg,
.btn-sm,
.btn-xs,
.input-group,
.input-group-addon,
.input-group-btn,
.form-control,
.form-group,
.radio,
.checkbox,
.radio-inline,
.checkbox-inline,
select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
    font-family: 'Poppins', sans-serif !important;
}

/* ============================================
   FONT WEIGHTS - POPPINS SPECIFIC
   ============================================ */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}

h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }

/* Light weight for subtle text */
.text-light,
small, .small {
    font-weight: 300 !important;
}

/* Medium weight for emphasis */
.text-medium {
    font-weight: 500 !important;
}

/* Bold weight */
strong, b, .text-bold {
    font-weight: 700 !important;
}

/* ============================================
   HEADING SPECIFIC STYLES
   ============================================ */

.stat-card .info h3 {
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
}

.card-header h3 {
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
}

.header-bar h1 {
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
}

.sidebar-header h3 {
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
}

.table thead th {
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
}

.btn {
    font-weight: 500 !important;
    font-family: 'Poppins', sans-serif !important;
}

.badge {
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
}

.alert strong {
    font-weight: 600 !important;
}

.form-group label {
    font-weight: 500 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* ============================================
   FIX SPECIFIC ELEMENTS
   ============================================ */

/* Bootstrap override */
.navbar-brand {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
}

/* Icons should NOT have Poppins */
i,
.fa,
.fas,
.far,
.fab,
glyphicon,
.icon,
[class^="icon-"],
[class*=" icon-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Solid", "FontAwesome", sans-serif !important;
}

/* Code blocks */
code,
pre,
kbd,
samp {
    font-family: 'Monaco', 'Courier New', ' monospace' !important;
}
