/* ? Base font settings - H? tr? ti?ng Vi?t */
html {
    font-size: 14px;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* ? Body v?i font h? tr? ti?ng Vi?t */
body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
    color: #212529;
    background-color: #fff;
    margin-bottom: 60px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ? Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    font-weight: 600;
    line-height: 1.2;
    color: #212529;
}

/* ? Navigation */
.navbar-nav .nav-link,
.dropdown-item {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    font-weight: 500;
}

/* ? Forms and inputs */
.form-control,
.form-select,
.btn {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* ? Navbar brand */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* ? Dropdown styling */
.dropdown-menu {
    font-size: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 400;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 1.2rem;
    margin-right: 0.5rem;
}

/* ? Ensure all text elements use Vietnamese-friendly fonts */
p, span, div, a, label, small, td, th {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* ? Focus styles */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ? Layout */
html {
    position: relative;
    min-height: 100%;
}

/* ? Card and component styling */
.card-title,
.card-text,
.alert {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* ? Tables */
table, .table {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

.table th,
.table td {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    vertical-align: middle;
}

/* ? Responsive font sizes - FIXED */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}