/* โหมดมืดของ index.php — สร้างอัตโนมัติจากสีในหน้า อย่าแก้ไฟล์นี้ด้วยมือ ให้รันสคริปต์สร้างใหม่ */
html[data-theme="dark"] body{background:#0f0c14;color:#d5cfdb}
html[data-theme="dark"] ::-webkit-scrollbar-track{background:#1d1920}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#f472b6}
html[data-theme="dark"] .slide-f1{background:linear-gradient(135deg,#28131f,#351a29,#ec4899)}
html[data-theme="dark"] .slide-f2{background:linear-gradient(135deg,#25121d,#2d1623,#f472b6)}
html[data-theme="dark"] .slide-f3{background:linear-gradient(135deg,#251213,#2d1618,#fb7185)}
html[data-theme="dark"] .swiper-pagination-bullet{background:#1a161d!important}
html[data-theme="dark"] .swiper-pagination-bullet-active{background:#ec4899!important}
html[data-theme="dark"] .stats-bar{background:#1a161d;border-bottom:1px solid #332c3b}
html[data-theme="dark"] .stat-item{border-right:1px solid #332c3b}
html[data-theme="dark"] .stat-icon{background:#28131f}
html[data-theme="dark"] .stat-num{color:#ddd9e2}
html[data-theme="dark"] .stat-label{color:#aba0b7}
html[data-theme="dark"] .marquee-bar{background:linear-gradient(135deg,#ec4899,#be185d)}
html[data-theme="dark"] .quick-access{background:#1a161d;border-bottom:1px solid #332c3b}
html[data-theme="dark"] .qa-item{border-right:1px solid #332c3b}
html[data-theme="dark"] .qa-item:hover{background:#25121d}
html[data-theme="dark"] .qa-label{color:#d5cfdb}
html[data-theme="dark"] .section-label{color:#ec4899}
html[data-theme="dark"] .section-label::before{background:#ec4899}
html[data-theme="dark"] .section-title{color:#ddd9e2}
html[data-theme="dark"] .section-title em{color:#ec4899}
html[data-theme="dark"] .section-sub{color:#aba0b7}
html[data-theme="dark"] .link-more{color:#ec4899;border:1.5px solid rgba(236,72,153,.25)}
html[data-theme="dark"] .link-more:hover{background:#28131f;border-color:#ec4899}
html[data-theme="dark"] .news-card{background:#1a161d;border:1.5px solid #372f3f;border-radius:16px}
html[data-theme="dark"] .news-card:hover{border-color:rgba(236,72,153,.25)}
html[data-theme="dark"] .news-tag{color:#ef80ae;background:#28131f}
html[data-theme="dark"] .news-date{color:#94a3b8}
html[data-theme="dark"] .news-title{color:#ddd9e2}
html[data-theme="dark"] .news-row-list{border:1.5px solid #372f3f;border-radius:10px;background:#1a161d}
html[data-theme="dark"] .news-row-item{border-bottom:1px solid #332c3b;color:#d5cfdb}
html[data-theme="dark"] .news-row-item:hover{background:#25121d}
html[data-theme="dark"] .news-row-dot{background:#ec4899}
html[data-theme="dark"] .news-row-date{color:#94a3b8}
html[data-theme="dark"] .dean-section{background:linear-gradient(135deg,#25121d,#28131f)}
html[data-theme="dark"] .dean-card{background:#1a161d}
html[data-theme="dark"] .dean-avatar{background:linear-gradient(135deg,#28131f,#351a29)}
html[data-theme="dark"] .dean-role{color:#ec4899}
html[data-theme="dark"] .dean-name{color:#ddd9e2}
html[data-theme="dark"] .dean-pos{color:#aba0b7}
html[data-theme="dark"] .dean-contact-item{color:#aba0b7}
html[data-theme="dark"] .dean-contact-icon{background:#28131f}
html[data-theme="dark"] .identity-card{border:1.5px solid #372f3f}
html[data-theme="dark"] .identity-card:hover{border-color:#f472b6}
html[data-theme="dark"] .identity-card.bg-light-pink,html[data-theme="dark"] .identity-card.bg-pink-1,html[data-theme="dark"] .identity-card.bg-pink-2,html[data-theme="dark"] .identity-card.bg-pink-3{background:#1a161d}
html[data-theme="dark"] .identity-label{color:#ec4899}
html[data-theme="dark"] .identity-text{color:#d5cfdb}
html[data-theme="dark"] .prog-section{background:#1b171f}
html[data-theme="dark"] .prog-group-card{background:#1a161d;border:1.5px solid #372f3f;border-radius:16px}
html[data-theme="dark"] .prog-group-card:hover{border-color:rgba(236,72,153,.25)}
html[data-theme="dark"] .prog-group-head{background:linear-gradient(135deg,#28131f,#2d1623)}
html[data-theme="dark"] .prog-group-name{color:#ddd9e2}
html[data-theme="dark"] .prog-group-sub{color:#aba0b7}
html[data-theme="dark"] .prog-list li{color:#aba0b7}
html[data-theme="dark"] .prog-list li::before{background:#ec4899}
html[data-theme="dark"] .exec-card{background:#1a161d;border:1.5px solid #372f3f;border-radius:16px}
html[data-theme="dark"] .exec-card:hover{border-color:rgba(236,72,153,.25)}
html[data-theme="dark"] .exec-avatar{background:linear-gradient(135deg,#28131f,#2d1623)}
html[data-theme="dark"] .exec-name{color:#ddd9e2}
html[data-theme="dark"] .exec-pos{color:#aba0b7}
html[data-theme="dark"] .gallery-item{border-radius:10px;background:#1a161d}
html[data-theme="dark"] .calendar-wrap{border-radius:16px;border:1.5px solid #372f3f}
html[data-theme="dark"] .extlinks-section{background:linear-gradient(135deg,#25121d,#28131f)}
html[data-theme="dark"] .extlink-card{background:#1a161d;border:1.5px solid #372f3f;border-radius:16px}
html[data-theme="dark"] .extlink-card:hover{border-color:rgba(236,72,153,.25)}
html[data-theme="dark"] .extlink-icon{background:#28131f}
html[data-theme="dark"] .extlink-name{color:#ddd9e2}
html[data-theme="dark"] .extlink-desc{color:#aba0b7}
html[data-theme="dark"] .contact-section{background:#0f172a}
html[data-theme="dark"] .contact-title em{color:#f472b6}
html[data-theme="dark"] .map-wrap{border-radius:16px}
html[data-theme="dark"] footer{background:#0f172a}
html[data-theme="dark"] .footer-emblem{background:linear-gradient(135deg,#ec4899,#be185d)}
html[data-theme="dark"] .float-top{background:#1a161d;border:1.5px solid #372f3f;color:#aba0b7}
html[data-theme="dark"] .float-top:hover{border-color:#ec4899;color:#ec4899;background:#25121d}
html[data-theme="dark"] .ql-btn{background:#1a161d;color:#d5cfdb}
html[data-theme="dark"] .ql-btn:hover{border-color:#ec4899;background:#25121d;color:#ef80ae}
html[data-theme="dark"] .ql-icon{background:#28131f}
html[data-theme="dark"] .ql-btn-admin{background:linear-gradient(135deg,#25121d,#28131f)}
html[data-theme="dark"] .ql-btn-admin:hover{background:linear-gradient(135deg,#ec4899,#be185d)}
html[data-theme="dark"] #floatNav{background:rgba(26,22,29,0.92)}
html[data-theme="dark"] .fn-btn:hover{background:#28131f}
html[data-theme="dark"] [style*="background:linear-gradient(135deg,#fce7f3,#f9a8d4,#ec4899)"]{background:linear-gradient(135deg,#28131f,#351a29,#ec4899)!important}
html[data-theme="dark"] [style*="background:linear-gradient(135deg,var(--pink-2xl),var(--pink-xl))"]{background:linear-gradient(135deg,#25121d,#28131f)!important}
html[data-theme="dark"] [style*="background:var(--gray-50)"]{background:#1b171f!important}
html[data-theme="dark"] [style*="background:#fff"]{background:#1a161d!important}
html[data-theme="dark"] [style*="color:var(--pink-l)"]{color:#f472b6!important}
html[data-theme="dark"] [style*="background:var(--gray-900)"]{background:#0f172a!important}
html[data-theme="dark"] [style*="linear-gradient(135deg,#fce7f3,#f9a8d4,#ec4899)"]{background:linear-gradient(135deg,#28131f,#351a29,#ec4899)!important}
html[data-theme="dark"] [style*="linear-gradient(135deg,#fce7f3,#f9a8d4)"]{background:linear-gradient(135deg,#28131f,#351a29)!important}
html[data-theme="dark"] [style*="linear-gradient(135deg,#ffe4e6,#fda4af)"]{background:linear-gradient(135deg,#281315,#351a1d)!important}
html[data-theme="dark"] [style*="linear-gradient(135deg,#fdf2f8,#fbcfe8)"]{background:linear-gradient(135deg,#25121d,#2d1623)!important}
html[data-theme="dark"] [style*="linear-gradient(135deg,var(--pink-2xl),var(--pink-xl))"]{background:linear-gradient(135deg,#25121d,#28131f)!important}
