/* Typography & General Base - Unified Font Anuphan */
html,
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, a, li, label, table, td, th,
input, button, select, textarea, optgroup,
.btn, .main-menu, .navigation, .nav, .page-wrapper {
    font-family: 'Anuphan', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Preserve icon fonts */
.fa, .fas, .far, .fal, .fad, .fab,
[class^="fa-"], [class*=" fa-"],
[class^="flaticon-"], [class*=" flaticon-"],
.flaticon, .glyphicon {
    font-family: var(--fa-style-family, "Font Awesome 6 Free"), "Font Awesome 5 Free", "Flaticon", sans-serif !important;
}
.fa-brands, [class^="fa-brands-"], [class*=" fa-brands-"] {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", sans-serif !important;
}

html,
body {
    height: 100%;
}

body {
    line-height: 1.6;
    color: #2b3035;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive Image & Fluid Utility */
img {
    max-width: 100%;
    height: auto;
}

.w-fluid {
    width: 100% !important;
    max-width: 100% !important;
}

.overflow-x-auto {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* ==========================================================================
   Modern Government Design System Components (Card, Table, Button with Icon)
   ========================================================================== */

/* Modern Card Styles (border-0 shadow-sm rounded-3) */
.card-modern,
.card.card-modern {
    border: 0 !important;
    border-radius: 0.75rem !important; /* rounded-3 */
    box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06) !important; /* shadow-sm */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.card-modern:hover {
    box-shadow: 0 0.35rem 0.75rem rgba(0, 0, 0, 0.09) !important;
}

.card-modern .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-modern .card-body {
    padding: 1.25rem;
}

.card-modern .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.25rem;
}

/* Modern Table Styles */
.table-modern {
    width: 100%;
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background-color: #f8fafc;
}

/* Button with Icon Alignment */
.btn-icon,
.btn-center-icon,
.btn.d-inline-flex {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    line-height: 1.5;
}

.btn-icon i,
.btn-icon .fa,
.btn-icon .fas,
.btn-icon .far,
.btn-icon .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.95em;
}

