/* ==========================================================================
   Global Typography & Modern Theme Styling (Anuphan Font)
   ========================================================================== */

html,
body,
input,
button,
select,
optgroup,
textarea {
    font-family: 'Anuphan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html,
body {
    height: 100%;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: #2D3748;
    background-color: #F8F9FA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings Scaling */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Anuphan', sans-serif;
    color: #1a3760;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h1, .h1 { font-size: 1.95rem; font-weight: 700; }
h2, .h2 { font-size: 1.60rem; font-weight: 700; }
h3, .h3 { font-size: 1.35rem; font-weight: 600; }
h4, .h4 { font-size: 1.15rem; font-weight: 600; }
h5, .h5 { font-size: 1.00rem; font-weight: 600; }
h6, .h6 { font-size: 0.875rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

/* Buttons Scaling & Modern Styling */
.btn {
    font-family: 'Anuphan', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-radius: 10px;
    padding: 0.5rem 1.15rem;
    transition: all 0.2s ease-in-out;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.btn-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

/* Form Controls Typography */
.form-control,
.form-select,
.form-label,
.input-group-text {
    font-family: 'Anuphan', sans-serif;
    font-size: 0.95rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #ffa6eb;
    box-shadow: 0 0 0 0.25rem rgba(255, 166, 235, 0.25);
}

/* Base Layout Container */
.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: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    font-size: 0.9rem;
    color: #6c757d;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* GridView Modern Typography & Styles */
.grid-view th {
    font-family: 'Anuphan', sans-serif;
    font-weight: 600;
    color: #1a3760;
    background-color: #F8F9FA;
}

.grid-view td {
    font-family: 'Anuphan', sans-serif;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.85rem;
}

.error-summary {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    padding: 12px 20px;
    margin: 0 0 20px 0;
}
