/* Skeleton loader: pengganti spinner untuk isi modal AJAX, tabel DataTables, dan halaman penuh. */
.tm-skeleton-block { display: block; width: 100%; padding: 1.25rem 1.5rem; }
.tm-skeleton {
    position: relative; display: block; overflow: hidden;
    background: #dde3ea; border-radius: 6px; height: 12px; margin: 0 0 12px;
}
.tm-skeleton::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%); animation: tm-skeleton-shimmer 1.4s ease-in-out infinite;
}
.tm-skeleton--title { height: 20px; width: 55%; margin-bottom: 18px; }
.tm-skeleton--line-sm { width: 40%; }
.tm-skeleton--line-md { width: 70%; }
.tm-skeleton--input { height: 38px; border-radius: 8px; margin-bottom: 16px; }
.tm-skeleton--btn { height: 36px; width: 96px; border-radius: 999px; }
.tm-skeleton--avatar { height: 40px; width: 40px; border-radius: 50%; }
.tm-skeleton--img { height: 160px; border-radius: 12px; }
.tm-skeleton--badge { height: 20px; width: 64px; border-radius: 999px; }
.tm-skeleton-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tm-skeleton-row .tm-skeleton { margin-bottom: 0; }
@keyframes tm-skeleton-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
    .tm-skeleton::after { animation: none; }
}

/* Skeleton baris DataTables: overlay processing disembunyikan selama baris skeleton tampil. */
/* Overlay processing bawaan (kartu/cincin titik) dimatikan total: skeleton baris satu-satunya indikator. */
html body div.dataTables_wrapper div.dataTables_processing,
html body div.dataTables_wrapper div.dataTables_processing[style],
html body .loader-info { display: none !important; }
.tm-dt-skeleton { opacity: 1 !important; }
.tm-dt-skeleton table.dataTable tbody tr:not(.tm-skeleton-tr) { display: none !important; }
tr.tm-skeleton-tr td { padding-top: 1rem; padding-bottom: 1rem; }
tr.tm-skeleton-tr .tm-skeleton { margin: 0; height: 14px; }
tr.tm-skeleton-tr .tm-skeleton--badge { height: 28px; width: 32px; margin-left: auto; border-radius: 8px; }

/* Kartu bergambar (LMS, Pengumuman): kilau tampil di belakang gambar sampai gambar selesai dimuat.
   Gambar opak menutupinya, jadi tidak perlu JS. */
.sc-course-media::before,
.iu-card-media::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%); animation: tm-skeleton-shimmer 1.4s ease-in-out infinite;
}
.sc-course-media > img,
.iu-card-media > img { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    .sc-course-media::before, .iu-card-media::before { animation: none; }
}

/* Plugin LoadingOverlay (cincin biru + kabut putih) tidak dipakai lagi: skeleton adalah indikator tunggal.
   CSS ini juga menutup overlay yang dibuat sebelum patch JS terpasang. */
.loadingoverlay { display: none !important; }
