/* ==========================================================================
   STYLE SPREADSHEET - SISTEM TIKET MANDIRI (TRANSPORT FOR JAKARTA)
   ========================================================================== */
   
/* Mencegah kode mentah Vue {{ ... }} muncul sekelebat saat halaman di-load */
[v-cloak] {
    display: none !important;
}

/* Pengaturan Dasar & Tipografi */
body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mengatasi kelap-kelip (Flickering) elemen Alpine.js sebelum termuat sempurna */
[x-cloak] { 
    display: none !important; 
}

/* ==========================================================================
   DYNAMIC THEMING ENGINE (CSS VARIABLES)
   ========================================================================== */
:root {
    --tfjBlue: #004F9F;
    --tfjBlueDark: #0B2F64;
    --tfjTeal: #00A896;
    --tfjYellow: #FFC72C;
}

/* Custom Scrollbar untuk Tampilan Premium */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ==========================================================================
   ANIMATION & UTILITY CLASSES
   ========================================================================== */

/* Efek Karcis / Ticket Tear-line (Garis Putus-putus Tiket) */
.ticket-dashed-line {
    border-top: 2px dashed #E2E8F0;
    position: relative;
}
.ticket-dashed-line::before,
.ticket-dashed-line::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 12px;
    height: 12px;
    background-color: #F3F7FA; /* Harus sama dengan background luar tiket */
    border-radius: 50%;
}
.ticket-dashed-line::before { left: -6px; }
.ticket-dashed-line::after { right: -6px; }

/* Placeholder Kamera Scanner QR Code */
#reader {
    width: 100% !important;
    border: none !important;
    border-radius: 1rem;
    overflow: hidden;
}
#reader video {
    border-radius: 1rem;
    object-fit: cover;
}

/* ==========================================================================
   PRINT-SPECIFIC CSS RULES (UNTUK CETAK E-TICKET / PDF)
   ========================================================================== */
@media print {
    /* Sembunyikan semua elemen aplikasi kecuali container area cetak */
    body > *:not(#print-area-wrapper) {
        display: none !important;
    }
    
    #print-area-wrapper {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: white !important;
        color: black !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Optimasi Kertas A4 */
    @page {
        size: A4 portrait;
        margin: 1cm;
    }

    /* Pastikan border dan background warna ikut tercetak di beberapa browser */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}