/* Rida POS & Supermarket Billing System - Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cairo:wght@400;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

[dir="rtl"] {
    font-family: 'Cairo', 'Noto Nastaliq Urdu', 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism & Modern Card Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.8);
}

/* Responsive POS Terminal Screen for all Laptop & PC Resolutions */
.pos-screen {
    min-height: calc(100vh - 60px);
    height: calc(100vh - 60px);
    overflow: hidden;
}

.pos-cart-list {
    max-height: calc(100vh - 330px);
    overflow-y: auto;
}

.pos-product-grid,
#pos-products-grid {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    align-content: start !important;
    grid-auto-rows: max-content !important;
}

.pos-product-box {
    height: 215px !important;
    min-height: 215px !important;
    max-height: 215px !important;
}

/* Laptops & Restored Windows (Height <= 800px) */
@media (max-height: 800px) {
    .pos-screen {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .pos-cart-list {
        max-height: 220px;
    }
}

/* Thermal Receipt Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-receipt, #printable-receipt * {
        visibility: visible;
    }
    #printable-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #fff;
        color: #000;
        font-family: 'Courier New', Courier, monospace;
    }
    .no-print {
        display: none !important;
    }
}

/* Barcode Sticker Sheet Print Styling */
@media print {
    .barcode-print-sheet {
        visibility: visible !important;
    }
    .barcode-print-sheet * {
        visibility: visible !important;
    }
    .barcode-print-sheet {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #fff;
    }
}

/* Smooth Subtle Animations */
@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
.animate-pulse-subtle {
    animation: pulse-subtle 3s ease-in-out infinite;
}

/* Badge Glow */
.badge-glow-emerald {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.badge-glow-indigo {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
