:root { --primary-color: #28b485; --primary-light: #60d394; --primary-dark: #1e9e6d; --secondary-color: #f4a261; --bg-color: #f8f9fa; --surface-color: #ffffff; --text-color: #343a40; --light-text-color: #6c757d; --white-color: #fff; --danger-color: #e76f51; --border-color: #dee2e6; --shadow: 0 4px 12px rgba(0, 0, 0, 0.08); --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1); --border-radius: 12px; --warning-color: #ff9800; } * { box-sizing: border-box; } body { margin: 0; font-family: 'Poppins', sans-serif; background-color: var(--bg-color); color: var(--text-color); min-height: 100vh; display: flex; flex-direction: column; font-weight: 400; } header { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: var(--surface-color); box-shadow: var(--shadow); flex-shrink: 0; z-index: 100; } header .logo-title { display: flex; align-items: center; gap: 15px; } .logo-placeholder { height: 50px; width: 50px; background: linear-gradient(45deg, #28b485, #60d394); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; } header h1 { color: var(--primary-color); font-size: 1.8rem; font-weight: 600; margin: 0; } header .header-actions { display: flex; flex-wrap: wrap; gap: 10px; } main { flex: 1; display: flex; overflow: hidden; } aside { width: 240px; background: var(--surface-color); padding: 20px; flex-shrink: 0; border-right: 1px solid var(--border-color); overflow-y: auto; } .btn.icon-only { padding: 10px; border-radius: 50%; width: 42px; height: 42px; justify-content: center; } .btn.icon-only svg { width: 20px; height: 20px; } .products { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; padding: 25px; overflow-y: auto; align-content: flex-start; } .product { background: var(--surface-color); border-radius: var(--border-radius); box-shadow: var(--shadow); transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; position: relative; } .product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } .product img { width: 100%; height: 160px; object-fit: cover; background-color: #e9ecef; } .product-info { padding: 15px; flex-grow: 1; } .product h3 { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: 600; } .product p { margin: 0; color: var(--light-text-color); font-size: 0.9rem; } .product .buttons { padding: 0 15px 15px 15px; display: flex; gap: 10px; flex-wrap: wrap; } .cart { width: 380px; background: var(--surface-color); padding: 20px; border-left: 1px solid var(--border-color); display: flex; flex-direction: column; flex-shrink: 0; } .cart h2 { text-align: center; margin-top: 0; font-weight: 600; color: var(--primary-dark); border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 10px; } .cart-items-container { flex-grow: 1; overflow-y: auto; padding-right: 10px; } .cart-item { padding: 10px; margin-bottom: 10px; border-radius: 8px; border: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; } .cart-item-details { display: flex; flex-direction: column; } .cart-item-name { font-weight: 500;} .cart-item-subtotal { font-size: 0.8rem; color: var(--light-text-color); } .cart-item-actions button { background: none; border: 1px solid var(--border-color); border-radius: 5px; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; } .cart-footer { padding-top: 15px; border-top: 1px solid var(--border-color); } .total, .payment-section label { font-size: 1.3rem; font-weight: 600; color: var(--primary-dark); } /* Buttons and Inputs */ .btn { padding: 10px 18px; border-radius: 8px; border: none; font-weight: 500; font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; } .btn-primary { background-color: var(--primary-color); color: var(--white-color); } .btn-primary:hover { background-color: var(--primary-dark); } .btn-secondary { background-color: var(--secondary-color); color: var(--white-color); } .btn-secondary:hover { background-color: #d18241; } .btn-danger { background-color: var(--danger-color); color: var(--white-color); } .btn-danger:hover { background-color: #c95433; } .btn-outline { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-color); } .btn-outline:hover { background-color: var(--bg-color); border-color: var(--primary-color); } .btn.active { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); } .btn-full { width: 100%; justify-content: center; } .btn-sm { padding: 8px 12px; font-size: 0.8rem; } .btn svg { width: 16px; height: 16px; } input[type="number"], input[type="password"], input[type="text"], input[type="date"] { font-size: 1rem; width: 100%; border-radius: 8px; padding: 8px 12px; border: 1px solid var(--border-color); transition: border-color 0.2s ease; font-family: 'Poppins', sans-serif; } input:focus { outline: none; border-color: var(--primary-color); } /* Panel Styles */ .panel { padding: 30px 40px; background: var(--bg-color); height: calc(100vh - 78px); overflow-y: auto; width: 100%; } .panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); } .panel-header h2 { margin: 0; font-weight: 600; } .card { background: var(--surface-color); padding: 25px; margin-bottom: 25px; border-radius: var(--border-radius); box-shadow: var(--shadow); } .card h3 { margin-top: 0; color: var(--primary-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; font-weight: 600; } .grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; font-weight: 500; } .inventory-item label { font-weight: 500; margin-bottom: 8px; display: block; } .inventory-item span { font-size: 0.9rem; color: var(--light-text-color); display: block; margin-top: 8px; } .sale-record, .expense-record { background: var(--surface-color); padding: 15px; margin-bottom: 15px; border-left: 5px solid var(--primary-light); border-radius: 8px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; } .expense-record { border-left-color: var(--secondary-color); } /* Modal Styles */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1000; justify-content: center; align-items: center; } .modal-content { background: white; padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .modal-header h3 { margin: 0; color: var(--primary-dark); } .close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--light-text-color); } /* Log Styles */ .log-item { background-color: #f8f9fa; border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; } .log-item strong { display: block; margin-bottom: 5px; color: var(--primary-dark); } .log-item ul { margin: 0; padding-left: 20px; } .log-actions { display: flex; gap: 10px; } /* Date filter */ .date-filter { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; } .date-filter label { font-weight: 500; } .date-filter input, .date-filter select { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Poppins', sans-serif; } .date-filter button { padding: 8px 16px; } /* Manager mode indicator */ .manager-indicator { background: var(--danger-color); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; margin-left: 10px; } /* Notification */ .notification { position: fixed; top: 20px; right: 20px; padding: 15px 20px; border-radius: 8px; color: white; background: var(--primary-color); box-shadow: var(--shadow-lg); z-index: 2000; transform: translateX(150%); transition: transform 0.3s ease; } .notification.show { transform: translateX(0); } .notification.error { background: var(--danger-color); } .notification.warning { background: var(--warning-color); } /* Reports Panel Specifics */ .reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; } .report-card { background: var(--surface-color); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--shadow); } .report-card h3 { margin-top: 0; color: var(--primary-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; font-weight: 600; } .top-product-list { list-style: none; padding: 0; } .top-product-list li { margin-bottom: 8px; font-size: 1rem; } .top-product-list span { font-weight: 600; color: var(--primary-dark); } .category-legend ul { list-style: none; padding: 0; } .category-legend li { display: flex; align-items: center; margin-bottom: 8px; } .legend-color-box { width: 16px; height: 16px; margin-right: 10px; border-radius: 4px; } /* Profit Summary */ .profit-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; } .profit-item { background: var(--surface-color); padding: 20px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow); } .profit-item h3 { margin-top: 0; color: var(--light-text-color); font-size: 1rem; } .profit-item p { font-size: 1.5rem; font-weight: 700; margin: 10px 0 0; } .positive { color: var(--primary-color); } .negative { color: var(--danger-color); } /* --- Touchscreen Optimizations & Virtual Keypad --- */ .touch-optimized .btn { padding: 15px 24px; font-size: 1.1rem; } .touch-optimized .product { min-width: 280px; /* Larger product cards */ } .touch-optimized input, .touch-optimized .cart-item, .touch-optimized aside .btn { padding-top: 15px; padding-bottom: 15px; font-size: 1.1rem; } /* Virtual Keypad Styles */ .keypad-content { background: var(--surface-color); padding: 20px; border-radius: var(--border-radius); width: 90%; max-width: 360px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 15px; } .keypad-display { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; text-align: right; font-size: 1.8rem; font-weight: 600; min-height: 60px; overflow-x: auto; } .keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .keypad-btn { padding: 20px; font-size: 1.5rem; font-weight: 500; border-radius: 8px; border: 1px solid var(--border-color); background: var(--surface-color); cursor: pointer; transition: background-color 0.2s; } .keypad-btn:active { background-color: var(--bg-color); } .keypad-btn-util { background-color: #e9ecef; } .keypad-btn-ok { grid-column: span 3; background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); } .keypad-btn-ok:active { background-color: var(--primary-dark); } @media (max-width: 992px) { .reports-grid { grid-template-columns: 1fr; } } @media (max-width: 768px) { main { flex-direction: column; } aside { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); overflow-y: visible; } .cart { width: 100%; border-left: none; } header .header-actions { justify-content: flex-end; } header h1 { font-size: 1.4rem; } .online-btn { border: none; background: none; cursor: pointer; padding: 6px; transition: transform 0.2s ease, box-shadow 0.2s ease; } .online-btn:hover { transform: scale(1.1); box-shadow: 0 0 8px rgba(0,0,0,0.2); } .online-btn.selected { border: 2px solid #28b485; border-radius: 8px; } } /* Add this to the existing styles */ #categoryPieChart { width: 100% !important; height: 100% !important; display: block; } .legend-item { padding: 8px; border-radius: 8px; background-color: #f8f9fa; margin-bottom: 10px; } @media (max-width: 768px) { .report-card { min-width: 100%; } #categoryPieChart { max-height: 250px; } } .chart-container { position: relative; height: 300px; width: 100%; } .doughnut-center-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-weight: bold; } .doughnut-total { font-size: 1.5rem; color: var(--primary-dark); } .doughnut-label { font-size: 0.9rem; color: var(--light-text-color); } /* Improved top products list */ .top-product-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); } .product-rank { width: 24px; height: 24px; background-color: var(--primary-light); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 10px; } .top-product-details { flex-grow: 1; } .product-sales-count { font-weight: 600; color: var(--primary-dark); }