2418 lines
51 KiB
CSS
2418 lines
51 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: rgba(255, 255, 255, 0.15);
|
|
color: var(--text-primary);
|
|
box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.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;
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Matrix Grid Section - Full Width */
|
|
.matrix-grid-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);
|
|
}
|
|
|
|
.matrix-grid-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.matrix-grid-controls {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Node Canvas Grid */
|
|
.node-canvas-grid {
|
|
flex: 1;
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 0.5rem;
|
|
align-items: stretch;
|
|
/* Default grid for 1-2 items */
|
|
grid-template-columns: repeat(2, 1fr);
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Dynamic grid layouts based on number of items */
|
|
.node-canvas-grid[data-item-count="1"] {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: 1fr;
|
|
justify-items: center;
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="2"] {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: 1fr;
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="3"] {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-template-rows: 1fr;
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="4"] {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="5"],
|
|
.node-canvas-grid[data-item-count="6"] {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="7"],
|
|
.node-canvas-grid[data-item-count="8"] {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="9"] {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-template-rows: repeat(3, 1fr);
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="10"],
|
|
.node-canvas-grid[data-item-count="11"],
|
|
.node-canvas-grid[data-item-count="12"] {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
grid-template-rows: repeat(3, 1fr);
|
|
}
|
|
|
|
/* For more than 12 items, use auto-fit with reasonable minimum */
|
|
.node-canvas-grid[data-item-count="13"],
|
|
.node-canvas-grid[data-item-count="14"],
|
|
.node-canvas-grid[data-item-count="15"],
|
|
.node-canvas-grid[data-item-count="16"] {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
grid-template-rows: repeat(4, 1fr);
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="17"] {
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
grid-template-rows: repeat(auto-fit, minmax(150px, 1fr));
|
|
}
|
|
|
|
.node-canvas-item {
|
|
background: var(--matrix-bg);
|
|
border-radius: 12px;
|
|
border: 2px solid var(--border-secondary);
|
|
padding: 0.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
height: 100%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.node-canvas-item:hover {
|
|
border-color: var(--border-hover);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.node-canvas-item.selected {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.node-canvas-item.streaming {
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.node-canvas-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
padding-bottom: 0.375rem;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.node-canvas-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.node-canvas-ip {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
}
|
|
|
|
.node-canvas-status {
|
|
font-size: 0.6rem;
|
|
padding: 0.2rem 0.4rem;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.node-canvas-status.connected {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: var(--node-connected);
|
|
border: 1px solid rgba(34, 197, 94, 0.3);
|
|
}
|
|
|
|
.node-canvas-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;
|
|
}
|
|
|
|
.node-canvas-container {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--matrix-bg);
|
|
border-radius: 8px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.node-canvas {
|
|
image-rendering: pixelated;
|
|
image-rendering: -moz-crisp-edges;
|
|
image-rendering: crisp-edges;
|
|
width: 100%;
|
|
height: 100%;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* Old Matrix display section - kept for backwards compatibility */
|
|
.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;
|
|
}
|
|
|
|
/* Floating Control Panel */
|
|
.floating-controls {
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
width: 320px;
|
|
max-width: calc(100vw - 4rem);
|
|
max-height: calc(100vh - 12rem);
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-primary);
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: var(--backdrop-blur);
|
|
z-index: 100;
|
|
animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
@keyframes slideInFromRight {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.floating-controls-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.control-title {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.control-title .node-indicator {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--node-connected);
|
|
display: inline-block;
|
|
}
|
|
|
|
.btn-close {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 1.25rem;
|
|
cursor: pointer;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 6px;
|
|
transition: all 0.2s ease;
|
|
line-height: 1;
|
|
}
|
|
|
|
.btn-close:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.floating-controls-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* Old Control panel section - kept for backwards compatibility */
|
|
.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: transparent;
|
|
border-radius: 8px;
|
|
padding: 0.5rem 0;
|
|
border: none;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.control-group:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.control-group:hover {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.control-group > .btn {
|
|
width: 100%;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.control-group-subtitle {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.control-group-subtitle::before {
|
|
content: '';
|
|
width: 2px;
|
|
height: 10px;
|
|
background: var(--accent-primary);
|
|
border-radius: 1px;
|
|
}
|
|
|
|
/* 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-select {
|
|
width: 100%;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: 6px;
|
|
padding: 0.5rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.preset-select option {
|
|
background: #1a252f;
|
|
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.5rem;
|
|
margin-bottom: 0.5rem;
|
|
min-height: 1.5rem;
|
|
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.3rem;
|
|
}
|
|
|
|
.preset-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.preset-label:has(input[type="checkbox"]) {
|
|
text-transform: none;
|
|
font-size: 0.8rem;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.preset-label input[type="checkbox"] {
|
|
cursor: pointer;
|
|
accent-color: var(--accent-primary);
|
|
}
|
|
|
|
.preset-input {
|
|
width: 100%;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: 4px;
|
|
padding: 0.4rem 0.5rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.8rem;
|
|
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: 6px;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.8rem;
|
|
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.4rem;
|
|
min-height: 2.25rem;
|
|
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, rgba(74, 222, 128, 0.8) 0%, rgba(34, 197, 94, 0.8) 100%);
|
|
color: white;
|
|
border-color: rgba(74, 222, 128, 0.6);
|
|
box-shadow: 0 2px 8px rgba(74, 222, 128, 0.15);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(74, 222, 128, 0.9) 100%);
|
|
border-color: rgba(34, 197, 94, 0.8);
|
|
color: white;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 3px 10px rgba(74, 222, 128, 0.2);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 1px 4px rgba(74, 222, 128, 0.15);
|
|
}
|
|
|
|
.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.08) 0%, rgba(255, 255, 255, 0.04) 100%);
|
|
color: var(--text-secondary);
|
|
border-color: var(--border-secondary);
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-tertiary);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.8rem;
|
|
min-height: 2.25rem;
|
|
}
|
|
|
|
.btn-container {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
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,
|
|
.floating-controls-content::-webkit-scrollbar,
|
|
.node-canvas-grid::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.control-section::-webkit-scrollbar-track,
|
|
.floating-controls-content::-webkit-scrollbar-track,
|
|
.node-canvas-grid::-webkit-scrollbar-track {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.control-section::-webkit-scrollbar-thumb,
|
|
.floating-controls-content::-webkit-scrollbar-thumb,
|
|
.node-canvas-grid::-webkit-scrollbar-thumb {
|
|
background: var(--border-primary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.control-section::-webkit-scrollbar-thumb:hover,
|
|
.floating-controls-content::-webkit-scrollbar-thumb:hover,
|
|
.node-canvas-grid::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (min-width: 1600px) {
|
|
.node-canvas-grid[data-item-count="17"] {
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1400px) {
|
|
.node-canvas-grid[data-item-count="17"] {
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
grid-template-rows: repeat(auto-fit, minmax(180px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.node-canvas-grid[data-item-count="17"] {
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
grid-template-rows: repeat(auto-fit, minmax(160px, 1fr));
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.node-canvas-item {
|
|
padding: 0.625rem;
|
|
}
|
|
|
|
.node-canvas-ip {
|
|
font-size: 0.75rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 0 0.5rem;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.ledlab-main {
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Mobile grid layouts - simplified for smaller screens but still maximize vertical space */
|
|
.node-canvas-grid[data-item-count="1"] {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: 1fr;
|
|
justify-items: center;
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="2"] {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: 1fr;
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="3"],
|
|
.node-canvas-grid[data-item-count="4"] {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
}
|
|
|
|
.node-canvas-grid[data-item-count="5"],
|
|
.node-canvas-grid[data-item-count="6"],
|
|
.node-canvas-grid[data-item-count="7"],
|
|
.node-canvas-grid[data-item-count="8"],
|
|
.node-canvas-grid[data-item-count="9"],
|
|
.node-canvas-grid[data-item-count="10"],
|
|
.node-canvas-grid[data-item-count="11"],
|
|
.node-canvas-grid[data-item-count="12"],
|
|
.node-canvas-grid[data-item-count="13"],
|
|
.node-canvas-grid[data-item-count="14"],
|
|
.node-canvas-grid[data-item-count="15"],
|
|
.node-canvas-grid[data-item-count="16"],
|
|
.node-canvas-grid[data-item-count="17"] {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: repeat(auto-fit, 1fr);
|
|
gap: 0.5rem;
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
.node-canvas-item {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.node-canvas-header {
|
|
margin-bottom: 0.375rem;
|
|
padding-bottom: 0.25rem;
|
|
}
|
|
|
|
.node-canvas-ip {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.node-canvas-status {
|
|
font-size: 0.55rem;
|
|
padding: 0.15rem 0.35rem;
|
|
}
|
|
|
|
.floating-controls {
|
|
position: fixed;
|
|
top: auto;
|
|
bottom: 0;
|
|
right: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
max-height: 70vh;
|
|
border-radius: 16px 16px 0 0;
|
|
animation: slideInFromBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
@keyframes slideInFromBottom {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* ============================================
|
|
PRESET EDITOR STYLES
|
|
============================================ */
|
|
|
|
.editor-container {
|
|
padding: 2rem;
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Modern Editor Container - Full Screen */
|
|
.editor-container-modern {
|
|
padding: 0;
|
|
margin: 0;
|
|
height: calc(100vh - 70px);
|
|
width: 100vw;
|
|
max-width: 100vw;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.editor-header {
|
|
margin-bottom: 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.editor-header h2 {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.editor-subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 0.95rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.editor-preview-controls {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
padding: 1rem;
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-primary);
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.preview-control-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.preview-control-group label {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.node-select {
|
|
padding: 0.6rem 1rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
min-width: 200px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.node-select option {
|
|
background: #1a252f;
|
|
color: var(--text-primary);
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.node-select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.preview-status {
|
|
padding: 0.4rem 0.8rem;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.preview-status.active {
|
|
background: rgba(74, 222, 128, 0.1);
|
|
border-color: var(--accent-primary);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.preview-status.streaming {
|
|
background: rgba(96, 165, 250, 0.1);
|
|
border-color: var(--accent-secondary);
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
.editor-layout {
|
|
display: grid;
|
|
grid-template-columns: 300px 1fr 350px;
|
|
gap: 1.5rem;
|
|
min-height: calc(100vh - 300px);
|
|
}
|
|
|
|
/* Modern Layout - Full Screen (50/50 Split) */
|
|
.editor-layout-modern {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
/* Live Preview Canvas */
|
|
.editor-preview-container {
|
|
position: relative;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.editor-canvas {
|
|
border: 2px solid var(--border-primary);
|
|
border-radius: 4px;
|
|
background: #000000;
|
|
image-rendering: pixelated;
|
|
image-rendering: crisp-edges;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
height: auto;
|
|
aspect-ratio: 1;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.editor-canvas-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
padding: 0.5rem 0.75rem;
|
|
background: var(--bg-secondary);
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.editor-canvas-info span {
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
}
|
|
|
|
/* Modern Preview Bar */
|
|
.editor-preview-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-primary);
|
|
gap: 1rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.preview-bar-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.preview-bar-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.node-select-compact {
|
|
padding: 0.5rem 0.75rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
min-width: 150px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.node-select-compact option {
|
|
background: #1a252f;
|
|
color: var(--text-primary);
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.node-select-compact:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.btn-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 1rem;
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, #22c55e 100%);
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: white;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-preview:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
|
|
}
|
|
|
|
.btn-preview.active {
|
|
background: linear-gradient(135deg, var(--accent-error) 0%, #dc2626 100%);
|
|
}
|
|
|
|
.btn-preview.active:hover {
|
|
box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
|
|
}
|
|
|
|
.preview-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.preview-text {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.preview-status-compact {
|
|
padding: 0.35rem 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.preview-status-compact.active {
|
|
background: rgba(74, 222, 128, 0.1);
|
|
border-color: var(--accent-primary);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.preview-status-compact.streaming {
|
|
background: rgba(96, 165, 250, 0.1);
|
|
border-color: var(--accent-secondary);
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
.info-badge {
|
|
padding: 0.35rem 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Preview Container with Layers */
|
|
.editor-preview-container-modern {
|
|
flex: 1;
|
|
display: flex;
|
|
gap: 0;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Layers Sidebar (Left of Preview) */
|
|
.editor-layers-sidebar {
|
|
width: 240px;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border-primary);
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Modern Canvas Preview - Full Right Panel */
|
|
.editor-preview-main {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-primary);
|
|
padding: 2rem;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Full width button utility */
|
|
.btn-full-width {
|
|
width: 100%;
|
|
}
|
|
|
|
.editor-canvas-modern {
|
|
background: #000000;
|
|
image-rendering: pixelated;
|
|
image-rendering: crisp-edges;
|
|
border: 2px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
width: min(95%, 90vh);
|
|
height: min(95%, 90vh);
|
|
aspect-ratio: 1;
|
|
max-width: 1000px;
|
|
max-height: 1000px;
|
|
}
|
|
|
|
/* Layers Section (deprecated - keeping for backward compatibility) */
|
|
.layers-section {
|
|
border-top: 1px solid var(--border-primary);
|
|
padding: 1rem;
|
|
max-height: 250px;
|
|
min-height: 150px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.layer-details-content {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Ensure scrolling works */
|
|
.editor-left-panel::-webkit-scrollbar,
|
|
.editor-layer-list-expandable::-webkit-scrollbar,
|
|
.layers-section::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.editor-left-panel::-webkit-scrollbar-track,
|
|
.editor-layer-list-expandable::-webkit-scrollbar-track,
|
|
.layers-section::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.editor-left-panel::-webkit-scrollbar-thumb,
|
|
.editor-layer-list-expandable::-webkit-scrollbar-thumb,
|
|
.layers-section::-webkit-scrollbar-thumb {
|
|
background: var(--border-primary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.editor-left-panel::-webkit-scrollbar-thumb:hover,
|
|
.editor-layer-list-expandable::-webkit-scrollbar-thumb:hover,
|
|
.layers-section::-webkit-scrollbar-thumb:hover {
|
|
background: var(--border-hover);
|
|
}
|
|
|
|
.editor-sidebar,
|
|
.editor-main,
|
|
.editor-details {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
backdrop-filter: var(--backdrop-blur);
|
|
box-shadow: var(--shadow-secondary);
|
|
overflow-y: auto;
|
|
max-height: calc(100vh - 200px);
|
|
}
|
|
|
|
/* Modern Panels - Two Panel Layout */
|
|
.editor-left-panel {
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border-primary);
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.editor-right-panel {
|
|
background: var(--bg-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Compact Sections */
|
|
.editor-section-compact {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.editor-layers-section {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.editor-layers-section .section-title-compact {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.section-title-compact {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.65rem;
|
|
color: var(--text-primary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.section-title-with-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.65rem;
|
|
}
|
|
|
|
.section-title-with-button .section-title-compact {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.editor-section {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.editor-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.editor-section h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 1rem;
|
|
color: var(--text-primary);
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.editor-input-wrapper {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.editor-input-wrapper label {
|
|
display: block;
|
|
margin-bottom: 0.35rem;
|
|
color: var(--text-secondary);
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.editor-input-wrapper input[type="text"],
|
|
.editor-input-wrapper input[type="number"],
|
|
.editor-input-wrapper textarea,
|
|
.editor-input-wrapper select {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.editor-input-wrapper input[type="text"]:focus,
|
|
.editor-input-wrapper input[type="number"]:focus,
|
|
.editor-input-wrapper textarea:focus,
|
|
.editor-input-wrapper select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.editor-input-wrapper select option {
|
|
background: #1a252f;
|
|
color: var(--text-primary);
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.editor-input-wrapper input[type="color"] {
|
|
width: 100%;
|
|
height: 40px;
|
|
padding: 0.2rem;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.editor-input-wrapper textarea {
|
|
resize: vertical;
|
|
min-height: 60px;
|
|
}
|
|
|
|
.editor-type-options {
|
|
margin-top: 0.75rem;
|
|
padding: 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.editor-type-options.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.editor-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.editor-actions button,
|
|
.editor-actions label {
|
|
flex: 1;
|
|
}
|
|
|
|
.editor-actions select {
|
|
width: 100%;
|
|
padding: 0.6rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.editor-actions select option {
|
|
background: #1a252f;
|
|
color: var(--text-primary);
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.editor-actions select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
/* Layer List - Expandable Style */
|
|
.editor-layer-list-expandable {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
min-height: 0;
|
|
padding-right: 0.25rem;
|
|
}
|
|
|
|
/* Old Layer List (deprecated) */
|
|
.editor-layer-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Expandable Layer Item */
|
|
.editor-layer-item {
|
|
background: var(--bg-tertiary);
|
|
border: 2px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
overflow: visible;
|
|
transition: all 0.2s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.editor-layer-item:hover {
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.editor-layer-item.expanded {
|
|
border-color: var(--accent-primary);
|
|
background: rgba(74, 222, 128, 0.05);
|
|
}
|
|
|
|
/* Layer Header (Always Visible) */
|
|
.editor-layer-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.75rem;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.editor-layer-header:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.editor-layer-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.editor-layer-expand-icon {
|
|
font-size: 0.7rem;
|
|
color: var(--text-secondary);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.editor-layer-item.expanded .editor-layer-expand-icon {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.editor-layer-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.editor-layer-title {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.editor-layer-subtitle {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 0.15rem;
|
|
}
|
|
|
|
.editor-preset-section {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 6px;
|
|
padding: 0.75rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.preset-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.preset-actions-row {
|
|
display: flex;
|
|
gap: 0.375rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.preset-actions-row:first-child {
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.preset-actions-row .preset-select {
|
|
flex: 1;
|
|
margin: 0;
|
|
}
|
|
|
|
.editor-preset-section .editor-input-wrapper {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.editor-preset-section .editor-input-wrapper input {
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.85rem;
|
|
min-height: 2rem;
|
|
}
|
|
|
|
.editor-preset-section .section-title-compact {
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.preset-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.preset-header .section-title-compact {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.preset-header-buttons {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.btn-icon {
|
|
padding: 0.5rem;
|
|
min-width: 2.5rem;
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: 6px;
|
|
color: var(--text-secondary);
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-hover);
|
|
color: var(--text-primary);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.btn-icon:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.btn-icon svg {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-icon:hover svg {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.btn-icon:active svg {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Icon button color variations */
|
|
.btn-icon[id="editor-new-preset"]:hover {
|
|
border-color: rgba(74, 222, 128, 0.4);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.btn-icon[id="editor-save-preset"]:hover {
|
|
border-color: rgba(76, 175, 80, 0.4);
|
|
color: var(--accent-success);
|
|
}
|
|
|
|
.btn-icon[id="editor-delete-preset"]:hover {
|
|
border-color: rgba(248, 113, 113, 0.4);
|
|
color: var(--accent-error);
|
|
}
|
|
|
|
.btn-icon[id="editor-export-json"]:hover,
|
|
.btn-icon[for="editor-import-json"]:hover {
|
|
border-color: rgba(96, 165, 250, 0.4);
|
|
color: var(--accent-secondary);
|
|
}
|
|
|
|
.editor-layer-buttons {
|
|
display: flex;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
/* Layer Content (Expandable) */
|
|
.editor-layer-content {
|
|
display: none;
|
|
padding: 0.75rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid var(--border-primary);
|
|
background: var(--bg-secondary);
|
|
max-height: none;
|
|
overflow: visible;
|
|
}
|
|
|
|
.editor-layer-item.expanded .editor-layer-content {
|
|
display: block;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 0.4rem 0.6rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 4px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-small:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--accent-primary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-small:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-small.btn-danger:hover:not(:disabled) {
|
|
border-color: var(--accent-error);
|
|
color: var(--accent-error);
|
|
}
|
|
|
|
/* Layer Details Panel */
|
|
.editor-group {
|
|
margin-bottom: 1rem;
|
|
padding: 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.editor-group h4 {
|
|
font-size: 0.85rem;
|
|
margin-bottom: 0.65rem;
|
|
color: var(--accent-primary);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.animation-params {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.color-stops-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.8rem;
|
|
}
|
|
|
|
.color-stop {
|
|
padding: 0.8rem;
|
|
background: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.editor-empty-state {
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
padding: 2rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* Button Variants */
|
|
.btn-success {
|
|
background: linear-gradient(135deg, rgba(76, 175, 80, 0.8) 0%, rgba(69, 160, 73, 0.8) 100%);
|
|
color: white;
|
|
border-color: rgba(76, 175, 80, 0.6);
|
|
box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background: linear-gradient(135deg, rgba(69, 160, 73, 0.9) 0%, rgba(61, 139, 64, 0.9) 100%);
|
|
border-color: rgba(69, 160, 73, 0.8);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: linear-gradient(135deg, rgba(248, 113, 113, 0.8) 0%, rgba(220, 38, 38, 0.8) 100%);
|
|
color: white;
|
|
border-color: rgba(248, 113, 113, 0.6);
|
|
box-shadow: 0 2px 8px rgba(248, 113, 113, 0.15);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(185, 28, 28, 0.9) 100%);
|
|
border-color: rgba(220, 38, 38, 0.8);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 3px 10px rgba(248, 113, 113, 0.2);
|
|
}
|
|
|
|
/* Notifications */
|
|
.notification {
|
|
position: fixed;
|
|
top: 100px;
|
|
right: 20px;
|
|
padding: 1rem 1.5rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow-primary);
|
|
backdrop-filter: var(--backdrop-blur);
|
|
color: var(--text-primary);
|
|
font-size: 0.95rem;
|
|
z-index: 10000;
|
|
opacity: 0;
|
|
transform: translateX(400px);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.notification.show {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.notification-success {
|
|
border-left: 4px solid var(--accent-success);
|
|
}
|
|
|
|
.notification-error {
|
|
border-left: 4px solid var(--accent-error);
|
|
}
|
|
|
|
.notification-info {
|
|
border-left: 4px solid var(--accent-secondary);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 1800px) {
|
|
.editor-layout {
|
|
grid-template-columns: 280px 1fr 320px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1400px) {
|
|
.editor-canvas-modern {
|
|
width: min(85%, 85vh);
|
|
height: min(85%, 85vh);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.editor-layout {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto auto auto;
|
|
}
|
|
|
|
/* Stack vertically on mobile */
|
|
.editor-layout-modern {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto 1fr;
|
|
}
|
|
|
|
.editor-sidebar,
|
|
.editor-main,
|
|
.editor-details {
|
|
max-height: none;
|
|
}
|
|
|
|
.editor-left-panel {
|
|
border: none;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
max-height: 50vh;
|
|
}
|
|
|
|
.editor-right-panel {
|
|
min-height: 50vh;
|
|
}
|
|
|
|
.editor-preview-controls {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.preview-control-group {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.node-select {
|
|
min-width: 250px;
|
|
}
|
|
|
|
.preview-bar-controls {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.editor-container {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.editor-header h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.editor-subtitle {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.editor-canvas {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.editor-container-modern {
|
|
height: calc(100vh - 60px);
|
|
}
|
|
|
|
.editor-preview-bar {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.preview-bar-controls {
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.node-select-compact {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.btn-preview {
|
|
flex: 1;
|
|
}
|
|
|
|
.preview-bar-info {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* Hidden utility */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|