/* SI-PUG TERPADU - gaya tambahan di luar utilitas Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
}

/* Animasi masuk konten */
.page-enter {
    animation: pageEnter .35s ease both;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
}
.modal.is-open {
    display: block;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
    animation: fadeIn .2s ease both;
}
.modal-panel {
    position: relative;
    z-index: 1;
    animation: modalIn .22s ease both;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dropdown */
.dropdown-panel {
    display: none;
}
.dropdown-panel.is-open {
    display: block;
    animation: fadeIn .16s ease both;
}

/* Tabel */
.table-scroll {
    overflow-x: auto;
}
.table-scroll table {
    min-width: 760px;
}

/* Bar progres */
.progress-track {
    background: #eef2f1;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width .6s ease;
}

/* Dropzone */
.dropzone {
    border: 1.5px dashed #cbd5e1;
    transition: all .18s ease;
}
.dropzone.is-dragover,
.dropzone:hover {
    border-color: #0E7A4F;
    background: #f0fdf4;
}

/* Chart wrapper */
.chart-box {
    position: relative;
    width: 100%;
    height: 260px;
}

/* Cetak */
@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
    .print-page { box-shadow: none !important; border: 0 !important; }
    @page { size: A4 landscape; margin: 12mm; }
}

/* Login */
.login-pattern {
    background-image: url('../img/login-bg.svg');
    background-size: cover;
    background-position: center;
}
.login-card {
    box-shadow: 0 30px 80px -30px rgba(4, 47, 33, .55);
}

/* Navigasi aktif */
.nav-active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    box-shadow: inset 3px 0 0 #F3C969;
}
.nav-active i {
    color: #F3C969;
}

/* Loader tombol */
.btn-loading {
    pointer-events: none;
    opacity: .75;
}
.btn-loading .btn-label {
    visibility: hidden;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-ghost.btn-loading::after {
    border-color: rgba(15, 23, 42, .2);
    border-top-color: #0E7A4F;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scrollbar tabel */
.table-scroll::-webkit-scrollbar {
    height: 6px;
}

/* SweetAlert di atas modal */
.swal2-container {
    z-index: 100 !important;
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: skeleton 1.4s ease infinite;
    border-radius: 6px;
}
@keyframes skeleton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
