/* Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Effect for Inputs */
input, select, textarea {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Invoice Styling for Export */
#invoiceArea {
    background-image: radial-gradient(#e2e8f0 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

/* Modal Animation */
.modal-active {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


#invoiceArea {
    /* Tambahkan ini agar transisi layout saat export lebih mulus */
    transition: none !important; 
    box-sizing: border-box;
}

/* Memastikan preview di layar ponsel tetap bisa discroll horizontal jika terlalu lebar */
@media (max-width: 768px) {
    section.lg\:col-span-8 {
        overflow-x: auto;
        padding-bottom: 20px;
    }
    #invoiceArea {
        min-width: 800px; /* Memaksa invoice tidak mengecil di layar HP */
        transform: scale(0.45); /* Opsi: Mengecilkan tampilan preview agar pas di layar HP */
        transform-origin: top left;
        margin-bottom: -450px; /* Menghilangkan whitespace akibat scale */
    }
}