929 lines
19 KiB
CSS
929 lines
19 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
/* Dark Theme - Matching SPORE UI */
|
|
--bg-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a252f 100%);
|
|
--bg-secondary: rgba(0, 0, 0, 0.3);
|
|
--bg-tertiary: rgba(0, 0, 0, 0.2);
|
|
--bg-hover: rgba(0, 0, 0, 0.15);
|
|
--bg-overlay: rgba(0, 0, 0, 0.7);
|
|
|
|
--text-primary: #ecf0f1;
|
|
--text-secondary: rgba(255, 255, 255, 0.8);
|
|
--text-tertiary: rgba(255, 255, 255, 0.7);
|
|
--text-muted: rgba(255, 255, 255, 0.6);
|
|
|
|
--border-primary: rgba(255, 255, 255, 0.1);
|
|
--border-secondary: rgba(255, 255, 255, 0.15);
|
|
--border-hover: rgba(255, 255, 255, 0.2);
|
|
|
|
--accent-primary: #4ade80;
|
|
--accent-secondary: #60a5fa;
|
|
--accent-warning: #fbbf24;
|
|
--accent-error: #f87171;
|
|
--accent-success: #4caf50;
|
|
|
|
--shadow-primary: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
--shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.2);
|
|
--shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
|
|
|
|
--backdrop-blur: blur(10px);
|
|
|
|
/* LEDLab specific colors */
|
|
--matrix-bg: #000000;
|
|
--pixel-on: #4ade80;
|
|
--pixel-off: rgba(0, 0, 0, 0.3);
|
|
--pixel-dim: #22c55e;
|
|
--control-bg: rgba(0, 0, 0, 0.2);
|
|
--preset-active: #4ade80;
|
|
--node-connected: #22c55e;
|
|
--node-disconnected: #ef4444;
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--bg-primary: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
|
|
--bg-secondary: rgba(255, 255, 255, 0.1);
|
|
--bg-tertiary: rgba(255, 255, 255, 0.05);
|
|
--bg-hover: rgba(255, 255, 255, 0.15);
|
|
--bg-overlay: rgba(0, 0, 0, 0.3);
|
|
|
|
--text-primary: #1e293b;
|
|
--text-secondary: #475569;
|
|
--text-tertiary: #64748b;
|
|
--text-muted: #94a3b8;
|
|
|
|
--border-primary: rgba(148, 163, 184, 0.2);
|
|
--border-secondary: rgba(148, 163, 184, 0.3);
|
|
--border-hover: rgba(148, 163, 184, 0.4);
|
|
|
|
--accent-primary: #3b82f6;
|
|
--accent-secondary: #1d4ed8;
|
|
--accent-warning: #f59e0b;
|
|
--accent-error: #dc2626;
|
|
--accent-success: #059669;
|
|
|
|
--shadow-primary: 0 8px 32px rgba(148, 163, 184, 0.1);
|
|
--shadow-secondary: 0 4px 16px rgba(148, 163, 184, 0.05);
|
|
--shadow-hover: 0 12px 40px rgba(148, 163, 184, 0.15);
|
|
|
|
--backdrop-blur: blur(20px);
|
|
|
|
/* Light theme LEDLab colors */
|
|
--matrix-bg: #f8fafc;
|
|
--pixel-on: #3b82f6;
|
|
--pixel-off: #f1f5f9;
|
|
--pixel-dim: #60a5fa;
|
|
--control-bg: rgba(255, 255, 255, 0.1);
|
|
--preset-active: #3b82f6;
|
|
--node-connected: #059669;
|
|
--node-disconnected: #dc2626;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background: var(--bg-primary);
|
|
background-attachment: fixed;
|
|
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;
|
|
max-height: calc(100vh - 2rem);
|
|
overflow: hidden;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Main Navigation - Matching SPORE UI */
|
|
.main-navigation {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1.5rem;
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
border: 1px solid var(--border-primary);
|
|
backdrop-filter: var(--backdrop-blur);
|
|
box-shadow: var(--shadow-primary);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.nav-left {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-tab {
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
color: var(--text-secondary);
|
|
padding: 0.625rem 1.25rem;
|
|
border-radius: 10px;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
backdrop-filter: none;
|
|
}
|
|
|
|
.nav-tab:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-tab.active {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--accent-primary);
|
|
color: var(--text-primary);
|
|
box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
|
|
}
|
|
|
|
.nav-right {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.theme-toggle {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.theme-toggle:hover svg {
|
|
transform: rotate(15deg);
|
|
}
|
|
|
|
/* View Content */
|
|
.view-content {
|
|
display: none;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
.view-content.active {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
/* Main content layout */
|
|
.ledlab-main {
|
|
display: flex;
|
|
flex: 1;
|
|
gap: 1.5rem;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* 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;
|
|
min-height: 0;
|
|
box-shadow: var(--shadow-primary);
|
|
backdrop-filter: var(--backdrop-blur);
|
|
}
|
|
|
|
/* Settings Section */
|
|
.settings-section {
|
|
flex: 1;
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
border: 1px solid var(--border-primary);
|
|
padding: 2rem;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-primary);
|
|
backdrop-filter: var(--backdrop-blur);
|
|
}
|
|
|
|
.settings-section h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.settings-group {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.settings-group h3 {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.settings-group h3::before {
|
|
content: '';
|
|
width: 4px;
|
|
height: 18px;
|
|
background: var(--accent-primary);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.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;
|
|
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.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: 380px;
|
|
min-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;
|
|
max-height: calc(100vh - 8rem);
|
|
box-shadow: var(--shadow-primary);
|
|
backdrop-filter: var(--backdrop-blur);
|
|
}
|
|
|
|
.control-group {
|
|
background: var(--control-bg);
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
border: 1px solid var(--border-secondary);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.control-group:hover {
|
|
border-color: var(--border-tertiary);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.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;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.node-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border: 1px solid transparent;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.node-item:hover {
|
|
background: var(--bg-tertiary);
|
|
border-color: var(--border-secondary);
|
|
}
|
|
|
|
.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);
|
|
border-color: rgba(74, 222, 128, 0.3);
|
|
box-shadow: 0 2px 8px rgba(74, 222, 128, 0.2);
|
|
}
|
|
|
|
.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-selector-wrapper {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.preset-select {
|
|
width: 100%;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: 8px;
|
|
padding: 0.75rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.preset-select option {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.preset-select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.preset-select:hover {
|
|
border-color: var(--border-tertiary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.preset-controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1.25rem;
|
|
min-height: 2rem;
|
|
position: relative;
|
|
}
|
|
|
|
.preset-controls:empty::before {
|
|
content: 'Select a preset to see parameters';
|
|
color: var(--text-tertiary);
|
|
font-size: 0.875rem;
|
|
font-style: italic;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.global-controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.preset-control {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.preset-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.preset-input {
|
|
width: 100%;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: 6px;
|
|
padding: 0.625rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.preset-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.preset-input:hover {
|
|
border-color: var(--border-tertiary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.preset-slider {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 3px;
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.preset-slider:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.preset-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: var(--accent-primary);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.preset-slider::-webkit-slider-thumb:hover {
|
|
transform: scale(1.15);
|
|
box-shadow: 0 2px 8px rgba(74, 222, 128, 0.4);
|
|
}
|
|
|
|
.preset-slider::-moz-range-thumb {
|
|
width: 18px;
|
|
height: 18px;
|
|
background: var(--accent-primary);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.preset-slider::-moz-range-thumb:hover {
|
|
transform: scale(1.15);
|
|
box-shadow: 0 2px 8px rgba(74, 222, 128, 0.4);
|
|
}
|
|
|
|
.preset-value {
|
|
min-width: 3rem;
|
|
text-align: right;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.875rem;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
/* Buttons - Spore UI inspired styling */
|
|
.btn {
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: 8px;
|
|
padding: 0.625rem 1.25rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
min-height: 2.75rem;
|
|
white-space: nowrap;
|
|
backdrop-filter: var(--backdrop-blur);
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-tertiary);
|
|
color: var(--text-primary);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.btn:active {
|
|
background: var(--bg-tertiary);
|
|
transform: translateY(0);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
background: transparent;
|
|
border-color: var(--border-primary);
|
|
color: var(--text-secondary);
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, #22c55e 100%);
|
|
color: white;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 2px 8px rgba(74, 222, 128, 0.25);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: linear-gradient(135deg, #22c55e 0%, var(--accent-primary) 100%);
|
|
border-color: #22c55e;
|
|
color: white;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(74, 222, 128, 0.35);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 2px 6px rgba(74, 222, 128, 0.25);
|
|
}
|
|
|
|
.btn-stop {
|
|
background: linear-gradient(135deg, var(--accent-error) 0%, #ef4444 100%);
|
|
color: white;
|
|
border-color: var(--accent-error);
|
|
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
|
|
}
|
|
|
|
.btn-stop:hover {
|
|
background: linear-gradient(135deg, #ef4444 0%, var(--accent-error) 100%);
|
|
border-color: #ef4444;
|
|
color: white;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
|
|
}
|
|
|
|
.btn-stop:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
|
|
}
|
|
|
|
.btn-icon {
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.btn-text {
|
|
line-height: 1;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
|
|
color: var(--text-secondary);
|
|
border-color: var(--border-secondary);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-tertiary);
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.8rem;
|
|
min-height: 2.25rem;
|
|
}
|
|
|
|
.btn-container {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* 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-secondary);
|
|
border-radius: 6px;
|
|
padding: 0.625rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
width: 80px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.matrix-input input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.matrix-input input:hover {
|
|
border-color: var(--border-tertiary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
|
|
/* Status indicators */
|
|
.status-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.75rem;
|
|
padding: 0.375rem 0.875rem;
|
|
border-radius: 16px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.status-connected {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: var(--node-connected);
|
|
border: 1px solid rgba(34, 197, 94, 0.3);
|
|
}
|
|
|
|
.status-disconnected {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: var(--node-disconnected);
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.status-streaming {
|
|
background: rgba(74, 222, 128, 0.15);
|
|
color: var(--accent-primary);
|
|
border: 1px solid rgba(74, 222, 128, 0.3);
|
|
animation: pulse-glow 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse-glow {
|
|
0%, 100% {
|
|
box-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
|
|
}
|
|
}
|
|
|
|
/* 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) {
|
|
.container {
|
|
padding: 0 1rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.ledlab-main {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.control-section {
|
|
width: 100%;
|
|
min-width: unset;
|
|
max-height: 50vh;
|
|
}
|
|
|
|
.matrix-section {
|
|
min-height: 50vh;
|
|
}
|
|
|
|
.btn-container {
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.matrix-config {
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.matrix-input {
|
|
min-width: 100px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.ledlab-header {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.matrix-config {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.matrix-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|