body { 
    font-family: 'Sarabun', sans-serif; 
    background-color: #f1f5f9; 
    margin: 0; 
    color: #334155; 
}
.header-section { 
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); 
    color: white; 
    padding: 40px 0; 
    margin-bottom: 35px; 
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
    border-bottom: 4px solid #f59e0b; 
    position: relative; 
    overflow: hidden;
}
.header-section::after {
    content: ""; 
    position: absolute; 
    bottom: -10px; 
    left: 0; 
    right: 0; 
    height: 20px;
    background: white; 
    border-radius: 50% / 100% 100% 0 0;
}
.header-logo-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 10px; 
}
.header-logo { 
    height: 65px; 
    width: auto; 
    object-fit: contain; 
}
.header-title-area { 
    text-align: center; 
}
.header-section h1 { 
    font-size: 34px; 
    margin: 0 0 5px 0; 
    font-weight: 700; 
    text-shadow: 2px 2px 0px rgba(0,0,0,0.15); 
}
.header-section p { 
    font-size: 16px; 
    opacity: 0.9; 
    font-weight: 400; 
    margin-bottom: 15px; 
}
.date-badge { 
    background: #ffffff; 
    color: #1e3a8a; 
    padding: 8px 20px; 
    border-radius: 25px; 
    font-size: 14px; 
    font-weight: 700; 
    display: inline-block; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.stat-card { 
    background: #fff; 
    border-radius: 16px; 
    padding: 15px 10px; 
    margin-bottom: 25px; 
    text-align: center; 
    border-bottom: 6px solid #ddd; 
    min-height: 140px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: transform 0.2s; 
}
.stat-card:hover { 
    transform: translateY(-3px); 
}
.stat-card h3 { 
    font-size: 14px; 
    font-weight: bold; 
    margin-top: 8px; 
    margin-bottom: 5px; 
    color: #475569; 
}
.stat-card .number { 
    font-size: 32px; 
    font-weight: 700; 
    margin: 0; 
}
.card-icon-fa { 
    font-size: 32px; 
}
.card-pending { border-color: #ef4444; }
.card-pending .card-icon-fa { color: #ef4444; }
.card-processing { border-color: #f59e0b; }
.card-processing .card-icon-fa { color: #f59e0b; }
.card-resolved { border-color: #10b981; }
.card-resolved .card-icon-fa { color: #10b981; }

.section-title { 
    font-size: 20px; 
    font-weight: 700; 
    color: #0f172a; 
    margin-bottom: 5px; 
    padding-left: 12px; 
    border-left: 5px solid #1e3a8a; 
}

.nav-tabs-custom { 
    border-bottom: 3px solid #cbd5e1; 
    margin-bottom: 25px; 
    display: flex; 
    justify-content: space-between; 
}
.nav-tabs-custom > li { 
    float: none; 
    flex: 1; 
    text-align: center; 
    margin-bottom: -3px; 
}
.nav-tabs-custom > li > a { 
    border: none; 
    font-weight: 700; 
    padding: 15px 10px; 
    font-size: 16px; 
    border-radius: 12px 12px 0 0; 
    margin-right: 5px; 
    color: #64748b; 
    background: #e2e8f0; 
    transition: all 0.2s; 
}

.nav-tabs-custom > li.tab-p-phuket > a:hover { background-color: #dbeafe; color: #2563eb; }
.nav-tabs-custom > li.tab-p-phuket.active > a { background-color: #2563eb !important; color: #fff !important; }
.nav-tabs-custom > li.tab-p-ranong > a:hover { background-color: #dcfce7; color: #16a34a; }
.nav-tabs-custom > li.tab-p-ranong.active > a { background-color: #16a34a !important; color: #fff !important; }
.nav-tabs-custom > li.tab-p-phangnga > a:hover { background-color: #ffedd5; color: #ea580c; }
.nav-tabs-custom > li.tab-p-phangnga.active > a { background-color: #ea580c !important; color: #fff !important; }

.school-mini-card { 
    background: #ffffff; 
    border-radius: 14px; 
    padding: 18px; 
    margin-bottom: 18px; 
    border: 1px solid #e2e8f0; 
    cursor: pointer; 
    position: relative; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); 
    transition: all 0.2s ease; 
}
.school-mini-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
}
.school-mini-card .school-name { 
    font-size: 14px; 
    font-weight: 700; 
    color: #1e293b; 
    margin-bottom: 6px; 
    padding-right: 65px; 
    text-overflow: ellipsis; 
    overflow: hidden; 
    white-space: nowrap; 
}
.school-mini-card .school-info { 
    font-size: 12px; 
    color: #64748b; 
    font-weight: 600; 
}
.school-mini-card .badge-click { 
    position: absolute; 
    right: 15px; 
    top: 22px; 
    background-color: #f1f5f9; 
    color: #475569; 
    font-size: 11px; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-weight: bold; 
}

.zone-phuket .school-mini-card { border-left: 6px solid #2563eb; }
.zone-ranong .school-mini-card { border-left: 6px solid #16a34a; }
.zone-phangnga .school-mini-card { border-left: 6px solid #ea580c; }

.collapse-report-box { 
    background-color: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 14px; 
    padding: 20px; 
    margin-bottom: 25px; 
}
.report-box-title { 
    font-size: 15px; 
    font-weight: bold; 
    margin-bottom: 15px; 
    border-bottom: 2px dashed #e2e8f0; 
    padding-bottom: 10px; 
}
.table-safety th { 
    background-color: #f8fafc; 
    text-align: center; 
    font-weight: 700; 
    border: 1px solid #cbd5e1 !important; 
}
.table-safety td { 
    text-align: center; 
    vertical-align: middle !important; 
    border: 1px solid #e2e8f0 !important; 
    font-size: 13px; 
}
.btn-login { 
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); 
    color: #fff; 
    border-radius: 30px; 
    padding: 14px 50px; 
    font-size: 16px; 
    font-weight: 600; 
    border: none; 
    text-decoration: none; 
    display: inline-block; 
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); 
}

@media (max-width: 767px) {
    .header-logo-container { flex-direction: row; gap: 10px; }
    .header-logo { height: 45px; }
    .header-section h1 { font-size: 24px; }
}