* { margin: 0; padding: 0; box-sizing: border-box; } :root { /* Dark theme colors */ --bg-primary: #0f0f0f; --bg-secondary: #1a1a1a; --bg-tertiary: #2d2d2d; --text-primary: #ffffff; --text-secondary: #b3b3b3; --text-tertiary: #888888; --accent-primary: #4ade80; --accent-secondary: #22d3ee; --accent-warning: #fbbf24; --accent-error: #f87171; --border-primary: #333333; --border-secondary: #444444; --shadow-primary: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --backdrop-blur: blur(12px); /* LEDLab specific colors */ --matrix-bg: #000000; --pixel-on: #4ade80; --pixel-off: #1a1a1a; --pixel-dim: #22c55e; --control-bg: #1e1e1e; --preset-active: #4ade80; --node-connected: #22c55e; --node-disconnected: #ef4444; } [data-theme="light"] { --bg-primary: #ffffff; --bg-secondary: #f8fafc; --bg-tertiary: #e2e8f0; --text-primary: #1e293b; --text-secondary: #64748b; --text-tertiary: #94a3b8; --accent-primary: #16a34a; --accent-secondary: #0891b2; --accent-warning: #d97706; --accent-error: #dc2626; --border-primary: #e2e8f0; --border-secondary: #cbd5e1; --shadow-primary: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); --backdrop-blur: blur(12px); /* Light theme LEDLab colors */ --matrix-bg: #f8fafc; --pixel-on: #16a34a; --pixel-off: #f1f5f9; --pixel-dim: #22c55e; --control-bg: #f8fafc; --preset-active: #16a34a; --node-connected: #16a34a; --node-disconnected: #dc2626; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: var(--bg-primary); height: 100vh; padding: 1rem; color: var(--text-primary); display: flex; flex-direction: column; overflow: hidden; } .container { max-width: none; width: 100%; margin: 0 auto; display: flex; flex-direction: column; flex: 1; padding: 0 2rem; max-height: calc(100vh - 2rem); overflow: hidden; } /* LEDLab specific styles */ .ledlab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-primary); } .ledlab-title { font-size: 2rem; font-weight: 700; color: var(--accent-primary); } .theme-toggle { background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 8px; padding: 0.5rem; cursor: pointer; transition: all 0.2s ease; } .theme-toggle:hover { background: var(--bg-tertiary); transform: scale(1.05); } .theme-toggle svg { width: 20px; height: 20px; fill: currentColor; } /* Main content layout */ .ledlab-main { display: flex; flex: 1; gap: 2rem; overflow: hidden; } /* Matrix display section */ .matrix-section { flex: 1; background: var(--bg-secondary); border-radius: 16px; border: 1px solid var(--border-primary); padding: 1.5rem; display: flex; flex-direction: column; } .matrix-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .matrix-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); } .matrix-info { font-size: 0.875rem; color: var(--text-secondary); font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; } .matrix-container { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--matrix-bg); border-radius: 12px; border: 1px solid var(--border-secondary); position: relative; overflow: hidden; } .matrix-canvas { image-rendering: pixelated; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; max-width: 100%; max-height: 100%; object-fit: contain; } /* Control panel section */ .control-section { width: 320px; background: var(--bg-secondary); border-radius: 16px; border: 1px solid var(--border-primary); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto; } .control-group { background: var(--control-bg); border-radius: 12px; padding: 1rem; border: 1px solid var(--border-secondary); } .control-group-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; } .control-group-title::before { content: ''; width: 4px; height: 16px; background: var(--accent-primary); border-radius: 2px; } /* Node list */ .node-controls { margin-bottom: 1rem; } .node-list { max-height: 200px; overflow-y: auto; } .node-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: 8px; cursor: pointer; transition: background-color 0.2s ease; } .node-item:hover { background: var(--bg-tertiary); } .node-item.connected { border-left: 3px solid var(--node-connected); } .node-item.disconnected { border-left: 3px solid var(--node-disconnected); } .node-item.selected { background: rgba(74, 222, 128, 0.1); border-left: 3px solid var(--accent-primary); } .node-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--node-disconnected); } .node-indicator.connected { background: var(--node-connected); } .node-info { flex: 1; font-size: 0.875rem; } .node-ip { font-weight: 600; color: var(--text-primary); font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; } .node-status { font-size: 0.75rem; color: var(--text-secondary); } /* Preset controls */ .preset-select { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border-primary); border-radius: 8px; padding: 0.5rem; color: var(--text-primary); font-size: 0.875rem; } .preset-controls { display: flex; flex-direction: column; gap: 0.75rem; } .preset-control { display: flex; flex-direction: column; gap: 0.25rem; } .preset-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; } .preset-input { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border-primary); border-radius: 6px; padding: 0.5rem; color: var(--text-primary); font-size: 0.875rem; } .preset-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2); } .preset-slider { width: 100%; height: 4px; background: var(--bg-tertiary); border-radius: 2px; outline: none; -webkit-appearance: none; } .preset-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; background: var(--accent-primary); border-radius: 50%; cursor: pointer; } .preset-slider::-moz-range-thumb { width: 16px; height: 16px; background: var(--accent-primary); border-radius: 50%; cursor: pointer; border: none; } /* Buttons */ .btn { background: var(--accent-primary); color: white; border: none; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; } .btn:hover { background: var(--accent-secondary); transform: translateY(-1px); } .btn:active { transform: translateY(0); } .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-primary); } .btn-secondary:hover { background: var(--bg-primary); } .btn-small { padding: 0.5rem 0.75rem; font-size: 0.75rem; } /* Matrix configuration */ .matrix-config { display: flex; gap: 1rem; align-items: end; } .matrix-input { display: flex; flex-direction: column; gap: 0.25rem; } .matrix-input label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; } .matrix-input input { background: var(--bg-tertiary); border: 1px solid var(--border-primary); border-radius: 6px; padding: 0.5rem; color: var(--text-primary); font-size: 0.875rem; width: 80px; } .matrix-input input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2); } /* Status indicators */ .status-indicator { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; padding: 0.25rem 0.75rem; border-radius: 12px; font-weight: 500; } .status-connected { background: rgba(34, 197, 94, 0.1); color: var(--node-connected); border: 1px solid rgba(34, 197, 94, 0.2); } .status-disconnected { background: rgba(239, 68, 68, 0.1); color: var(--node-disconnected); border: 1px solid rgba(239, 68, 68, 0.2); } .status-streaming { background: rgba(74, 222, 128, 0.1); color: var(--accent-primary); border: 1px solid rgba(74, 222, 128, 0.2); } /* Loading and error states */ .loading { display: flex; align-items: center; justify-content: center; flex: 1; color: var(--text-secondary); font-size: 1.125rem; } .error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 8px; padding: 1rem; color: var(--accent-error); text-align: center; } .empty-state { display: flex; align-items: center; justify-content: center; flex: 1; color: var(--text-secondary); font-style: italic; } /* Scrollbar styling */ .control-section::-webkit-scrollbar { width: 6px; } .control-section::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: 3px; } .control-section::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 3px; } .control-section::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); } /* Responsive adjustments */ @media (max-width: 768px) { .ledlab-main { flex-direction: column; gap: 1rem; } .control-section { width: 100%; max-height: 300px; } .matrix-section { min-height: 400px; } } /* Animation keyframes */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } .animate-fade-in { animation: fadeIn 0.3s ease-out; }