/* ComfyUI Mobile Interface Styles */ :root { --primary-color: #2196F3; --primary-dark: #1976D2; --secondary-color: #757575; --success-color: #4CAF50; --warning-color: #FF9800; --error-color: #F44336; --background-color: #fafafa; --surface-color: #ffffff; --text-primary: #212121; --text-secondary: #757575; --border-color: #e0e0e0; --shadow: 0 2px 4px rgba(0,0,0,0.1); --shadow-elevated: 0 4px 8px rgba(0,0,0,0.15); --border-radius: 8px; --spacing-xs: 4px; --spacing-sm: 8px; --spacing-md: 16px; --spacing-lg: 24px; --spacing-xl: 32px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background-color: var(--background-color); color: var(--text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; } /* Header */ .header { background: var(--surface-color); border-bottom: 1px solid var(--border-color); padding: var(--spacing-md); display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); z-index: 100; } .header h1 { font-size: 1.25rem; font-weight: 600; color: var(--primary-color); } .header-actions { display: flex; gap: var(--spacing-sm); align-items: center; } /* Status Bar */ .status-bar { background: var(--surface-color); border-bottom: 1px solid var(--border-color); padding: var(--spacing-sm) var(--spacing-md); display: flex; gap: var(--spacing-lg); font-size: 0.875rem; } .status-item { display: flex; gap: var(--spacing-xs); } .status-label { color: var(--text-secondary); } .status-value { font-weight: 500; } /* Workflow Container */ .workflow-container { flex: 1; overflow-y: auto; padding: var(--spacing-md); } .workflow-pipeline { display: flex; flex-direction: column; gap: var(--spacing-md); } .loading-message { text-align: center; padding: var(--spacing-xl); color: var(--text-secondary); } .loading-message i { font-size: 1.5rem; margin-bottom: var(--spacing-sm); display: block; } /* Node Card */ .node-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); transition: all 0.2s ease; position: relative; overflow: hidden; } .node-card:hover { box-shadow: var(--shadow-elevated); } .node-card.expanded { border-color: var(--primary-color); } .node-card.connecting { background: rgba(33, 150, 243, 0.05); border-color: var(--primary-color); } .node-card-header { padding: var(--spacing-md); display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; } .node-info { flex: 1; } .node-title { font-weight: 600; font-size: 1rem; margin-bottom: var(--spacing-xs); } .node-subtitle { font-size: 0.875rem; color: var(--text-secondary); } .node-status { display: inline-block; padding: var(--spacing-xs) var(--spacing-sm); border-radius: 12px; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; } .node-status.idle { background: #f5f5f5; color: var(--text-secondary); } .node-status.executing { background: #e3f2fd; color: var(--primary-color); } .node-status.error { background: #ffebee; color: var(--error-color); } .node-status.bypassed { background: #fff3e0; color: var(--warning-color); } .node-actions { display: flex; gap: var(--spacing-xs); } .node-card-body { border-top: 1px solid var(--border-color); padding: var(--spacing-md); display: none; } .node-card.expanded .node-card-body { display: block; } .node-sockets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); margin-bottom: var(--spacing-md); } .socket-group h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: var(--spacing-sm); color: var(--text-secondary); } .socket-list { display: flex; flex-direction: column; gap: var(--spacing-xs); } .socket { padding: var(--spacing-sm); background: var(--background-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); font-size: 0.875rem; cursor: pointer; transition: all 0.2s ease; display: flex; justify-content: space-between; align-items: center; } .socket:hover { background: #f0f0f0; border-color: var(--primary-color); } .socket.compatible { background: rgba(76, 175, 80, 0.1); border-color: var(--success-color); color: var(--success-color); } .socket.incompatible { background: rgba(244, 67, 54, 0.1); border-color: var(--error-color); color: var(--error-color); cursor: not-allowed; opacity: 0.6; } .socket.connected { background: rgba(33, 150, 243, 0.1); border-color: var(--primary-color); } .socket-name { font-weight: 500; } .socket-type { font-size: 0.75rem; color: var(--text-secondary); background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 4px; } .connection-reference { padding: var(--spacing-sm); background: rgba(33, 150, 243, 0.05); border: 1px solid rgba(33, 150, 243, 0.2); border-radius: var(--border-radius); font-size: 0.875rem; cursor: pointer; transition: all 0.2s ease; } .connection-reference:hover { background: rgba(33, 150, 243, 0.1); } .node-widgets { display: flex; flex-direction: column; gap: var(--spacing-sm); } .widget { display: flex; justify-content: space-between; align-items: center; padding: var(--spacing-sm); background: var(--background-color); border-radius: var(--border-radius); border: 1px solid var(--border-color); } .widget-label { font-weight: 500; font-size: 0.875rem; } .widget-value { font-size: 0.875rem; color: var(--text-secondary); } /* Buttons */ .btn-primary, .btn-secondary, .btn-icon, .btn-close { border: none; border-radius: var(--border-radius); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-xs); text-decoration: none; user-select: none; } .btn-primary { background: var(--primary-color); color: white; padding: var(--spacing-sm) var(--spacing-md); box-shadow: var(--shadow); } .btn-primary:hover:not(:disabled) { background: var(--primary-dark); box-shadow: var(--shadow-elevated); } .btn-primary:disabled { background: var(--secondary-color); cursor: not-allowed; opacity: 0.6; } .btn-secondary { background: var(--surface-color); color: var(--text-primary); border: 1px solid var(--border-color); padding: var(--spacing-sm) var(--spacing-md); } .btn-secondary:hover { background: var(--background-color); border-color: var(--primary-color); } .btn-icon { background: transparent; color: var(--text-secondary); padding: var(--spacing-sm); width: 40px; height: 40px; } .btn-icon:hover { background: var(--background-color); color: var(--primary-color); } .btn-close { background: transparent; color: var(--text-secondary); padding: var(--spacing-xs); width: 32px; height: 32px; } .btn-close:hover { background: rgba(244, 67, 54, 0.1); color: var(--error-color); } /* Action Bar */ .action-bar { background: var(--surface-color); border-top: 1px solid var(--border-color); padding: var(--spacing-md); display: flex; gap: var(--spacing-sm); box-shadow: 0 -2px 4px rgba(0,0,0,0.1); } .action-bar .btn-secondary { flex: 1; } /* Modal */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); } .modal.active { display: flex; } .modal-content { background: var(--surface-color); border-radius: var(--border-radius); box-shadow: var(--shadow-elevated); width: 90%; max-width: 480px; max-height: 80%; display: flex; flex-direction: column; } .modal-header { padding: var(--spacing-lg); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .modal-header h2 { font-size: 1.25rem; font-weight: 600; } .modal-body { padding: var(--spacing-lg); flex: 1; overflow-y: auto; } .modal-footer { padding: var(--spacing-lg); border-top: 1px solid var(--border-color); display: flex; gap: var(--spacing-sm); justify-content: flex-end; } /* Bottom Sheet */ .bottom-sheet { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--surface-color); border-radius: var(--border-radius) var(--border-radius) 0 0; box-shadow: 0 -4px 8px rgba(0,0,0,0.15); transform: translateY(100%); transition: transform 0.3s ease; z-index: 1000; } .bottom-sheet.active { transform: translateY(0); } .bottom-sheet-content { max-height: 60vh; display: flex; flex-direction: column; } .bottom-sheet-header { padding: var(--spacing-lg); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .bottom-sheet-header h3 { font-size: 1.125rem; font-weight: 600; } .bottom-sheet-body { padding: var(--spacing-lg); display: flex; flex-direction: column; gap: var(--spacing-sm); } .bottom-sheet-action { padding: var(--spacing-md); background: transparent; border: 1px solid var(--border-color); border-radius: var(--border-radius); text-align: left; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: var(--spacing-md); font-size: 1rem; } .bottom-sheet-action:hover { background: var(--background-color); border-color: var(--primary-color); } .bottom-sheet-action i { width: 20px; text-align: center; color: var(--text-secondary); } /* Connection Overlay */ .connection-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(33, 150, 243, 0.1); display: none; align-items: center; justify-content: center; z-index: 500; backdrop-filter: blur(2px); } .connection-overlay.active { display: flex; } .connection-message { background: var(--surface-color); padding: var(--spacing-xl); border-radius: var(--border-radius); box-shadow: var(--shadow-elevated); text-align: center; border: 2px solid var(--primary-color); } .connection-message i { font-size: 2rem; color: var(--primary-color); margin-bottom: var(--spacing-md); } .connection-message p { margin-bottom: var(--spacing-lg); font-size: 1.125rem; color: var(--text-primary); } /* Form Elements */ .form-group { margin-bottom: var(--spacing-md); } .form-label { display: block; margin-bottom: var(--spacing-xs); font-weight: 500; font-size: 0.875rem; color: var(--text-primary); } .form-input, .form-select, .form-textarea { width: 100%; padding: var(--spacing-sm) var(--spacing-md); border: 1px solid var(--border-color); border-radius: var(--border-radius); font-size: 1rem; background: var(--surface-color); transition: border-color 0.2s ease; } .form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2); } .form-range { width: 100%; height: 6px; background: var(--border-color); border-radius: 3px; outline: none; appearance: none; } .form-range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; background: var(--primary-color); border-radius: 50%; cursor: pointer; } .form-range::-moz-range-thumb { width: 20px; height: 20px; background: var(--primary-color); border-radius: 50%; cursor: pointer; border: none; } /* Responsive Design */ @media (max-width: 768px) { .header { padding: var(--spacing-sm) var(--spacing-md); } .header h1 { font-size: 1.125rem; } .workflow-container { padding: var(--spacing-sm); } .node-sockets { grid-template-columns: 1fr; } .modal-content { width: 95%; margin: var(--spacing-md); } .action-bar { padding: var(--spacing-sm); gap: var(--spacing-xs); } } /* Touch-friendly sizing */ @media (pointer: coarse) { .socket, .btn-secondary, .btn-primary { min-height: 44px; } .node-card-header { min-height: 60px; } .bottom-sheet-action { min-height: 56px; } } /* Dark mode support */ @media (prefers-color-scheme: dark) { :root { --background-color: #121212; --surface-color: #1e1e1e; --text-primary: #ffffff; --text-secondary: #b0b0b0; --border-color: #333333; } } /* Animation utilities */ .fade-in { animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .slide-up { animation: slideUp 0.3s ease-out; } @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }