 /* style.css */
        :root {
            /* Your Restaurant Color Palette */
            --primary: #E63946;          /* Vibrant Red for call-to-actions */
            --primary-dark: #D62839;
            --primary-light: #FF6B6B;
            --primary-50: #FFE5E7;
            
            --secondary: #F4A261;        /* Warm Orange for accents */
            --secondary-dark: #E76F51;
            --secondary-light: #FFD166;
            
            --accent: #0056b3;           /* Blue for highlights */
            --accent-dark: #007bff;
            --accent-light: #83C5BE;
            
            --neutral-dark: #2D3436;     /* Dark gray for text */
            --neutral-medium: #636E72;   /* Medium gray */
            --neutral-light: #DFE6E9;    /* Light gray for borders */
            --neutral-50: #F8F9FA;       /* Backgrounds */
            
            --success: #007bff;          /* Blue for success */
            --warning: #F39C12;          /* Orange for warnings */
            --error: #E74C3C;            /* Red for errors */
            --info: #3498DB;             /* Blue for info */
            
            --surface: #ffffff;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
            --radius: 8px;
            --radius-lg: 12px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--neutral-50);
            height: 100vh;
/*            overflow: hidden;   */  /* add back if you want to remove the other scroll  */
        }

        /* Sidebar Toggle Button (ALWAYS VISIBLE) */
        .sidebar-collapse-toggle {
            position: fixed;
            left: 0px;
            top: 80px;
            width: 50px;
            height: 100vh;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            z-index: 1001; /* Higher than sidebar */
            box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
            transition: var(--transition);
        }

        .sidebar-collapse-toggle:hover {
            background: var(--primary-dark);
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
        }

        /* Update toggle button icon based on sidebar state */
        .sidebar-collapse-toggle i.fa-chevron-right {
            display: none;
        }

        .sidebar.collapsed ~ .sidebar-collapse-toggle i.fa-chevron-left {
            display: none;
        }

        .sidebar.collapsed ~ .sidebar-collapse-toggle i.fa-chevron-right {
            display: block;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(3px); }
        }

        .main-container {
            display: flex;
            height: 100vh;
            overflow: hidden;
            transition: all 0.3s ease;

        }

        /* Sidebar for Product Catalog */
        .sidebar {
            width: 350px;
            background: linear-gradient(180deg, var(--neutral-dark), #1a1a1a);
            border-right: 1px solid var(--neutral-light);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-lg);
            position: relative;
            z-index: 1000;
            flex-shrink: 0; /* Prevent sidebar from shrinking */
        }

        .sidebar.collapsed {
            transform: translateX(-100%);
            opacity: 0;
            pointer-events: none;
            width: 0;
            border-right: none;
        }

        .sidebar-header {
            padding: 20px;
            background: linear-gradient(180deg, var(--neutral-dark), #1a1a1a);
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .sidebar-header h3 {
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .sidebar-toggle {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .sidebar-toggle:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(180deg);
        }

        .sidebar-search {
            padding: 20px;
            border-bottom: 1px solid var(--neutral-light);
            background: var(--neutral-50);
        }

        .search-input {
            width: 100%;
            padding: 14px 20px 14px 50px;
            border: 2px solid var(--neutral-light);
            border-radius: var(--radius);
            font-size: 14px;
            background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23636E72" width="20px" height="20px"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 20px center;
            color: var(--neutral-dark);
            transition: var(--transition);
            box-shadow: var(--shadow);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-50);
        }

        .search-input::placeholder {
            color: var(--neutral-medium);
        }

        .products-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        }

        .loading-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(230, 57, 70, 0.1);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Product Grid in Sidebar */
        .product-grid-sidebar {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            
        }




/* ///////////////////////////////////////////////////////////////////////////////////// */
        .product-card-sidebar {
            background: linear-gradient(180deg, var(--neutral-dark), #1a1a1a);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--neutral-light);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .product-card-sidebar:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary);
        }

        .product-card-sidebar:hover::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            z-index: 1;
        }

        .product-image-sidebar {
            height: 140px;
            width: 100%;
            background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-light) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .product-image-sidebar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .product-card-sidebar:hover .product-image-sidebar img {
            transform: scale(1.05);
        }

        .product-info-sidebar {
            padding: 15px;
            background: white;
        }

        .product-name-sidebar {
            font-size: 14px;
            font-weight: 600;
            color: black;
            font-weight: bold;
            margin-bottom: 8px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 40px;
        }

        .product-price-sidebar {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .product-price-sidebar::before {
            content: '₦';
            font-size: 16px;
            color: var(--neutral-medium);
        }

        .product-stock-sidebar {
            font-size: 12px;
            color: var(--neutral-medium);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .stock-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            transition: var(--transition);
        }

        .stock-dot.in-stock {
            background: var(--success);
            box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
        }

        .stock-dot.low-stock {
            background: var(--warning);
            box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
        }

        .stock-dot.out-of-stock {
            background: var(--error);
            box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--success);
            color: white;
            padding: 15px 25px;
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 10000;
            opacity: 0;
            transform: translateY(20px) translateX(20px);
            transition: var(--transition);
            min-width: 300px;
            max-width: 400px;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0) translateX(0);
        }

        .toast.error {
            background: var(--error);
        }

        .toast.warning {
            background: var(--warning);
        }

        /* Main Content Area (Tabs) */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
            transition: all 0.3s ease;
            min-width: 0; /* Allows content to shrink properly */
        }

        /* When sidebar is collapsed, main content expands to full width */
        .sidebar.collapsed ~ .main-content {
            width: 100%;
            margin-left: 0;
        }

        #tabs-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--surface);
            margin: 15px;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            border: 1px solid var(--neutral-light);
            min-width: 0; /* Allows tabs to shrink properly */
        }

        #tab-bar {
            display: flex;
            background: var(--neutral-50);
            border-bottom: 1px solid var(--neutral-light);
            padding: 0 15px;
            min-height: 60px;
            align-items: center;
            flex-shrink: 0;
            overflow-x: auto; /* Allow tabs to scroll horizontally on small screens */
            white-space: nowrap;
        }

        .tab {
            display: flex;
            align-items: center;
            padding: 10px 20px;
            background: var(--surface);
            border: 1px solid var(--neutral-light);
            border-bottom: none;
            border-radius: var(--radius) var(--radius) 0 0;
            margin-right: 5px;
            cursor: pointer;
            font-size: 14px;
            color: var(--neutral-medium);
            transition: var(--transition);
            position: relative;
            top: 1px;
            flex-shrink: 0; /* Prevent tabs from shrinking */
        }

        .tab:hover {
            color: var(--primary);
            border-color: var(--neutral-medium);
        }

        .tab.active {
            background: var(--surface);
            color: var(--primary);
            font-weight: 600;
            border-color: var(--primary);
            box-shadow: 0 -2px 8px rgba(230, 57, 70, 0.1);
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary);
        }

        .tab-close {
            background: none;
            border: none;
            color: var(--neutral-medium);
            font-size: 16px;
            line-height: 1;
            padding: 0 0 0 8px;
            cursor: pointer;
            transition: var(--transition);
            flex-shrink: 0;
        }

        .tab-close:hover {
            color: var(--error);
            transform: scale(1.1);
        }

        #add-tab {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            margin-left: 10px;
            transition: var(--transition);
            box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
            flex-shrink: 0;
        }

        #add-tab:hover {
            background: var(--primary-dark);
            transform: scale(1.1);
            box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
        }

        #tab-content {
            flex: 1;
            position: relative;
            overflow: hidden;
            min-width: 0; /* Allows iframe to shrink properly */
        }

        .tab-frame {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            display: none;
        }

        .tab-frame.active {
            display: block;
        }

        /* ================= RESPONSIVE DESIGN ================= */
        
        /* Medium screens (tablets) */
        @media (max-width: 1200px) {
            .sidebar {
                width: 320px;
            }
            
            .product-grid-sidebar {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .product-image-sidebar {
                height: 120px;
            }
            
            #tabs-wrapper {
                margin: 10px;
            }
            
            .tab {
                padding: 8px 15px;
                font-size: 13px;
            }
            
            .sidebar-collapse-toggle {
                left: 10px;
                top: 70px;
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
        }

        /* Small screens (mobile landscape/tablet portrait) */
        @media (max-width: 992px) {
            .main-container {
                flex-direction: row; /* Keep side-by-side on medium screens */
            }
            
            .sidebar {
                width: 280px; /* Smaller sidebar */
            }
            
            .sidebar.collapsed {
                transform: translateX(-100%);
            }
            
            .sidebar-collapse-toggle {
                left: 10px;
                top: 70px;
            }
            
            .main-content {
                padding-left: 0;
            }
            
            .products-container {
                padding: 15px;
            }
            
            .product-grid-sidebar {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .product-image-sidebar {
                height: 100px;
            }
            
            .product-info-sidebar {
                padding: 10px;
            }
            
            .product-name-sidebar {
                font-size: 13px;
                height: 36px;
            }
            
            .product-price-sidebar {
                font-size: 16px;
            }
            
            #tabs-wrapper {
                margin: 8px;
            }
            
            #tab-bar {
                padding: 0 10px;
                min-height: 50px;
            }
            
            .tab {
                padding: 6px 12px;
                font-size: 12px;
                margin-right: 3px;
            }
            
            .tab-close {
                font-size: 14px;
                padding-left: 6px;
            }
            
            #add-tab {
                width: 36px;
                height: 36px;
                font-size: 14px;
                margin-left: 8px;
            }
        }

        /* Extra small screens (mobile portrait) */
        @media (max-width: 768px) {
            .main-container {
                flex-direction: column; /* Stack vertically on mobile */
            }
            
            .sidebar {
                width: 100%;
                height: 300px;
                border-right: none;
                border-bottom: 1px solid var(--neutral-light);
                position: fixed;
                top: 0;
                left: 0;
                z-index: 1002;
            }
            
            .sidebar.collapsed {
                transform: translateY(-100%);
            }
            
            .sidebar-collapse-toggle {
                left: 50%;
                transform: translateX(-50%);
                top: 10px;
                z-index: 1003;
            }
            
            .sidebar.collapsed ~ .sidebar-collapse-toggle {
                top: 10px;
                left: 50%;
                transform: translateX(-50%);
            }
            
            .main-content {
                padding-top: 320px; /* Space for sidebar + toggle button */
                height: calc(100vh - 320px);
            }
            
            .sidebar:not(.collapsed) ~ .main-content {
                padding-top: 320px;
            }
            
            .sidebar.collapsed ~ .main-content {
                padding-top: 60px; /* Only toggle button space when sidebar hidden */
            }
            
            .products-container {
                height: 180px; /* Fixed height on mobile */
                padding: 10px;
                overflow-y: auto;
            }
            
            .product-grid-sidebar {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .product-image-sidebar {
                height: 80px;
            }
            
            .product-info-sidebar {
                padding: 8px;
            }
            
            .product-name-sidebar {
                font-size: 12px;
                height: 32px;
                margin-bottom: 4px;
            }
            
            .product-price-sidebar {
                font-size: 14px;
                margin-bottom: 4px;
            }
            
            .product-stock-sidebar {
                font-size: 10px;
            }
            
            #tabs-wrapper {
                margin: 5px;
                border-radius: var(--radius);
            }
            
            #tab-bar {
                min-height: 45px;
                padding: 0 8px;
            }
            
            .tab {
                padding: 5px 10px;
                font-size: 11px;
            }
            
            .tab span i {
                font-size: 10px;
            }
            
            .tab-close {
                font-size: 12px;
                padding-left: 4px;
            }
            
            #add-tab {
                width: 32px;
                height: 32px;
                font-size: 12px;
                margin-left: 6px;
            }
            
            .toast {
                left: 10px;
                right: 10px;
                max-width: none;
                min-width: auto;
                bottom: 10px;
                padding: 10px 15px;
                font-size: 14px;
            }
        }

        /* Very small screens */
        @media (max-width: 576px) {
            .sidebar-header h3 span {
                display: none;
            }
            
            .sidebar-header h3 i {
                font-size: 20px;
            }
            
            .sidebar-header {
                padding: 15px;
            }
            
            .sidebar-search {
                padding: 15px;
            }
            
            .search-input {
                padding: 12px 15px 12px 40px;
                font-size: 13px;
            }
            
            .product-grid-sidebar {
                grid-template-columns: 1fr; /* Single column on very small screens */
            }
            
            .product-card-sidebar {
                display: flex;
                flex-direction: row;
                align-items: center;
            }
            
            .product-image-sidebar {
                width: 80px;
                height: 80px;
                flex-shrink: 0;
            }
            
            .product-info-sidebar {
                flex: 1;
                padding: 10px;
            }
            
            .product-name-sidebar {
                height: auto;
                -webkit-line-clamp: 1;
                margin-bottom: 6px;
            }
            
            .main-content {
                padding-top: 280px; /* Reduced space */
            }
            
            .sidebar.collapsed ~ .main-content {
                padding-top: 50px;
            }
            
            #tab-bar {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .tab {
                min-width: 80px;
            }
            
            .sidebar-collapse-toggle {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }

        /* Tiny screens */
        @media (max-width: 375px) {
            .sidebar {
                height: 280px;
            }
            
            .products-container {
                height: 160px;
            }
            
            .main-content {
                padding-top: 260px;
            }
            
            .sidebar.collapsed ~ .main-content {
                padding-top: 45px;
            }
            
            .tab {
                padding: 4px 8px;
                font-size: 10px;
            }
            
            #add-tab {
                width: 28px;
                height: 28px;
                font-size: 11px;
            }
            
            .tab-close {
                font-size: 11px;
            }
        }

        /* Scrollbar Styling */
        .products-container::-webkit-scrollbar {
            width: 6px;
        }

        .products-container::-webkit-scrollbar-track {
            background: var(--neutral-50);
            border-radius: 3px;
        }

        .products-container::-webkit-scrollbar-thumb {
            background: var(--neutral-light);
            border-radius: 3px;
        }

        .products-container::-webkit-scrollbar-thumb:hover {
            background: var(--neutral-medium);
        }

        #tab-bar::-webkit-scrollbar {
            height: 4px;
        }

        #tab-bar::-webkit-scrollbar-track {
            background: transparent;
        }

        #tab-bar::-webkit-scrollbar-thumb {
            background: var(--neutral-light);
            border-radius: 2px;
        }

        #tab-bar::-webkit-scrollbar-thumb:hover {
            background: var(--neutral-medium);
        }











/* Category Arrangement Controls */
.category-arrangement-controls {
    background: var(--neutral-lightest);
    border-bottom: 1px solid var(--neutral-light);
    padding: 12px 15px;
}

.arrangement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.arrangement-header h4 {
    margin: 0;
    font-size: 14px;
    color: var(--neutral-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrangement-buttons {
    display: flex;
    gap: 8px;
}

.arrange-btn, .save-btn, .reset-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.arrange-btn {
    background: var(--primary);
    color: white;
}

.arrange-btn:hover {
    background: var(--primary-dark);
}

.arrange-btn.active {
    background: var(--error);
}

.save-btn {
    background: var(--success);
    color: white;
}

.save-btn:hover {
    background: var(--success-dark);
}

.reset-btn {
    background: var(--warning);
    color: white;
}

.reset-btn:hover {
    background: var(--warning-dark);
}

/* Category Order List */
.category-order-list {
    background: white;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid var(--neutral-light);
    max-height: 300px;
    overflow-y: auto;
}

.category-order-instruction {
    background: var(--info-light);
    color: var(--info-dark);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sortable List */
.sortable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sortable-item {
    background: white;
    border: 1px solid var(--neutral-light);
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: move;
    transition: all 0.2s ease;
}

.sortable-item:hover {
    border-color: var(--primary);
    background: var(--primary-lightest);
}

.sortable-item-content {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
}

.sortable-item-icon {
    width: 36px;
    height: 36px;
    background: var(--neutral-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-dark);
}

.sortable-item-info {
    flex: 1;
}

.sortable-item-name {
    display: block;
    font-weight: 600;
    color: var(--neutral-dark);
    font-size: 14px;
}

.sortable-item-count {
    display: block;
    font-size: 12px;
    color: var(--neutral-medium);
}

.sortable-item-handle {
    color: var(--neutral-medium);
    padding: 5px;
    cursor: grab;
}

.sortable-item-handle:active {
    cursor: grabbing;
}

/* Sortable.js classes */
.sortable-ghost {
    opacity: 0.4;
    background: var(--primary-lightest);
}

.sortable-chosen {
    background: var(--primary-lightest);
    border-color: var(--primary);
}

.sortable-drag {
    opacity: 0.8;
    transform: rotate(2deg);
}

/* Category Sections */
.products-by-category {
    padding: 15px;
}

.category-section {
    margin-bottom: 25px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--neutral-light);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    color: var(--primary);
    font-size: 18px;
}

.category-title h3 {
    margin: 0;
    font-size: 16px;
    color: var(--neutral-dark);
}

.category-count {
    background: var(--neutral-light);
    color: var(--neutral-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.arrange-notice {
    background: var(--warning-light);
    color: var(--warning-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-items {
    display: grid;
    gap: 12px;
}

/* Product/Soup Cards in Category View */
.product-card, .soup-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--neutral-light);
}

.product-card:hover, .soup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.product-image, .soup-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.product-image img, .soup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info, .soup-info {
    padding: 10px;
}

.product-name, .soup-name {
    font-weight: 600;
    color: var(--neutral-dark);
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price, .soup-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-unit, .soup-unit {
    color: var(--neutral-medium);
    font-size: 12px;
    margin-bottom: 5px;
}

.product-stock, .soup-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
}

/* Compact layout for mobile */
@media (max-width: 576px) {
    .product-card, .soup-card {
        display: flex;
        height: 80px;
    }
    
    .product-image, .soup-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .product-info, .soup-info {
        flex: 1;
        padding: 8px;
    }
    
    .arrangement-buttons {
        flex-wrap: wrap;
    }
    
    .arrange-btn, .save-btn, .reset-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* No categories message */
.no-categories {
    text-align: center;
    padding: 40px 20px;
    color: var(--neutral-medium);
}

.no-categories i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--neutral-light);
}

.no-categories h4 {
    color: var(--neutral-dark);
    margin-bottom: 10px;
}

.no-categories p {
    font-size: 14px;
}












/* 1. Move Toggle Button to Right */
.sidebar-collapse-toggle {
    position: fixed;
    right: 0px; /* CHANGED: from left: 0px to right: 0px */
    top: 80px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: var(--transition);
    left: auto; /* ADDED: Reset left positioning */
}

/* 2. Swap the chevron display logic */
.sidebar-collapse-toggle i.fa-chevron-right {
    display: block; /* CHANGED: from none to block */
}

.sidebar-collapse-toggle i.fa-chevron-left {
    display: none; /* CHANGED: from block to none */
}

.sidebar.collapsed ~ .sidebar-collapse-toggle i.fa-chevron-left {
    display: block; /* CHANGED: from none to block */
}

.sidebar.collapsed ~ .sidebar-collapse-toggle i.fa-chevron-right {
    display: none; /* CHANGED: from block to none */
}

/* 3. Move Sidebar to Right */
.sidebar {
    width: 350px;
    background: linear-gradient(180deg, var(--neutral-dark), #1a1a1a);
    border-left: 1px solid var(--neutral-light); /* CHANGED: border-right to border-left */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1000;
    flex-shrink: 0;
    margin-left: auto; /* ADDED: Push sidebar to right */
    order: 2; /* ADDED: Make sidebar come after main content */
}

.sidebar.collapsed {
    transform: translateX(100%); /* CHANGED: from -100% to 100% */
    opacity: 0;
    pointer-events: none;
    width: 0;
    border-right: none;
}

/* 4. Adjust Main Content Order */
.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    min-width: 0;
    order: 1; /* ADDED: Make main content come before sidebar */
}

/* 5. Update mobile responsive styles */
@media (max-width: 1200px) {
    .sidebar-collapse-toggle {
        right: 0px; /* CHANGED: from left: 10px to right: 0px */
        left: auto;
    }
}

@media (max-width: 992px) {
    .sidebar-collapse-toggle {
        right: 0px; /* CHANGED: from left: 10px to right: 0px */
        left: auto;
    }
}

@media (max-width: 768px) {
    .sidebar {
        border-left: none; /* CHANGED: Remove left border on mobile */
        border-bottom: 1px solid var(--neutral-light);
    }
    
    .sidebar.collapsed {
        transform: translateY(100%); /* CHANGED: Keep translateY for mobile */
    }
    
    .sidebar-collapse-toggle {
        left: 50%; /* Center on mobile */
        right: auto;
        transform: translateX(-50%);
    }
    
    .sidebar.collapsed ~ .sidebar-collapse-toggle {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .sidebar-collapse-toggle {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}









/* ================= PHARMACY SERVICE STYLES ================= */

/* Service Card Styles */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--neutral-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--info));
    z-index: 1;
}

.service-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 15px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-price::before {
    content: '₦';
    font-size: 16px;
    color: var(--neutral-medium);
}

.service-duration {
    font-size: 13px;
    color: var(--neutral-medium);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--neutral-50);
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.service-duration i {
    color: var(--info);
}

.service-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.status-dot.appointment-required {
    background: var(--warning);
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
    animation: pulse 2s infinite;
}

.status-dot.walk-in-available {
    background: var(--success);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.service-description {
    font-size: 12px;
    color: var(--neutral-medium);
    line-height: 1.4;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--neutral-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Service Category Badges */
.service-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 86, 179, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(2px);
}

/* Service Status Badges */
.service-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.service-status-badge.appointment {
    background: rgba(243, 156, 18, 0.9);
    color: white;
}

.service-status-badge.walkin {
    background: rgba(52, 152, 219, 0.9);
    color: white;
}

/* Service-specific animations */
.service-card.adding {
    animation: serviceAddAnimation 0.5s ease;
}

@keyframes serviceAddAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Service Highlight States */
.service-card.featured {
    border: 2px solid var(--accent);
}

.service-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 86, 179, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Quick Service Actions */
.service-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 2;
}

.service-card:hover .service-actions {
    opacity: 1;
    transform: translateY(0);
}

.quick-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--neutral-light);
    color: var(--neutral-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Service Grid Layout */
.category-items {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Service-only category styling */
.category-section[data-category="Pharmacy Services"] .category-header {
    border-bottom-color: var(--accent);
}

.category-section[data-category="Pharmacy Services"] .category-title i {
    color: var(--accent);
}

/* Mobile responsive styles for services */
@media (max-width: 768px) {
    .service-card {
        height: auto;
    }
    
    .service-image {
        height: 120px;
    }
    
    .service-name {
        font-size: 14px;
        min-height: 38px;
    }
    
    .service-price {
        font-size: 16px;
    }
    
    .service-duration {
        font-size: 12px;
    }
    
    .service-description {
        font-size: 11px;
    }
    
    .category-items {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .service-card {
        flex-direction: row;
        height: 100px;
    }
    
    .service-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    
    .service-info {
        flex: 1;
        padding: 10px;
    }
    
    .service-name {
        min-height: auto;
        -webkit-line-clamp: 1;
        font-size: 13px;
    }
    
    .service-price {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .service-duration {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .service-status {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .service-description {
        display: none;
    }
    
    .service-category-badge,
    .service-status-badge {
        top: 5px;
        left: 5px;
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .service-status-badge {
        right: 5px;
        left: auto;
    }
    
    .service-actions {
        display: none;
    }
    
    .category-items {
        grid-template-columns: 1fr;
    }
}

/* Service Status Colors */
.service-available {
    color: var(--success);
}

.appointment-required {
    color: var(--warning);
}

.walk-in-available {
    color: var(--info);
}

.service-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.service-disabled:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--neutral-light);
}

/* Service Loading State */
.service-loading {
    position: relative;
    overflow: hidden;
}

.service-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Service Tooltip */
.service-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--neutral-dark);
}

.service-card:hover .service-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Service Empty State */
.no-services {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.no-services i {
    font-size: 48px;
    color: var(--neutral-light);
    margin-bottom: 15px;
}

.no-services h4 {
    color: var(--neutral-dark);
    margin-bottom: 10px;
}

.no-services p {
    color: var(--neutral-medium);
    font-size: 14px;
}

/* Service Filter Styles */
.service-filter {
    background: white;
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    border: 1px solid var(--neutral-light);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-dark);
    white-space: nowrap;
}

.filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid var(--neutral-light);
    background: var(--neutral-50);
    color: var(--neutral-dark);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Print styles for services */
@media print {
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .service-actions,
    .quick-action-btn {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--neutral-dark);
    }
    
    .service-price {
        font-weight: 900;
    }
    
    .status-dot {
        width: 12px;
        height: 12px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card:hover,
    .service-image img,
    .service-card:hover .service-image img {
        transition: none;
        animation: none;
    }
    
    .status-dot.appointment-required {
        animation: none;
    }
}














