  body {
            font-family: 'Inter', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        /* Simple shake animation for incorrect pin */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
            20%, 40%, 60%, 80% { transform: translateX(10px); }
        }
        .shake {
            animation: shake 0.5s ease-in-out;
        }
        .sidebar {
            transition: all 0.3s ease;
            transform: translateX(-100%);
            width: 280px;
        }
        .sidebar.open {
            transform: translateX(0);
        }
        .sidebar.collapsed {
            width: 80px;
        }
        .sidebar.collapsed .sidebar-text {
            display: none;
        }
        .sidebar.collapsed .logo-text {
            display: none;
        }
        .sidebar.collapsed .logo-container {
            justify-content: center;
        }
        .sidebar.collapsed .sidebar-item {
            justify-content: center;
            padding: 12px;
        }
        .sidebar.collapsed .border-t {
            margin: 8px;
        }
        .sidebar-overlay {
            transition: all 0.3s ease;
            opacity: 0;
            pointer-events: none;
        }
        .sidebar-overlay.active {
            opacity: 1;
            pointer-events: all;
        }
        
        /* Minimal scrollbar styling for sidebar */
        .sidebar .flex-1::-webkit-scrollbar {
            width: 6px;
        }
        .sidebar .flex-1::-webkit-scrollbar-track {
            background: transparent;
        }
        .sidebar .flex-1::-webkit-scrollbar-thumb {
            background: rgba(156, 163, 175, 0.3);
            border-radius: 3px;
        }
        .sidebar .flex-1::-webkit-scrollbar-thumb:hover {
            background: rgba(156, 163, 175, 0.5);
        }
        
        /* Firefox scrollbar */
        .sidebar .flex-1 {
            scrollbar-width: thin;
            scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
        }
        .main-content {
            transition: all 0.3s ease;
        }
        .main-content.sidebar-open {
            margin-left: 280px;
        }
        
        /* Category Filter Buttons */
        .category-filter-btn {
            padding: 8px 16px;
            border: 2px solid #e5e7eb;
            background-color: white;
            color: #6b7280;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
            min-width: fit-content;
        }
        
        .category-filter-btn:hover {
            border-color: #3b82f6;
            color: #3b82f6;
            background-color: #eff6ff;
        }
        
        .category-filter-btn.active {
            border-color: #3b82f6;
            background-color: #3b82f6;
            color: white;
        }
        
        /* Service Tab Styles */
        .service-tab {
            transition: all 0.2s ease;
        }
        
        .service-tab.active {
            background-color: #10b981 !important;
            color: white !important;
        }
        
        .service-tab:not(.active) {
            background-color: #e5e7eb;
            color: #374151;
        }
        
        .service-tab:not(.active):hover {
            background-color: #d1d5db;
        }
        
        .services-content {
            transition: opacity 0.2s ease;
        }
        
        /* Custom scrollbar for filter buttons */
        .overflow-x-auto::-webkit-scrollbar {
            height: 6px;
        }
        
        .overflow-x-auto::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 3px;
        }
        
        .overflow-x-auto::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }
        
        .overflow-x-auto::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
        
        /* Responsive Design */
        @media (max-width: 1024px) {
            .main-content.sidebar-open {
                margin-left: 0;
            }
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.open {
                transform: translateX(0);
            }
        }
        
        @media (min-width: 1025px) {
            .sidebar {
                transform: translateX(0) !important;
            }
            .main-content {
                margin-left: 280px;
            }
            .main-content.collapsed {
                margin-left: 80px;
            }
            .sidebar-overlay {
                display: none !important;
            }
            #sidebar-toggle {
                display: none !important;
            }
            #desktop-sidebar-toggle {
                display: block !important;
            }
        }
        
        @media (max-width: 768px) {
            .main-content.sidebar-open {
                margin-left: 0;
            }
            
            /* Responsive grid adjustments */
            .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            .grid-cols-1.lg\\:grid-cols-3 {
                grid-template-columns: 1fr !important;
            }
            
            /* Table responsiveness */
            .overflow-x-auto table {
                min-width: 600px;
            }
            
            /* Modal adjustments */
            .modal-content {
                margin: 1rem;
                max-width: calc(100vw - 2rem);
                max-height: calc(100vh - 2rem);
            }
            
            /* Form adjustments */
            .grid.grid-cols-1.md\\:grid-cols-2 {
                grid-template-columns: 1fr !important;
            }
        }
        
        @media (max-width: 640px) {
            /* Mobile specific adjustments */
            .p-4.sm\\:p-6.lg\\:p-8 {
                padding: 1rem !important;
            }
            
            .text-3xl.font-bold {
                font-size: 1.5rem !important;
            }
            
            .text-xl.font-bold {
                font-size: 1.25rem !important;
            }
            
            /* Tables that should always stay tabular (like customers table) */
            .tabular-always {
                display: table !important;
                min-width: 100% !important;
            }
            
            .tabular-always thead {
                display: table-header-group !important;
            }
            
            .tabular-always tbody {
                display: table-row-group !important;
            }
            
            .tabular-always tr {
                display: table-row !important;
            }
            
            .tabular-always th,
            .tabular-always td {
                display: table-cell !important;
                border: none !important;
                padding: 0.75rem !important;
                text-align: left !important;
                vertical-align: middle !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }
            
            /* Ensure horizontal scrolling for tabular tables on small screens */
            .tabular-always {
                font-size: 0.75rem !important;
            }
            
            .tabular-always th {
                font-size: 0.7rem !important;
                background-color: #f9fafb !important;
                font-weight: 600 !important;
            }
            
            /* Responsive Tables - Convert to Cards (excluding tabular-always) */
            .responsive-table:not(.tabular-always) {
                display: block !important;
            }
            
            .responsive-table:not(.tabular-always) thead {
                display: none !important;
            }
            
            .responsive-table:not(.tabular-always) tbody {
                display: block !important;
            }
            
            .responsive-table:not(.tabular-always) tr {
                display: block !important;
                margin-bottom: 1rem !important;
                background: #f9fafb !important;
                border: 1px solid #e5e7eb !important;
                border-radius: 0.5rem !important;
                padding: 1rem !important;
                position: relative !important;
            }
            
            .responsive-table:not(.tabular-always) td {
                display: block !important;
                text-align: left !important;
                border: none !important;
                padding: 0.25rem 0 !important;
                position: relative !important;
                padding-left: 35% !important;
            }
            
            .responsive-table:not(.tabular-always) td:before {
                content: attr(data-label) ": " !important;
                position: absolute !important;
                left: 0 !important;
                width: 30% !important;
                font-weight: 600 !important;
                color: #374151 !important;
                white-space: nowrap !important;
            }
            
            .responsive-table:not(.tabular-always) .actions-cell {
                text-align: center !important;
                padding-left: 0 !important;
                margin-top: 0.5rem !important;
                padding-top: 0.5rem !important;
                border-top: 1px solid #e5e7eb !important;
            }
            
            .responsive-table:not(.tabular-always) .actions-cell:before {
                display: none !important;
            }
            
            /* Stack form elements vertically, but NOT sidebar items */
            .flex.space-x-2:not(.sidebar-item), .flex.space-x-3:not(.sidebar-item) {
                flex-direction: column !important;
            }
            
            .flex.space-x-2:not(.sidebar-item) > *, .flex.space-x-3:not(.sidebar-item) > * {
                margin-right: 0 !important;
                margin-bottom: 0.5rem;
            }
            
            .flex.space-x-2:not(.sidebar-item) > *:last-child, .flex.space-x-3:not(.sidebar-item) > *:last-child {
                margin-bottom: 0;
            }
            
            /* Ensure sidebar items stay horizontal on mobile */
            .sidebar-item.flex.items-center.space-x-3 {
                flex-direction: row !important;
            }
            
            .sidebar-item.flex.items-center.space-x-3 > * {
                margin-right: 0.75rem !important;
                margin-bottom: 0 !important;
            }
            
            .sidebar-item.flex.items-center.space-x-3 > *:last-child {
                margin-right: 0 !important;
            }
        }
        
        @media (max-width: 480px) {
            /* Extra small mobile devices */
            .grid-cols-2 {
                grid-template-columns: 1fr !important;
            }
            
            .text-sm {
                font-size: 0.75rem !important;
            }
        }

        
        /* KPI Card Responsive Improvements */
        @media (max-width: 768px) {
            .kpi-number {
                font-size: 2rem;
            }
            
            .kpi-icon-wrapper {
                padding: 12px;
            }
            
            .kpi-card {
                padding: 20px;
            }
            
            .kpi-card:hover {
                transform: translateY(-4px) scale(1.01);
            }
        }
        
        @media (max-width: 480px) {
            .kpi-number {
                font-size: 1.75rem;
            }
            
            .kpi-icon-wrapper {
                padding: 10px;
            }
            
            .kpi-icon-wrapper svg {
                width: 24px;
                height: 24px;
            }
            
            .kpi-card {
                padding: 16px;
            }
        }
        
        /* Enhanced KPI Card Animations */
        @keyframes kpiGlow {
            0%, 100% { box-shadow: 0 0 20px rgba(209, 145, 60, 0.3); }
            50% { box-shadow: 0 0 30px rgba(209, 145, 60, 0.5); }
        }
        
        .kpi-card.animate-glow {
            animation: kpiGlow 2s ease-in-out infinite;
        }
        
        /* Loading State for KPI Cards */
        .kpi-loading {
            background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }
        
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        .sidebar-item {
            transition: all 0.2s ease;
        }
        .sidebar-item:hover {
            background-color: rgba(243, 244, 246, 1);
            transform: translateX(5px);
        }
        .sidebar-item.active {
            background-color: rgba(219, 234, 254, 1);
            border-left: 4px solid #3b82f6;
            color: #1d4ed8;
        }
        
        .appointment-tab {
            transition: all 0.2s ease;
        }
        
        .appointment-tab.active {
            background-color: #8b5cf6 !important;
            color: white !important;
        }
        
        .appointment-tab:not(.active) {
            background-color: #e5e7eb;
            color: #374151;
        }
        
        .appointment-tab:not(.active):hover {
            background-color: #d1d5db;
        }
        .page-section {
            animation: fadeIn 0.3s ease-in-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }