/* Gaya untuk Blade kustom di panel Filament. CSS Filament adalah bundel jadi tanpa kelas utilitas Tailwind,
   jadi komponen kustom memakai kelas berawalan ikm- di bawah ini. */
.ikm-tumpuk > * + * { margin-top: 1rem; }
.ikm-redup { color: rgb(107 114 128); }
.ikm-kecil { font-size: 0.75rem; }

.ikm-tabel-bungkus { overflow-x: auto; border-radius: 0.75rem; background: #fff; box-shadow: 0 0 0 1px rgb(3 7 18 / 0.06); }
.ikm-tabel { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.ikm-tabel th { padding: 0.75rem 1rem; text-align: left; font-weight: 500; color: rgb(107 114 128); }
.ikm-tabel td { padding: 0.5rem 1rem; vertical-align: top; border-top: 1px solid rgb(229 231 235); overflow-wrap: anywhere; }
.ikm-tabel td:first-child { font-weight: 500; white-space: nowrap; }

.ikm-galeri { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ikm-galeri img { width: 10rem; height: 10rem; object-fit: cover; border-radius: 0.5rem; box-shadow: 0 0 0 1px rgb(3 7 18 / 0.1); }

.ikm-peta-baris { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.ikm-peta { height: 20rem; width: 100%; border-radius: 0.5rem; box-shadow: 0 0 0 1px rgb(3 7 18 / 0.1); z-index: 0; }

.dark .ikm-tabel-bungkus { background: rgb(17 24 39); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); }
.dark .ikm-tabel td { border-top-color: rgb(255 255 255 / 0.1); }
.dark .ikm-redup, .dark .ikm-tabel th { color: rgb(156 163 175); }

/* Overlay loading tabel (lihat resources/views/filament/loading.blade.php). */
.ikm-loading-overlay {
    position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center;
    background: rgb(255 255 255 / 0.35); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.dark .ikm-loading-overlay { background: rgb(24 24 27 / 0.2); }

.ikm-loading-kartu {
    display: flex; flex-direction: column; align-items: center; gap: 0.85rem; padding: 1.5rem 1.75rem 1.25rem;
    border-radius: 1rem; background: #fff; border: 1px solid rgb(148 163 184 / 0.25);
    box-shadow: 0 20px 50px rgb(15 23 42 / 0.22); animation: ikm-loading-muncul 0.2s ease-out;
}
/* Animasi logo berlatar putih (tanpa alpha agar ringan), jadi kartu tetap putih di mode gelap. */
.dark .ikm-loading-kartu { box-shadow: 0 20px 50px rgb(0 0 0 / 0.5); }

/* Kilau sudah ada di dalam WebP beranimasi; CSS hanya menambah "napas" halus. */
.ikm-loading-logo { display: block; animation: ikm-loading-napas 2.4s ease-in-out infinite; }
.ikm-loading-logo img { display: block; width: 200px; height: auto; }

.ikm-loading-bar { position: relative; width: 200px; height: 5px; border-radius: 9999px; overflow: hidden; background: rgb(148 163 184 / 0.25); }
.ikm-loading-bar span {
    position: absolute; top: 0; bottom: 0; width: 45%; border-radius: 9999px;
    /* warna logo: biru tua -> biru muda -> jingga */
    background: linear-gradient(90deg, #0b47c4, #0ea5f0, #ff9d00);
    animation: ikm-loading-geser 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.ikm-loading-teks { font-size: 0.85rem; font-weight: 600; color: #475569; letter-spacing: 0.02em; }

@keyframes ikm-loading-muncul { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes ikm-loading-napas { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.965); } }
@keyframes ikm-loading-geser { 0% { left: -50%; } 100% { left: 105%; } }

@media (prefers-reduced-motion: reduce) {
    .ikm-loading-kartu, .ikm-loading-logo, .ikm-loading-bar span { animation: none; }
    .ikm-loading-bar span { left: 0; width: 100%; opacity: 0.8; }
}

/* Tautan ke portal publik di halaman login (resources/views/filament/tautan-publik.blade.php). */
.ikm-masuk-publik { margin-top: 1.5rem; display: grid; gap: 0.875rem; }

.ikm-masuk-pemisah { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(120 113 108); }
.ikm-masuk-pemisah::before, .ikm-masuk-pemisah::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgb(148 163 184 / 0.5)); }
.ikm-masuk-pemisah::after { transform: scaleX(-1); }

.ikm-masuk-utama {
    position: relative; display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; overflow: hidden;
    border-radius: 0.875rem; color: #fff; text-decoration: none;
    background: linear-gradient(120deg, #00349c 0%, #0055ca 55%, #00a5f7 130%);
    box-shadow: 0 8px 20px -8px rgb(0 85 202 / 0.55); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* Semburat jingga logo di sudut, sebagai aksen. */
.ikm-masuk-utama::after {
    content: ''; position: absolute; right: -2.5rem; top: -2.5rem; width: 7rem; height: 7rem; border-radius: 50%;
    background: radial-gradient(circle, rgb(253 146 0 / 0.55), transparent 65%); pointer-events: none;
}
.ikm-masuk-utama:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgb(0 85 202 / 0.65); }
.ikm-masuk-utama:focus-visible, .ikm-masuk-pintas a:focus-visible { outline: 2px solid #fd9200; outline-offset: 2px; }

.ikm-masuk-ikon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: rgb(255 255 255 / 0.16); }
.ikm-masuk-ikon svg { width: 1.5rem; height: 1.5rem; }
.ikm-masuk-teks { display: grid; min-width: 0; line-height: 1.3; }
.ikm-masuk-teks strong { font-size: 0.95rem; font-weight: 700; }
.ikm-masuk-teks small { font-size: 0.78rem; color: rgb(219 234 254); }
.ikm-masuk-panah { position: relative; z-index: 1; margin-left: auto; flex: none; transition: transform 0.18s ease; }
.ikm-masuk-panah svg { width: 1.25rem; height: 1.25rem; }
.ikm-masuk-utama:hover .ikm-masuk-panah { transform: translateX(3px); }

.ikm-masuk-pintas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.ikm-masuk-pintas a {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 0.5rem;
    border-radius: 0.75rem; border: 1px solid rgb(148 163 184 / 0.35); background: rgb(248 250 252 / 0.7);
    font-size: 0.8rem; font-weight: 600; color: rgb(51 65 85); text-decoration: none; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ikm-masuk-pintas a svg { width: 1rem; height: 1rem; color: #0055ca; }
.ikm-masuk-pintas a:hover { border-color: #0055ca; color: #00349c; background: #eff6ff; }

.dark .ikm-masuk-pemisah { color: rgb(161 161 170); }
.dark .ikm-masuk-pintas a { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.12); color: rgb(228 228 231); }
.dark .ikm-masuk-pintas a svg { color: #4ea6f9; }
.dark .ikm-masuk-pintas a:hover { border-color: #4ea6f9; color: #fff; background: rgb(78 166 249 / 0.12); }

@media (prefers-reduced-motion: reduce) {
    .ikm-masuk-utama, .ikm-masuk-panah { transition: none; }
    .ikm-masuk-utama:hover, .ikm-masuk-utama:hover .ikm-masuk-panah { transform: none; }
}
