/**
 * Global Font Configuration for Vietnamese Support
 * Đảm bảo hiển thị tiếng Việt chính xác trên mọi trình duyệt
 */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body,
html {
    font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 
                 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 
                 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    font-size: 16px;
    line-height: 1.6;
}

/* Đảm bảo các thẻ văn bản kế thừa font chính xác */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, 
input, textarea, select,
label, th, td {
    font-family: inherit;
}

/* Font weights phù hợp với tiếng Việt */
.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* Cải thiện hiển thị chữ Việt có dấu */
h1, h2, h3, h4, h5, h6 {
    font-feature-settings: 'kern' 1;
    letter-spacing: -0.01em;
}

/* Đảm bảo input form hiển thị đúng tiếng Việt */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    font-family: inherit;
    font-size: inherit;
}
