/* Reset and Base Styles */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #333; background-color: #f5f5f5; } /* Touch-friendly tap targets */ button, a, input, select, textarea { min-height: 44px; min-width: 44px; } /* Login Page */ .login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .login-container { width: 100%; max-width: 400px; padding: 20px; } .login-card { background: white; border-radius: 8px; padding: 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); } .login-card h1 { font-size: 28px; margin-bottom: 10px; text-align: center; color: #667eea; } .login-card h2 { font-size: 20px; margin-bottom: 30px; text-align: center; color: #666; } .login-footer { margin-top: 30px; text-align: center; font-size: 14px; color: #999; } /* Forms */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; } .form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="number"], .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #ddd; border-radius: 4px; font-size: 16px; transition: border-color 0.3s; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #667eea; } .form-group small { display: block; margin-top: 5px; font-size: 13px; color: #666; } .checkbox-label { display: flex; align-items: center; cursor: pointer; font-weight: normal; } .checkbox-label input[type="checkbox"] { margin-right: 10px; width: 20px; height: 20px; min-width: 20px; min-height: 20px; } /* Buttons */ .btn { display: inline-block; padding: 12px 24px; font-size: 16px; font-weight: 600; text-align: center; text-decoration: none; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s; min-height: 48px; } .btn-primary { background-color: #667eea; color: white; } .btn-primary:hover { background-color: #5568d3; } .btn-secondary { background-color: #6c757d; color: white; } .btn-secondary:hover { background-color: #5a6268; } .btn-success { background-color: #28a745; color: white; } .btn-success:hover { background-color: #218838; } .btn-danger { background-color: #dc3545; color: white; } .btn-danger:hover { background-color: #c82333; } .btn-block { display: block; width: 100%; } .btn-large { padding: 16px 32px; font-size: 18px; } .btn:disabled { opacity: 0.6; cursor: not-allowed; } /* Alerts */ .alert { padding: 16px; border-radius: 4px; margin-bottom: 20px; } .alert-success { background-color: #d4edda; border: 1px solid #c3e6cb; color: #155724; } .alert-error { background-color: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; } .alert-info { background-color: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; } /* Header */ .main-header { background-color: #fff; border-bottom: 2px solid #e0e0e0; padding: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .header-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; } .header-content h1 { font-size: 28px; color: #333; } .header-actions { display: flex; gap: 10px; } /* Connection Status Bar */ .connection-status-bar { display: flex; gap: 20px; align-items: center; padding: 8px 0; } .connection-status-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background-color: #f8f9fa; border-radius: 6px; border: 1px solid #e0e0e0; transition: all 0.3s ease; cursor: help; min-height: auto; } .connection-status-item:hover { background-color: #e9ecef; } .status-indicator { width: 10px; height: 10px; border-radius: 50%; display: inline-block; position: relative; transition: all 0.3s ease; } /* Status indicator animations and colors */ .status-indicator.status-online { background-color: #28a745; box-shadow: 0 0 8px rgba(40, 167, 69, 0.6); } .status-indicator.status-offline { background-color: #dc3545; box-shadow: 0 0 8px rgba(220, 53, 69, 0.6); } .status-indicator.status-checking { background-color: #ffc107; box-shadow: 0 0 8px rgba(255, 193, 7, 0.6); animation: pulse 1.5s infinite; } .status-indicator.status-unconfigured { background-color: #6c757d; box-shadow: 0 0 8px rgba(108, 117, 125, 0.4); } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .status-text { font-size: 13px; font-weight: 600; color: #333; } .status-label { font-size: 11px; color: #666; text-transform: uppercase; font-weight: 500; } /* Responsive adjustments */ @media (max-width: 768px) { .connection-status-bar { width: 100%; order: 3; justify-content: center; } .header-content h1 { order: 1; } .header-actions { order: 2; } } /* Stats Bar */ .stats-bar { background-color: #fff; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1400px; margin: 20px auto; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .stat-card { padding: 20px; text-align: center; border-radius: 8px; background-color: #f8f9fa; border: 2px solid #e0e0e0; } .stat-card.stat-new { background-color: #d4edda; border-color: #28a745; } .stat-card.stat-preparing { background-color: #fff3cd; border-color: #ffc107; } .stat-card.stat-ready { background-color: #d1ecf1; border-color: #17a2b8; } .stat-label { font-size: 14px; color: #666; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; } .stat-value { font-size: 36px; font-weight: bold; color: #333; } /* Dashboard Controls */ .dashboard-controls { max-width: 1400px; margin: 0 auto 20px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; } .filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; } .filter-btn { padding: 12px 24px; border: 2px solid #667eea; background-color: white; color: #667eea; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 16px; transition: all 0.3s; } .filter-btn:hover { background-color: #f0f0f0; } .filter-btn.active { background-color: #667eea; color: white; } /* Sync Button with Integrated Loading State */ .sync-button { position: relative; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: 140px !important; height: 48px !important; min-height: 48px !important; max-height: 48px !important; padding: 0 20px !important; transition: opacity 0.3s ease, background-color 0.3s ease !important; white-space: nowrap; overflow: hidden; box-sizing: border-box; } .sync-spinner { display: none; width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, 0.3); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; margin: 0; } .sync-button.loading .sync-spinner { display: block; } .sync-button.loading { opacity: 0.8; cursor: not-allowed; pointer-events: none; } .sync-text { display: inline-block; line-height: 1; transition: opacity 0.3s ease; flex-shrink: 0; font-size: 16px; } .sync-button.loading .sync-text { opacity: 0.9; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Legacy refresh indicator - kept for backward compatibility */ .refresh-indicator { display: none; align-items: center; gap: 10px; color: #666; font-size: 14px; } .refresh-indicator.visible { display: flex; } .spinner { width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; } /* Orders Container */ .orders-container { max-width: 1400px; margin: 0 auto; padding: 0 20px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; } .loading { grid-column: 1 / -1; text-align: center; padding: 60px; font-size: 18px; color: #666; } .no-orders { grid-column: 1 / -1; text-align: center; padding: 60px; font-size: 18px; color: #999; } /* Order Card */ .order-card { background-color: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-left: 5px solid #ccc; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; } .order-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .order-card.status-new { border-left-color: #28a745; } .order-card.status-preparing { border-left-color: #ffc107; } .order-card.status-ready { border-left-color: #17a2b8; } .order-card.status-canceled { border-left-color: #dc3545; opacity: 0.7; } .order-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; } .order-number { font-size: 28px; font-weight: bold; color: #333; } .order-badge { padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; } .order-badge.badge-new { background-color: #28a745; color: white; } .order-badge.badge-preparing { background-color: #ffc107; color: #333; } .order-badge.badge-ready { background-color: #17a2b8; color: white; } .order-info { margin-bottom: 15px; } .order-info-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; } .order-info-label { font-weight: 600; color: #666; } .order-info-value { color: #333; } .order-type-icon { margin-right: 5px; } .order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; } .order-actions .btn { flex: 1; min-width: 100px; padding: 10px; font-size: 14px; } .order-details-toggle { margin-top: 10px; text-align: center; } .order-details-toggle button { background: none; border: none; color: #667eea; cursor: pointer; text-decoration: underline; font-size: 14px; padding: 5px; } /* Settings Page */ .settings-container { max-width: 900px; margin: 20px auto; padding: 0 20px 40px; } .tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 2px solid #e0e0e0; } .tab-btn { padding: 15px 30px; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-size: 16px; font-weight: 600; color: #666; transition: all 0.3s; } .tab-btn:hover { color: #333; } .tab-btn.active { color: #667eea; border-bottom-color: #667eea; } .tab-content { display: none; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .tab-content.active { display: block; } /* Settings Sections */ .settings-section { margin-bottom: 35px; padding-bottom: 25px; border-bottom: 1px solid #e0e0e0; } .settings-section:last-child { border-bottom: none; margin-bottom: 0; } .settings-section h3 { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 8px; } .section-description { font-size: 14px; color: #666; margin-bottom: 20px; line-height: 1.6; } .tab-content h2 { font-size: 24px; margin-bottom: 25px; color: #333; } .tab-content h3 { font-size: 18px; margin: 25px 0 15px; color: #555; } .form-actions { margin-top: 30px; padding-top: 30px; border-top: 2px solid #e0e0e0; text-align: center; } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1000; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; } .modal.visible { display: flex; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-content { background-color: white; padding: 30px; border-radius: 8px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; animation: slideUp 0.3s ease; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); } .modal-large { max-width: 800px; } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .modal-header h2 { margin: 0; } .close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: #999; padding: 0; width: 40px; height: 40px; } .close-btn:hover { color: #333; } .modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; } /* Status Change Confirmation Modal */ .status-modal-content { text-align: center; max-width: 480px; padding: 35px 40px; } .status-modal-icon { width: 80px; height: 80px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 40px; animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); } @keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } } .status-modal-icon.preparing { background: linear-gradient(135deg, #fff3cd, #ffc107); box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4); } .status-modal-icon.ready { background: linear-gradient(135deg, #d1ecf1, #17a2b8); box-shadow: 0 4px 20px rgba(23, 162, 184, 0.4); } .status-modal-icon.completed { background: linear-gradient(135deg, #d4edda, #28a745); box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4); } #statusModalTitle { font-size: 24px; font-weight: 700; color: #333; margin-bottom: 25px; } .status-modal-details { background: #f8f9fa; border-radius: 8px; padding: 20px; margin-bottom: 20px; text-align: left; } .status-modal-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #e0e0e0; } .status-modal-row:last-child { border-bottom: none; } .status-transition-row { padding: 15px 0 8px; justify-content: center; } .status-modal-label { font-weight: 600; color: #666; font-size: 14px; } .status-modal-value { font-weight: 500; color: #333; font-size: 15px; } .status-transition { display: flex; align-items: center; gap: 12px; font-size: 16px; } .status-badge { padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; } .status-badge.badge-new { background-color: #28a745; color: white; } .status-badge.badge-preparing { background-color: #ffc107; color: #333; } .status-badge.badge-ready { background-color: #17a2b8; color: white; } .status-badge.badge-completed { background-color: #6c757d; color: white; } .status-arrow { font-size: 20px; color: #667eea; font-weight: bold; animation: slideRight 1s ease infinite; } @keyframes slideRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } } .status-modal-message { font-size: 15px; color: #666; margin-bottom: 20px; line-height: 1.5; } .status-confirm-btn { min-width: 120px; font-weight: 700; transition: all 0.3s ease; position: relative; overflow: hidden; } .status-confirm-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4); } .status-confirm-btn:active { transform: translateY(0); } /* Toast Notification */ .toast { position: fixed; bottom: 30px; right: 30px; background-color: #333; color: white; padding: 16px 24px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); z-index: 2000; opacity: 0; transform: translateY(20px); transition: all 0.3s; pointer-events: none; } .toast.visible { opacity: 1; transform: translateY(0); pointer-events: auto; } .toast.success { background-color: #28a745; } .toast.error { background-color: #dc3545; } /* Responsive */ @media (max-width: 768px) { .orders-container { grid-template-columns: 1fr; } .stats-bar { grid-template-columns: repeat(2, 1fr); } .header-content { flex-direction: column; align-items: flex-start; gap: 15px; } .dashboard-controls { flex-direction: column; align-items: stretch; } .filter-buttons { justify-content: center; } .tabs { flex-direction: column; } .tab-btn { border-bottom: none; border-left: 3px solid transparent; } .tab-btn.active { border-left-color: #667eea; } } @media (max-width: 480px) { .stats-bar { grid-template-columns: 1fr; } .order-actions { flex-direction: column; } .order-actions .btn { width: 100%; } .status-modal-content { padding: 25px 20px; } .status-modal-icon { width: 70px; height: 70px; font-size: 35px; } #statusModalTitle { font-size: 20px; } .status-transition { flex-direction: column; gap: 8px; } .status-arrow { transform: rotate(90deg); animation: slideDown 1s ease infinite; } @keyframes slideDown { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(5px); } } .modal-actions { flex-direction: column-reverse; } .modal-actions .btn { width: 100%; } } /* Order Details */ .detail-section { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e0e0e0; } .detail-section:last-child { border-bottom: none; } .detail-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #333; } .detail-section p { margin: 5px 0; color: #666; } .detail-section table { font-size: 14px; } .detail-section table th { font-weight: 600; color: #333; } .current-logo { margin-top: 10px; padding: 10px; background-color: #f8f9fa; border-radius: 4px; } .current-logo p { margin: 0; font-size: 14px; color: #666; } /* Printer Management Styles */ .printer-cards-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 20px; margin-top: 20px; } .printer-card { background: white; border: 2px solid #e0e0e0; border-radius: 8px; padding: 20px; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .printer-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-2px); } .printer-card.disabled { opacity: 0.6; background-color: #f5f5f5; } .printer-card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; } .printer-card-header h4 { margin: 0 0 8px 0; font-size: 18px; color: #333; font-weight: 600; } .printer-badges { display: flex; gap: 8px; flex-wrap: wrap; } .printer-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .printer-badge.badge-default { background-color: #667eea; color: white; } .printer-badge.badge-enabled { background-color: #28a745; color: white; } .printer-badge.badge-disabled { background-color: #6c757d; color: white; } .printer-card-body { margin-bottom: 15px; } .printer-info-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; } .printer-info-label { font-weight: 600; color: #666; min-width: 100px; } .printer-info-value { color: #333; text-align: right; word-break: break-word; } .printer-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; } .btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; } .no-printers { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: white; border: 2px dashed #ddd; border-radius: 8px; color: #999; } .no-printers p { margin: 10px 0; font-size: 16px; } /* Printer Modal Styles */ .printer-modal-body { max-height: 70vh; overflow-y: auto; } .printer-modal-tabs { display: flex; gap: 5px; margin-bottom: 25px; border-bottom: 2px solid #e0e0e0; flex-wrap: wrap; } .printer-modal-tab-btn { padding: 12px 20px; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: #666; transition: all 0.3s; } .printer-modal-tab-btn:hover { color: #333; background-color: #f8f9fa; } .printer-modal-tab-btn.active { color: #667eea; border-bottom-color: #667eea; } .printer-modal-tab-content { display: none; } .printer-modal-tab-content.active { display: block; } .detected-printer-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; margin-bottom: 8px; background-color: #f8f9fa; border-radius: 4px; border: 1px solid #e0e0e0; } .detected-printer-item span { flex: 1; font-size: 14px; } /* Responsive adjustments for printer management */ @media (max-width: 768px) { .printer-cards-container { grid-template-columns: 1fr; } .printer-modal-tabs { flex-direction: column; gap: 0; } .printer-modal-tab-btn { border-bottom: none; border-left: 3px solid transparent; text-align: left; } .printer-modal-tab-btn.active { border-left-color: #667eea; } .printer-card-actions { flex-direction: column; } .printer-card-actions .btn { width: 100%; } } /* Kitchen Display - Enhanced Order Cards */ .allergy-warning { display: flex; align-items: start; gap: 12px; background-color: #fff3cd; border: 3px solid #ff6b6b; border-radius: 8px; padding: 15px; margin-bottom: 15px; animation: pulse-border 2s ease-in-out infinite; } @keyframes pulse-border { 0%, 100% { border-color: #ff6b6b; } 50% { border-color: #ff4444; } } .allergy-icon { font-size: 28px; line-height: 1; flex-shrink: 0; } .allergy-content { flex: 1; } .allergy-title { font-size: 16px; font-weight: 700; color: #d32f2f; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; } .allergy-notes { font-size: 15px; font-weight: 600; color: #333; line-height: 1.4; } .order-items-section { background-color: #f8f9fa; border-radius: 6px; padding: 15px; margin-bottom: 15px; } .order-items-title { font-size: 15px; font-weight: 700; color: #333; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #dee2e6; } .order-item { background-color: white; border-radius: 6px; padding: 12px; margin-bottom: 10px; border-left: 4px solid #667eea; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .order-item:last-child { margin-bottom: 0; } .item-qty-name { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; } .item-qty { font-size: 18px; font-weight: 700; color: #667eea; min-width: 40px; } .item-name { font-size: 16px; font-weight: 600; color: #333; line-height: 1.3; } .item-modifier { font-size: 14px; padding: 6px 10px; margin-top: 6px; border-radius: 4px; line-height: 1.3; } .item-addon { background-color: #d4edda; border-left: 3px solid #28a745; color: #155724; font-weight: 600; } .item-exclude { background-color: #f8d7da; border-left: 3px solid #dc3545; color: #721c24; font-weight: 600; } .special-instructions { background-color: #e7f3ff; border-left: 4px solid #2196F3; border-radius: 6px; padding: 12px 15px; margin-bottom: 15px; } .special-instructions-label { font-size: 14px; font-weight: 700; color: #1565c0; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; } .special-instructions-text { font-size: 15px; color: #333; line-height: 1.5; font-weight: 500; } .order-total { display: flex; justify-content: space-between; align-items: center; background-color: #f8f9fa; border-radius: 6px; padding: 12px 15px; margin-top: auto; margin-bottom: 15px; border: 2px solid #e0e0e0; } .order-total-label { font-size: 16px; font-weight: 700; color: #666; text-transform: uppercase; } .order-total-value { font-size: 22px; font-weight: 700; color: #333; } /* Responsive adjustments for kitchen display */ @media (max-width: 480px) { .allergy-warning { padding: 12px; } .allergy-icon { font-size: 24px; } .allergy-title { font-size: 14px; } .allergy-notes { font-size: 14px; } .order-items-section { padding: 12px; } .order-item { padding: 10px; } .item-qty { font-size: 16px; min-width: 35px; } .item-name { font-size: 15px; } .item-modifier { font-size: 13px; padding: 5px 8px; } .special-instructions { padding: 10px 12px; } .special-instructions-text { font-size: 14px; } .order-total-value { font-size: 20px; } }