/* assets/css/style.css */

/* Import Sarabun font from Google Fonts - MUST be at the very top */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;700&display=swap');

body {
    font-family: 'Sarabun', sans-serif; /* Changed to Sarabun */
    font-size: 10pt; /* Normal text size set to 12pt for web display */
    background-color: #f8f9fa;
    color: #343a40;
}

.container {
    max-width: 1200px;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden; /* For rounded corners on card-header */
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1rem 1.5rem;
    font-size: 1.25rem; /* Retained from previous style.css or adjusted for overall consistency */
}

.card-body {
    padding: 1.0rem;
}

.btn-primary, .bg-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.btn-info, .bg-info {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.btn-success, .bg-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important; /* Ensure text is readable */
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.form-check-label {
    margin-left: 0.5rem;
    font-weight: normal;
}

.form-select, .form-control {
    border-radius: 0.5rem;
}

.table thead th {
    background-color: #e9ecef;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-responsive {
    overflow-x: auto;
}

/* --- Global styles for Sarabun and heading sizes --- */
h2 {
    font-size: 1.5em; /* Approximately 30pt (2.5 * 12pt) */
    font-weight: 700; /* Bold for headings */
    color: #0d6efd; /* A nice blue color */
}

h3 {
    font-size: 1.2em; /* Approximately 30pt (2.5 * 12pt) */
    font-weight: 700; /* Bold for headings */
    color: #0d6efd; /* A nice blue color */
}

h4 {
    font-size: 1.0em; /* Approximately 21.6pt (1.8 * 12pt) */
    font-weight: 700;
    color: #198754; /* A nice green color for subheadings */
}

/* Adjust card-title size if needed, based on the new body font size */
.card-title {
    font-size: 1.25em; /* Approximately 15pt (1.25 * 12pt) */
    font-weight: 700;
}

/* Ensure table font size is relative to body for consistency, or explicitly set */
.table {
    font-size: 1em; /* This means table text will be 12pt, same as body */
}

/* Specific adjustments for smaller table cells if needed, e.g., for detailed interpretation */
.table td, .table th {
    padding: 0.5rem; /* Adjust padding if needed for compactness */
}