/* Custom Styles & Card Print Layout */

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.8);
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.25s ease-out forwards;
}

/* PVC Card Display (Screen Preview) */
.pvc-card-preview {
    width: 336px;
    height: 212px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pvc-card-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(30, 64, 175, 0.3);
}

/* Card Print Styling (Exact CR80 PVC Standard: 85.6mm x 53.98mm) */
@media print {
    @page {
        size: 85.6mm 53.98mm;
        margin: 0;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .no-print, nav, aside, header, footer, button, .sidebar, #sidebarBackdrop, #mainSidebar {
        display: none !important;
    }
    
    .print-only-container {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .pvc-card-print {
        width: 85.6mm !important;
        height: 53.98mm !important;
        page-break-after: always;
        page-break-inside: avoid;
        margin: 0 !important;
        padding: 2.5mm !important;
        box-sizing: border-box !important;
        border-radius: 2mm !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .pvc-card-front {
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%) !important;
        color: #ffffff !important;
    }
    
    .pvc-card-back {
        background: #ffffff !important;
        color: #1e293b !important;
        border: 0.2mm solid #cbd5e1 !important;
    }
}
