/*
 * POS Restaurant Management System - Custom Premium Vanilla CSS
 * Fully responsive, modern, glassmorphic layout using CSS variables
 */

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

:root {
    /* Color Palette */
    --bg-base: #FFFFFF;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-surface-solid: #FFFFFF;
    --border-color: rgba(15, 23, 42, 0.06);
    --border-active: rgba(139, 92, 246, 0.4);
    
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    
    /* Semantic Colors */
    --primary: #8B5CF6; /* Violet */
    --primary-hover: #7C3AED;
    --primary-glow: rgba(139, 92, 246, 0.1);
    
    --secondary: #EC4899; /* Pink */
    
    --success: #10B981; /* Emerald */
    --success-bg: rgba(16, 185, 129, 0.1);
    
    --warning: #F59E0B; /* Amber */
    --warning-bg: rgba(245, 158, 11, 0.1);
    
    --danger: #EF4444; /* Rose */
    --danger-bg: rgba(239, 68, 68, 0.1);
    
    /* Grains & Gradients */
    --gradient-hero: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #DB2777 100%);
    --gradient-card: #FFFFFF;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 20px 0 rgba(139, 92, 246, 0.1);
    
    --backdrop-blur: blur(12px);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Scrollbars */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utility Layouts */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Custom Base Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--bg-surface-solid);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 3rem;
    background-image: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.logo-section h2 {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-link a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.nav-link.active a, .nav-link a:hover {
    background-color: rgba(139, 92, 246, 0.08);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.nav-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.user-info h4 {
    font-size: 0.95rem;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Glass Cards */
.card {
    background: var(--gradient-card);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-active);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #FFF;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-secondary {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(15, 23, 42, 0.08);
}

.btn-danger {
    background-color: var(--danger);
    color: #FFF;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-success {
    background-color: var(--success);
    color: #FFF;
}

.btn-success:hover {
    background-color: #059669;
}

/* Auth Screens */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
}

.auth-card {
    width: 480px;
    max-width: 90%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Premium Select Dropdown Styling for Light Theme */
select.form-control {
    background-color: #FFFFFF !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.1em !important;
    padding-right: 2.5rem !important;
}

select.form-control:disabled {
    background-color: #F8FAFC !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

select.form-control option {
    background-color: #FFFFFF !important;
    color: var(--text-primary) !important;
    padding: 12px !important;
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.violet {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--primary);
}

.stat-icon.pink {
    background-color: rgba(236, 72, 153, 0.15);
    color: var(--secondary);
}

.stat-icon.amber {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.stat-icon.emerald {
    background-color: var(--success-bg);
    color: var(--success);
}

.stat-data h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

.stat-data p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Content Split Sections */
.split-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .split-section {
        grid-template-columns: 1fr;
    }
}

/* Table styles */
.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table tr:hover td {
    background-color: rgba(139, 92, 246, 0.04);
}

/* Seating Tables grid */
.seating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.table-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.table-card.available {
    border-left: 4px solid var(--success);
}

.table-card.occupied {
    border-left: 4px solid var(--danger);
    background-color: rgba(239, 68, 68, 0.03);
}

.table-card h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.table-card span {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.table-card.available span {
    color: var(--success);
}

.table-card.occupied span {
    color: var(--danger);
}

/* POS Terminal Main Layout */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    height: calc(100vh - 6rem);
}

@media (max-width: 1200px) {
    .pos-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.pos-menu-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.pos-cart-section {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface-solid);
    border-left: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    height: 100%;
}

/* Categories Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    transform: scale(1.03);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,0.3);
}

.product-details {
    padding: 1rem;
}

.product-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

/* POS Cart specific styling */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
}

.cart-item-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-details span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background-color: rgba(255,255,255,0.1);
    border: none;
    border-radius: 4px;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: var(--primary);
}

.cart-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.total-row.grand-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFF;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
}

/* Badge styles */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
}

.badge-pending {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.badge-approved {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--primary);
}

.badge-delivered, .badge-completed, .badge-resolved {
    background-color: var(--success-bg);
    color: var(--success);
}

