/* Global Modern Typography */
body, table, td, th, div, span, a, p, input, select, textarea, button, h1, h2, h3, h4, h5, h6, label {
    font-family: 'Prompt', 'Sarabun', 'Segoe UI', Tahoma, sans-serif !important;
}

/* Fix FontAwesome icons being overridden by the global !important rule */
.fa, .fas, .far {
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
}
.fab {
    font-family: "Font Awesome 5 Brands", "FontAwesome", sans-serif !important;
}

/* Base Style Improvements */
body {
    background-color: #f4f6f9;
    color: #333333;
    line-height: 1.6;
    font-size: 14px;
}

/* Form controls modernization */
input[type="text"], input[type="password"], input[type="email"], select, textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Override Legacy Yellow Menu Backgrounds globally */
tr[bgcolor="#FFCC00"], tr[bgcolor="#ffcc00"] {
    background-color: #2c3e50 !important;
}

/* Also override any generic tables inside modules that might use the old yellow */
table > tbody > tr > td > ul#nav {
    background-color: #2c3e50 !important;
}
