@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar for Enterprise feel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* Spinner Animation */
.loader {
    border-top-color: #6366f1; /* indigo-500 */
    -webkit-animation: spinner 1s linear infinite;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page transitions */
.page-section {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal animation */
.modal-active {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}

#paketModalContent, #pelangganModalContent {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.95) translateY(10px);
}

/* Table Hover transition */
tbody tr {
    transition: background-color 0.15s ease;
}


/* Minimalist Table Styling */
tbody tr:hover { background-color: #f8fafc; }

thead th { background-color: transparent; border-bottom: 1px solid #e2e8f0; font-weight: 600; color: #64748b; padding-top: 1.2rem; padding-bottom: 1.2rem; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; }

td { padding-top: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid #f1f5f9; }

/* Minimalist Button Styling */
button { transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; }
button:active { transform: scale(0.95); }

/* Glossy Inputs */
input[type='text'], input[type='password'], input[type='number'], select, textarea { transition: all 0.3s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(99,102,241,0.2) !important; border-color: #818cf8 !important; }

/* ==========================================
   PRINT STYLES (PDF & INVOICE)
   ========================================== */
@media print {
    /* Hide the main application layout */
    body.printing-laporan #mainLayout,
    body.printing-invoice #mainLayout {
        display: none !important;
    }
    
    /* Show only the target container and force it to flow naturally */
    body.printing-laporan #printLaporanContainer {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        width: 100% !important;
    }
    
    body.printing-invoice #printInvoiceContainer {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        width: 100% !important;
    }
    
    /* Ensure the body and html can expand to multiple pages */
    body, html {
        overflow: visible !important;
        height: auto !important;
        background-color: white !important;
    }
    
    /* Ensure no page breaks inside rows */
    tr, td, th {
        page-break-inside: avoid;
    }
}