.badge-cancelled {
    background-color: var(--danger-bg);
    color: var(--danger);
}

/* Alerts and Notifications */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background-color: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.alert-danger {
    background-color: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* Dynamic Add Supply Form inside modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 600px;
    max-width: 95%;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
    margin: 2rem auto;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* ==============================================================================
   RESPONSIVE DESIGN SYSTEM & MEDIA QUERIES (OVERHAUL)
   ============================================================================== */

/* Mobile Navbar - Hidden by default on Desktop */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-surface-solid);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--shadow-sm);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logo h2 {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar Toggle Burger Button */
.burger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Burger Button Active Animations */
.burger-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sidebar Overlay Backdrop */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Breakpoint: 1024px (Tablets, Collapsed Sidebar) --- */
@media (max-width: 1024px) {
    .mobile-navbar {
        display: flex; /* Show on mobile/tablet */
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%); /* Off-screen drawer */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        background-color: var(--bg-surface-solid); /* Use solid light background */
    }

    .sidebar.open {
        transform: translateX(0); /* Slide in */
    }

    .main-content {
        margin-left: 0 !important; /* Take full width */
        padding: 6rem 1.5rem 2rem 1.5rem !important; /* Top padding to accommodate mobile header */
        width: 100%;
    }

    .app-wrapper {
        flex-direction: column;
    }
}

/* --- Breakpoint: 768px (Small Tablets & Landscape Phones) --- */
@media (max-width: 768px) {
    /* Responsive Grid adaptations */
    .dashboard-metrics, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Cards adaptations */
    .card {
        padding: 1.25rem !important;
    }

    /* POS Layout adjustments */
    .pos-layout {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 1.5rem;
    }

    .pos-cart-section {
        height: auto !important;
        min-height: 450px;
    }

    /* Responsive Tables */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
    }

    table.table th, table.table td {
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Modal overlays */
    .modal-box {
        padding: 1.5rem !important;
        border-radius: var(--radius-md) !important;
    }

    /* Welcome view features grid */
    .welcome-features {
        grid-template-columns: 1fr !important;
    }
}

/* --- Breakpoint: 480px (Smartphones Portrait) --- */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    /* POS top-row categories filtering & search */
    .pos-menu-section .card {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    .filter-bar {
        justify-content: center;
    }

    .pos-menu-section .card > div {
        width: 100% !important;
    }

    /* POS Products Grid - 2 columns on small screens */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .product-image {
        height: 100px !important;
    }

    .product-details {
        padding: 0.6rem !important;
    }

    .product-name {
        font-size: 0.85rem !important;
    }

    .product-price {
        font-size: 0.9rem !important;
    }

    /* Form rows stacking */
    .form-group-row {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 0.65rem 1.25rem !important;
        font-size: 0.85rem !important;
    }
}

/* Premium POS Top Category chip carousel & search styling */
.pos-category-card {
    background: var(--gradient-card) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.9rem 1.2rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap !important; /* Forces row alignment */
}

/* Horizontal scrollable carousel */
.carousel-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.category-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 5px 2px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-carousel::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.category-carousel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Premium dynamic chip button */
.premium-chip-btn {
    flex: 0 0 auto;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-chip-btn:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.premium-chip-btn.active {
    color: #FFF;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3), 0 0 0 2px rgba(139, 92, 246, 0.1) !important;
    transform: translateY(-1px) scale(1.03);
}

/* Premium Search Box Wrapper */
.premium-search-box {
    width: 280px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-search-input {
    width: 100%;
    padding: 0.6rem 2.2rem 0.6rem 2.4rem !important;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary) !important;
    background: #FFFFFF !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 30px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-sm);
}

.premium-search-input:focus {
    background: #FFFFFF !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15), 0 0 0 1px var(--primary) !important;
    outline: none !important;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .pos-category-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .premium-search-box {
        width: 100% !important;
    }
}


/* Fix Modal Pointer Events globally */
.modal-overlay[style*="opacity: 1"] {
    pointer-events: all !important;
}


.modal-overlay[style*="opacity:1"] {
    pointer-events: all !important;
}

