/* Mobile-First Custom Styles & Utilities for INNUM PERU VAIKKALA CHAAT CORNER */

/* Touch Target Minimum Height (44px) */
.touch-target,
button,
select,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"] {
    min-height: 44px;
}

/* Hide scrollbars for horizontal tab pills */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 4px;
}

/* Safe Area Inset Bottom Padding for Modern Mobile Devices */
.safe-area-bottom {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Layout Bottom Spacing Strategy */
:root {
    --mobile-nav-height: 3.5rem;
}

.mobile-main-pb {
    padding-bottom: calc(var(--mobile-nav-height) + max(1.5rem, env(safe-area-inset-bottom)) + 5rem) !important;
}
@media (min-width: 1024px) {
    .mobile-main-pb {
        padding-bottom: 2rem !important;
    }
}

/* Mobile Toast Notification Position (Floating neatly above fixed bottom nav) */
.mobile-toast-pos {
    bottom: calc(var(--mobile-nav-height) + max(0.75rem, env(safe-area-inset-bottom)) + 0.75rem) !important;
}
@media (min-width: 640px) {
    .mobile-toast-pos {
        bottom: 1.25rem !important;
    }
}

/* Mobile Cart Floating Bar Position */
.mobile-cart-bar-pos {
    bottom: calc(var(--mobile-nav-height) + max(0.75rem, env(safe-area-inset-bottom)) + 0.75rem) !important;
}

/* Mobile Touch Optimization */
.touch-active {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Print Friendly Overrides */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-invoice, #printable-invoice * {
        visibility: visible;
    }
    #printable-invoice {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 15px;
        background: white;
        color: black;
    }
    .no-print, #mobile-bottom-nav, #main-sidebar, header {
        display: none !important;
    }
}


/* =========================================================
   MOBILE BOTTOM NAV CONTENT SPACER
   Guarantees fixed bottom navigation never covers content
   ========================================================= */

.mobile-bottom-spacer {
    display: block !important;
    width: 100% !important;
    height: 144px !important;
    min-height: 144px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}

@media (min-width: 1024px) {
    .mobile-bottom-spacer {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
    }
}