/* 1. Global Styles & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600&family=Sarabun:wght@400;600&display=swap');

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --success-green: #198754;
    --bg-light: #f4f7f9;
    --text-muted: #6c757d;
}

body {
    background-color: var(--bg-light);
    font-family: 'Prompt', 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
}

/* 2. Container & Layout Helpers */
.container-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 50px;
    margin-bottom: 50px;
}

/* 3. Card Designs (สำหรับทุกหน้า) */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #fff;
    overflow: hidden;
}

.card-header-blue {
    background-color: var(--primary-blue);
    color: white;
    padding: 20px;
    text-align: center;
}

/* 4. Table Styles */
.table-container {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.table thead {
    background-color: var(--primary-blue);
    color: white;
}

.table-score thead tr.stat-header {
    background-color: var(--secondary-blue) !important;
}

.table-warning-custom {
    background-color: #fffbeb !important;
    font-weight: bold;
}

/* 5. Buttons & Inputs */
.btn-primary-custom {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background-color: #172554;
    color: white;
}

.btn-custom-pill {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

.input-id-big {
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px;
}

/* 6. Dashboard & Summary Elements */
.summary-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.count-badge {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.result-info-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    border-left: 6px solid var(--primary-blue);
}

/* 7. Footer & Logo */
.footer-bar {
    margin-top: 50px;
    padding: 20px;
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
}

.school-logo {
    width: 100px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}