/* Gaya tambahan di luar utility Tailwind (animasi, scrollbar, komponen khusus) */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }

.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04), 0 1px 3px 0 rgb(0 0 0 / 0.06);
    border: 1px solid rgb(226 232 240);
    transition: box-shadow .2s ease, transform .2s ease;
}
.dark .card { background: #0F172A; border-color: #1E293B; }
.card:hover { box-shadow: 0 4px 14px 0 rgb(0 0 0 / 0.08); }

.stat-card { position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-2px); }

.spinner {
    border: 3px solid rgba(148,163,184,.25);
    border-top-color: #2563EB;
    border-radius: 50%;
    width: 18px; height: 18px;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar-track { background: #E2E8F0; border-radius: 999px; overflow: hidden; }
.dark .progress-bar-track { background: #1E293B; }
.progress-bar-fill {
    background: linear-gradient(90deg, #2563EB, #3B82F6);
    height: 100%;
    transition: width .25s ease;
}

.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: .75rem 1rem;
    border-radius: .75rem;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15);
    font-size: .8125rem;
    font-weight: 500;
    animation: fadeIn .25s ease;
}

table.data-table th { position: sticky; top: 0; z-index: 10; }

.drop-zone { border: 2px dashed #CBD5E1; transition: all .2s ease; }
.dark .drop-zone { border-color: #334155; }
.drop-zone.drag-over { border-color: #2563EB; background: rgba(37,99,235,.05); }

.tab-btn.active { color: #2563EB; border-color: #2563EB; }
.dark .tab-btn.active { color: #60A5FA; border-color: #60A5FA; }

.row-scanning { position: relative; }
.row-scanning::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,.08), transparent);
    animation: scanning 1.2s ease-in-out infinite;
}
@keyframes scanning { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
