body { font-family: 'Prompt', sans-serif; background-color: #f9fafb; }
h1, h2, h3, h4, button, input, select, label, .font-display { font-family: 'Prompt', sans-serif; }

/* ✅ บังคับให้พื้นที่เนื้อหาข่าวใช้ฟอนต์ Prompt เสมอ */
.editor-content { font-family: 'Prompt', sans-serif !important; font-size: 15px; }
.editor-content b, .editor-content strong { font-weight: bold; }
.editor-content i, .editor-content em { font-style: italic; }
.editor-content u { text-decoration: underline; }
.editor-content strike, .editor-content s { text-decoration: line-through; }
.editor-content a { color: #2563EB; text-decoration: underline; cursor: pointer; }

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-bg {
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slideUpFade 0.4s ease-out forwards; }

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.animate-fade-in { animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.ai-background {
    background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #ec4899, #06b6d4);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: white;
}

/* 🌟 ระบบ Print 🌟 */
@media print {
    @page { size: A4; margin: 10mm; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    #report-card-container { page-break-inside: avoid; }
}
#bulk-print-container { display: none; }
@media print {
    body.is-bulk-printing #app-root, body.is-bulk-printing #custom-popup { display: none !important; }
    body.is-bulk-printing #bulk-print-container { display: block !important; }
    body.is-bulk-printing { background: white !important; }
}
#print-petition-container { display: none; }
@media print {
    body.is-printing-petition #app-root, body.is-printing-petition #custom-popup { display: none !important; }
    body.is-printing-petition #print-petition-container { display: block !important; }
    body.is-printing-petition { background: white !important; }
}
/* สถิติ Print */
@media print {
    body.print-landscape @page { size: A4 landscape; margin: 10mm; }
    body.print-landscape { background: white; }
    body.print-landscape #admin-menu, body.print-landscape aside, body.print-landscape .print\:hidden { display: none !important; }
    body.print-landscape #admin-content { padding: 0; }
}