@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --brand: #4f46e5;      /* Modern Indigo */
    --brand-hover: #4338ca;
    --brand-light: #e0e7ff;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-border: rgba(255, 255, 255, 0.5);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-mesh: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Soft animated gradient background */
    background: linear-gradient(-45deg, #f8fafc, #e2e8f0, #f1f5f9);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- True Glassmorphism Card --- */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* --- Interactive Drag & Drop --- */
.upload-hero {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.upload-hero:hover, .upload-hero.dragover {
    border-color: var(--brand);
    background: var(--brand-light);
    transform: scale(1.02);
}

.upload-hero i {
    transition: transform 0.3s ease;
}
.upload-hero:hover i {
    transform: translateY(-5px);
}

/* --- Premium Buttons --- */
.btn-primary-mx {
    background: var(--brand);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.btn-primary-mx:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

/* --- Table Styles & Scrollbars --- */
.table-premium th {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid #e2e8f0;
}

.table-premium td {
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table-premium tr:hover td {
    background: rgba(241, 245, 249, 0.5);
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- Loading Overlay --- */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.spinner-pulse {
    width: 60px; height: 60px;
    background-color: var(--brand);
    border-radius: 100%;
    animation: sk-scaleout 1.0s infinite ease-in-out;
}
@keyframes sk-scaleout {
    0% { transform: scale(0); }
    100% { transform: scale(1.0); opacity: 0; }
}

/* --- Search Box UI --- */
.search-box input {
    transition: all 0.3s ease;
    box-shadow: none !important;
    font-size: 13px;
}
.search-box input:focus {
    background-color: white !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

/* --- Enhanced Table Styles --- */
.table-premium th {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid #e2e8f0;
    padding: 16px 10px; /* Padding header diperbesar */
}

.table-premium td {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 10px; /* Padding cell diperbesar agar lebih berongga */
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.table-premium tr:hover td {
    background-color: #f8fafc; /* Efek hover baris yang sangat lembut */
}

.table-premium tr:last-child td {
    border-bottom: none;
}

/* --- Pagination UI --- */
.pagination .page-link {
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}
.pagination .page-item.active .page-link {
    background-color: var(--brand);
    border-color: var(--brand);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}
.pagination .page-link:hover:not(.active) {
    background-color: #f8fafc;
    color: var(--brand);
    transform: translateY(-1px);
}
.pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* --- Personal Animation: Beby Sundari Background --- */
.personal-bg-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.moving-text {
    position: absolute;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(79, 70, 229, 0.03); /* Sangat samar agar tidak mengganggu baca data */
    white-space: nowrap;
    animation: floatText 20s linear infinite;
}

@keyframes floatText {
    from { transform: translateX(100%) translateY(0); }
    to { transform: translateX(-100%) translateY(100vh); }
}

/* --- Cursor Particle Style --- */
.cursor-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out, opacity 0.5s ease-out;
}

/* Animasi Ikon Melayang di Tampilan Depan */
.floating-icon {
    position: absolute;
    opacity: 0.3;
    animation: floatUpDown 4s ease-in-out infinite;
    color: var(--brand);
    pointer-events: none;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

/* Penyesuaian agar teks nominal tidak overflow */
.glass-card .fs-6 {
    word-break: break-all; /* Memungkinkan angka turun ke bawah jika benar-benar tidak muat */
    line-height: 1.2;
}

/* Membuat angka sedikit lebih kecil di layar tablet/mobile */
@media (max-width: 1200px) {
    .glass-card .fs-6 {
        font-size: 0.9rem !important;
    }
}