@import "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap";:root{--bg-color:#f1f5f9;--bg-surface:#fff;--bg-surface-hover:#f8fafc;--primary:#10b981;--primary-hover:#059669;--secondary:#0d9488;--text-main:#1e293b;--text-muted:#64748b;--success:#10b981;--danger:#ef4444;--warning:#f59e0b;--border:#e2e8f0;--shadow:0 4px 6px -1px #0000000d, 0 2px 4px -1px #00000008;--shadow-lg:0 10px 15px -3px #0000000d, 0 4px 6px -2px #00000006;--radius:12px;--radius-lg:16px}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-color);color:var(--text-main);min-height:100vh;font-family:Outfit,sans-serif;overflow-x:hidden}.glass{background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:var(--radius)}h1,h2,h3,h4,h5,h6{letter-spacing:-.02em;font-weight:600}input,select,textarea{border:1px solid var(--border);width:100%;color:var(--text-main);background:#fff;border-radius:8px;padding:12px 16px;font-family:inherit;font-size:.95rem;transition:all .3s}input:focus,select:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 2px #6366f133}button{cursor:pointer;border:none;font-family:inherit;font-weight:500;transition:all .3s}.btn-primary{background:linear-gradient(135deg, var(--primary), var(--secondary));color:#fff;border-radius:8px;padding:12px 24px;box-shadow:0 4px 15px #6366f14d}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.btn-outline{border:1px solid var(--border);color:var(--text-main);background:0 0;border-radius:8px;padding:12px 24px}.btn-outline:hover{background:var(--bg-surface-hover)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:.4s forwards fadeIn}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-color)}::-webkit-scrollbar-thumb{background:var(--bg-surface-hover);border-radius:4px}.login-container{justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-box{text-align:center;width:100%;max-width:420px;padding:40px}.login-header{margin-bottom:30px}.logo-icon{width:64px;height:64px;color:var(--primary);background:linear-gradient(135deg,#6366f133,#ec489933);border-radius:20px;justify-content:center;align-items:center;margin-bottom:20px;display:inline-flex}.subtitle{color:var(--text-muted);margin-top:8px;font-size:.95rem}.login-form{text-align:left;flex-direction:column;gap:20px;display:flex}.form-group label{color:var(--text-muted);margin-bottom:8px;font-size:.9rem;display:block}.w-full{width:100%;margin-top:10px}.dashboard-layout{height:100vh;display:flex;overflow:hidden}.sidebar{border-top:none;border-bottom:none;border-left:none;border-radius:0;flex-direction:column;width:280px;display:flex}.sidebar-header{border-bottom:1px solid var(--border);padding:24px}.sidebar-header h2{color:var(--primary);margin-bottom:4px;font-size:1.5rem}.tenant-badge{color:var(--secondary);background:#ec489933;border-radius:12px;padding:2px 8px;font-size:.75rem}.sidebar-nav{flex-direction:column;flex:1;gap:8px;padding:20px 0;display:flex}.nav-item{color:var(--text-muted);border-right:3px solid #0000;align-items:center;gap:12px;padding:12px 24px;text-decoration:none;transition:all .2s;display:flex}.nav-item:hover{background:var(--bg-surface-hover);color:var(--text-main)}.nav-item.active{color:var(--primary);border-right-color:var(--primary);background:#0000000d}.sidebar-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;padding:20px;display:flex}.user-info{align-items:center;gap:12px;display:flex}.user-avatar{background:linear-gradient(135deg, var(--primary), var(--secondary));border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-weight:700;display:flex}.user-details{flex-direction:column;display:flex}.user-name{font-size:.9rem;font-weight:500}.user-role{color:var(--text-muted);text-transform:capitalize;font-size:.75rem}.logout-btn{color:var(--text-muted);background:0 0;padding:8px}.logout-btn:hover{color:var(--danger)}.main-content{background:#0f172a4d;flex:1;padding:24px;overflow-y:auto}.pos-container{gap:24px;height:100%;display:flex}.products-section{flex-direction:column;flex:1;gap:20px;display:flex}.pos-header h2{font-size:1.5rem}.search-bar,.barcode-scanner{border-radius:20px;align-items:center;width:300px;padding:10px 16px;display:flex}.barcode-scanner{border-color:var(--border);box-shadow:var(--shadow);background:#fff}.barcode-scanner input{color:var(--text-main);font-weight:500}.barcode-scanner input::placeholder{color:var(--text-muted);font-weight:400}.search-icon{color:var(--text-muted);margin-right:12px}.search-bar input,.barcode-scanner input{color:var(--text-light);background:0 0;border:none;outline:none;width:100%;font-size:.95rem}.categories-bar{gap:12px;margin-bottom:20px;padding-bottom:8px;display:flex;overflow-x:auto}.categories-bar::-webkit-scrollbar{height:4px}.categories-bar::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}.categories-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px;padding-right:8px;display:grid}.category-card{cursor:pointer;aspect-ratio:1;border-radius:16px;flex-direction:column;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;overflow:hidden}.category-card:hover{box-shadow:var(--shadow-lg);border-color:var(--primary);transform:translateY(-4px)}.category-card:active{transform:translateY(0)}.category-image-placeholder{background:#00000008;border-bottom:1px solid #0000000d;flex:1;justify-content:center;align-items:center;display:flex}.category-image-placeholder h3{margin:0;font-size:3rem}.category-title{text-align:center;padding:16px}.category-title h3{margin:0;font-size:1.1rem;font-weight:600}.products-view{flex-direction:column;display:flex}.products-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;padding-right:8px;display:grid;overflow-y:auto}.product-card{cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden}.product-card:hover{box-shadow:var(--shadow-lg);border-color:var(--primary);transform:translateY(-4px)}.product-image-placeholder{height:140px;color:var(--text-muted);background:#fffc;justify-content:center;align-items:center;display:flex}.product-details{flex-direction:column;gap:8px;padding:16px;display:flex}.product-details h3{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:1.05rem;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.price-row{justify-content:space-between;align-items:center;margin-top:auto;display:flex}.product-price,.price{color:var(--primary);margin:0;font-size:1.1rem;font-weight:700}.stock-badge{border-radius:12px;padding:2px 8px;font-size:.75rem}.stock-badge.in-stock{color:var(--success);background:#10b98133}.stock-badge.low-stock{color:var(--danger);background:#ef444433}.cart-section{flex-direction:column;width:380px;display:flex}.cart-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:20px;display:flex}.cart-header h2{font-size:1.25rem}.item-count{background:var(--primary);color:#fff;border-radius:12px;padding:2px 10px;font-size:.8rem;font-weight:600}.cart-items{flex-direction:column;flex:1;gap:16px;padding:20px;display:flex;overflow-y:auto}.cart-item{border-bottom:1px dashed var(--border);justify-content:space-between;align-items:center;padding-bottom:16px;display:flex}.item-info h4{margin-bottom:4px;font-size:.95rem}.item-price{color:var(--text-muted);font-size:.9rem}.item-controls{align-items:center;gap:12px;display:flex}.qty-display{text-align:center;width:32px;color:var(--text-main);background:#f1f5f9;border-radius:4px;padding:4px;font-weight:600}.qty-btn,.remove-btn{color:var(--text-main);background:#f1f5f9;border-radius:6px;justify-content:center;align-items:center;padding:6px;display:flex}.qty-btn:hover{background:#e2e8f0}.remove-btn:hover{background:var(--danger);color:#fff}.cart-footer{border-top:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius);background:#fff;padding:20px}.summary-row{justify-content:space-between;margin-bottom:16px;display:flex}.summary-row.total{color:#fff;font-size:1.25rem;font-weight:700}.checkout-btn{justify-content:center;align-items:center;gap:8px;padding:16px;font-size:1.1rem;display:flex}.checkout-btn:disabled{color:var(--text-muted);cursor:not-allowed;box-shadow:none;background:#e2e8f0;transform:none}@media (width<=1024px){.pos-container{flex-direction:column;height:auto}.products-section{flex:none;height:auto}.cart-section{border-radius:var(--radius);width:100%;box-shadow:var(--shadow);margin-top:20px}.products-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;padding-right:0;overflow-y:visible}.categories-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;padding-right:0}.product-image-placeholder,.category-image-placeholder{height:100px}.category-image-placeholder h3{font-size:2rem}.product-details{gap:4px;padding:10px}.product-details h3{font-size:.95rem}}@media (width<=768px){.pos-header{flex-direction:column;align-items:stretch;gap:12px}.pos-header h2{display:none}.search-bar,.barcode-scanner{width:100%}.products-grid,.categories-grid{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:10px}.product-image-placeholder,.category-image-placeholder{height:80px}.product-details h3,.category-title h3{font-size:.85rem}.product-price,.price{font-size:.95rem}.cart-item{flex-direction:column;align-items:flex-start;gap:10px}.item-controls{justify-content:space-between;width:100%}}.inventory-container{flex-direction:column;gap:24px;height:100%;display:flex}.inventory-header{justify-content:space-between;align-items:center;display:flex}.inventory-header h2{font-size:1.5rem}.inventory-header .btn-primary{align-items:center;gap:8px;display:flex}.table-container{flex:1;padding:0;overflow:auto}.inventory-table{border-collapse:collapse;text-align:left;width:100%}.inventory-table th{color:var(--text-muted);border-bottom:1px solid var(--border);background:#f8fafc;padding:16px 24px;font-weight:500;position:sticky;top:0}.inventory-table td{border-bottom:1px solid #0000000d;padding:16px 24px}.inventory-table tbody tr:hover{background:#00000005}.price-col{color:var(--primary);font-weight:600}.action-buttons{gap:8px;display:flex}.icon-btn{color:var(--text-muted);background:0 0;border-radius:6px;padding:8px}.icon-btn.edit:hover{color:var(--primary);background:#6366f11a}.icon-btn.delete:hover{color:var(--danger);background:#ef44441a}.empty-state{text-align:center;color:var(--text-muted);padding:40px!important}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#0000004d;justify-content:center;align-items:center;width:100vw;height:100vh;display:flex;position:fixed;top:0;left:0}.modal{width:100%;max-width:500px;padding:32px}.modal h3{margin-bottom:24px;font-size:1.25rem}.modal-form{flex-direction:column;gap:16px;display:flex}.form-row{gap:16px;display:flex}.form-row .form-group{flex:1}.modal-actions{justify-content:flex-end;gap:12px;margin-top:16px;display:flex}.sales-container{flex-direction:column;gap:24px;height:100%;display:flex}.sales-header{justify-content:space-between;align-items:center;display:flex}.title-section{align-items:center;gap:12px;display:flex}.header-icon{color:var(--primary)}.sales-header h2{font-size:1.5rem}.filters-bar{background:var(--bg-surface);border-radius:var(--radius);border:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:24px;padding:16px;display:flex}.filter-group{align-items:center;gap:8px;display:flex}.filter-group label{color:var(--text-muted);font-size:.9rem;font-weight:500}.filter-group input[type=date],.filter-group select{border:1px solid var(--border);color:var(--text-main);background:#fff;border-radius:8px;outline:none;padding:8px 12px;font-family:inherit}.filter-actions{gap:8px;margin-left:auto;display:flex}.pagination{background:var(--bg-surface);border-top:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.pagination-controls{align-items:center;gap:12px;display:flex}.page-info{color:var(--text-muted);font-size:.9rem}.sales-table{border-collapse:collapse;text-align:left;width:100%}.sales-table th{color:var(--text-muted);border-bottom:1px solid var(--border);background:#f8fafc;padding:16px 24px;font-weight:500;position:sticky;top:0}.sales-table td{border-bottom:1px solid #0000000d;padding:16px 24px}.sales-table tbody tr:hover{background:#00000005}.status-badge{text-transform:capitalize;border-radius:12px;padding:4px 10px;font-size:.75rem;font-weight:600}.status-badge.completed{color:var(--success);background:#10b98133}.status-badge.pending{color:var(--warning);background:#f59e0b33}.status-badge.cancelled{color:var(--danger);background:#ef444433}
