- Add BetterCam capture engine (DXGI Desktop Duplication, priority 4) - Fix missing picture_stream_id in get_device endpoint - Fix template delete validation to check streams instead of devices - Add description field to capture engine template UI - Default template name changed to "Default" with descriptive text - Display picker highlights selected display instead of primary - Fix modals closing when dragging text selection outside dialog - Rename "Engine Configuration" to "Configuration", hide when empty - Rename "Run Test" to "Run" across all test buttons - Always reserve space for vertical scrollbar - Redesign Stream Settings info panel with pill-style props - Fix processed stream showing internal ID instead of stream name - Update en/ru locale files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2457 lines
45 KiB
CSS
2457 lines
45 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #4CAF50;
|
|
--danger-color: #f44336;
|
|
--warning-color: #ff9800;
|
|
--info-color: #2196F3;
|
|
}
|
|
|
|
/* Dark theme (default) */
|
|
[data-theme="dark"] {
|
|
--bg-color: #1a1a1a;
|
|
--card-bg: #2d2d2d;
|
|
--text-color: #e0e0e0;
|
|
--border-color: #404040;
|
|
--display-badge-bg: rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
/* Light theme */
|
|
[data-theme="light"] {
|
|
--bg-color: #f5f5f5;
|
|
--card-bg: #ffffff;
|
|
--text-color: #333333;
|
|
--border-color: #e0e0e0;
|
|
--display-badge-bg: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
/* Default to dark theme */
|
|
body {
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
html {
|
|
background: var(--bg-color);
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
body.modal-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 0 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.header-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
h2 {
|
|
margin-bottom: 20px;
|
|
color: var(--text-color);
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.server-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
#server-version {
|
|
font-size: 0.75rem;
|
|
font-weight: 400;
|
|
color: var(--text-secondary);
|
|
background: var(--border-color);
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.status-badge {
|
|
font-size: 1.5rem;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.status-badge.online {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.status-badge.offline {
|
|
color: var(--danger-color);
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
/* WLED device health indicator */
|
|
.health-dot {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
vertical-align: middle;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.health-dot.health-online {
|
|
background-color: #4CAF50;
|
|
box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
|
|
}
|
|
|
|
.health-dot.health-offline {
|
|
background-color: var(--danger-color);
|
|
box-shadow: 0 0 6px rgba(244, 67, 54, 0.6);
|
|
}
|
|
|
|
.health-dot.health-unknown {
|
|
background-color: #9E9E9E;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.health-latency {
|
|
font-size: 0.7rem;
|
|
font-weight: 400;
|
|
color: #4CAF50;
|
|
margin-left: auto;
|
|
padding-left: 8px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.health-latency.offline {
|
|
color: var(--danger-color);
|
|
}
|
|
|
|
section {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.displays-grid,
|
|
.devices-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.devices-grid > .loading,
|
|
.devices-grid > .loading-spinner {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.add-device-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border: 2px dashed var(--border-color);
|
|
background: transparent;
|
|
min-height: 160px;
|
|
transition: border-color 0.2s, background 0.2s;
|
|
}
|
|
|
|
.add-device-card:hover {
|
|
border-color: var(--primary-color);
|
|
background: rgba(33, 150, 243, 0.05);
|
|
}
|
|
|
|
.add-device-icon {
|
|
font-size: 2.5rem;
|
|
font-weight: 300;
|
|
color: var(--text-secondary);
|
|
line-height: 1;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.add-device-card:hover .add-device-icon {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.add-device-label {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 12px 20px 20px;
|
|
position: relative;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.card-tutorial-btn {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
right: 10px;
|
|
background: none;
|
|
border: 1.5px solid var(--border-color);
|
|
color: var(--text-muted, #777);
|
|
font-size: 0.7rem;
|
|
font-weight: bold;
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border-radius: 50%;
|
|
transition: color 0.2s, background 0.2s, border-color 0.2s;
|
|
padding: 0;
|
|
}
|
|
|
|
.card-tutorial-btn:hover {
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
|
|
.card-remove-btn {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
background: none;
|
|
border: none;
|
|
color: #777;
|
|
font-size: 1rem;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: color 0.2s, background 0.2s;
|
|
}
|
|
|
|
.card-remove-btn:hover {
|
|
color: var(--danger-color);
|
|
background: rgba(244, 67, 54, 0.1);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
padding-right: 30px;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.device-url-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 0.7rem;
|
|
font-weight: 400;
|
|
color: var(--text-secondary);
|
|
background: var(--border-color);
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
letter-spacing: 0.03em;
|
|
font-family: monospace;
|
|
text-decoration: none;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.device-url-badge:hover {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
.device-url-icon {
|
|
font-size: 0.6rem;
|
|
}
|
|
|
|
.card-subtitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.card-meta {
|
|
font-size: 0.8rem;
|
|
color: #999;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.channel-indicator {
|
|
display: inline-flex;
|
|
gap: 2px;
|
|
align-items: center;
|
|
}
|
|
|
|
.channel-indicator .ch {
|
|
width: 8px;
|
|
height: 10px;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.badge {
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge.processing {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.badge.idle {
|
|
background: var(--warning-color);
|
|
color: white;
|
|
}
|
|
|
|
.badge.error {
|
|
background: var(--danger-color);
|
|
color: white;
|
|
}
|
|
|
|
.card-content {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.info-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-label {
|
|
color: #999;
|
|
}
|
|
|
|
.info-value {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
transition: opacity 0.2s;
|
|
flex: 1 1 auto;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--border-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.btn-icon {
|
|
min-width: auto;
|
|
padding: 8px 12px;
|
|
font-size: 1.2rem;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
transform: scale(1.1);
|
|
opacity: 1;
|
|
}
|
|
|
|
.display-card {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.display-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.display-index {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
color: var(--info-color);
|
|
}
|
|
|
|
.primary-star {
|
|
color: var(--primary-color);
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tab-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
border-bottom: 2px solid var(--border-color);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.tab-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 10px 18px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -2px;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
color: var(--primary-color);
|
|
border-bottom-color: var(--primary-color);
|
|
}
|
|
|
|
.tab-panel {
|
|
display: none;
|
|
}
|
|
|
|
.tab-panel.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Display Layout Visualization */
|
|
.layout-container {
|
|
position: relative;
|
|
background: transparent;
|
|
}
|
|
|
|
.layout-display {
|
|
position: absolute;
|
|
border: 3px solid;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
|
transition: box-shadow 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.layout-display:hover {
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
|
z-index: 10;
|
|
}
|
|
|
|
.layout-display.primary {
|
|
border-color: var(--primary-color);
|
|
background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
|
|
}
|
|
|
|
.layout-display.secondary {
|
|
border-color: var(--border-color);
|
|
background: linear-gradient(135deg, rgba(128, 128, 128, 0.1), rgba(128, 128, 128, 0.05));
|
|
}
|
|
|
|
.layout-position-label {
|
|
position: absolute;
|
|
top: 4px;
|
|
left: 6px;
|
|
font-size: 0.7rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.layout-index-label {
|
|
position: absolute;
|
|
bottom: 6px;
|
|
left: 6px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
background: var(--display-badge-bg);
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.layout-display-label {
|
|
text-align: center;
|
|
padding: 5px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.layout-display-label strong {
|
|
font-size: 0.9rem;
|
|
color: var(--text-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.layout-display-label small {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.primary-indicator {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 4px;
|
|
color: var(--primary-color);
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
|
|
/* Card brightness slider */
|
|
.brightness-control {
|
|
padding: 0;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.brightness-slider {
|
|
width: 100%;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.section-header h2 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.section-tip {
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
margin: 0 0 15px 0;
|
|
line-height: 1.5;
|
|
padding: 8px 12px;
|
|
background: rgba(33, 150, 243, 0.08);
|
|
border-left: 3px solid var(--info-color, #2196F3);
|
|
border-radius: 0 6px 6px 0;
|
|
}
|
|
|
|
.section-tip a {
|
|
color: var(--info-color, #2196F3);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
ul.section-tip {
|
|
list-style: disc;
|
|
padding-left: 28px;
|
|
}
|
|
|
|
ul.section-tip li {
|
|
margin: 2px 0;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
color: #999;
|
|
font-weight: 500;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="url"],
|
|
input[type="number"],
|
|
input[type="password"],
|
|
select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
input[type="range"] {
|
|
width: 100%;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
/* Better password field appearance */
|
|
input[type="password"] {
|
|
letter-spacing: 0.15em;
|
|
}
|
|
|
|
input:focus,
|
|
select:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
|
|
}
|
|
|
|
/* Remove browser autofill styling */
|
|
input:-webkit-autofill,
|
|
input:-webkit-autofill:hover,
|
|
input:-webkit-autofill:focus {
|
|
-webkit-box-shadow: 0 0 0 1000px var(--bg-color) inset;
|
|
-webkit-text-fill-color: var(--text-color);
|
|
transition: background-color 5000s ease-in-out 0s;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: #999;
|
|
}
|
|
|
|
.loading-spinner {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.loading-spinner::after {
|
|
content: '';
|
|
width: 28px;
|
|
height: 28px;
|
|
border: 3px solid var(--border-color);
|
|
border-top-color: var(--primary-color);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Full-page overlay spinner */
|
|
.overlay-spinner {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.overlay-spinner .progress-container {
|
|
position: relative;
|
|
width: 120px;
|
|
height: 120px;
|
|
}
|
|
|
|
.overlay-spinner .progress-ring {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.overlay-spinner .progress-ring-circle {
|
|
transition: stroke-dashoffset 0.1s linear;
|
|
stroke: var(--primary-color);
|
|
stroke-width: 4;
|
|
fill: transparent;
|
|
}
|
|
|
|
.overlay-spinner .progress-ring-bg {
|
|
stroke: rgba(255, 255, 255, 0.1);
|
|
stroke-width: 4;
|
|
fill: transparent;
|
|
}
|
|
|
|
.overlay-spinner .progress-content {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
}
|
|
|
|
.overlay-spinner .progress-percentage {
|
|
color: white;
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.overlay-spinner .spinner-text {
|
|
margin-top: 24px;
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 40px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(100px);
|
|
padding: 16px 24px;
|
|
border-radius: 8px;
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s, transform 0.3s;
|
|
z-index: 2001;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
|
|
min-width: 300px;
|
|
text-align: center;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
animation: toastShake 0.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes toastShake {
|
|
0%, 100% { transform: translateX(-50%) translateY(0); }
|
|
10%, 30%, 50%, 70%, 90% { transform: translateX(-50%) translateY(-5px); }
|
|
20%, 40%, 60%, 80% { transform: translateX(-50%) translateY(5px); }
|
|
}
|
|
|
|
.toast.success {
|
|
background: var(--primary-color);
|
|
}
|
|
|
|
.toast.error {
|
|
background: var(--danger-color);
|
|
}
|
|
|
|
.toast.info {
|
|
background: var(--info-color);
|
|
}
|
|
|
|
.metrics-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.metric {
|
|
text-align: center;
|
|
padding: 10px;
|
|
background: var(--bg-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.metric-value {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.metric-label {
|
|
font-size: 0.85rem;
|
|
color: #999;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
z-index: 2000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
animation: fadeIn 0.2s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
max-width: 500px;
|
|
width: 90%;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
animation: slideUp 0.3s ease-out;
|
|
}
|
|
|
|
#template-modal .modal-content {
|
|
max-width: 500px !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
#test-template-modal .modal-content {
|
|
max-width: 420px;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 24px 24px 16px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.modal-close-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #777;
|
|
font-size: 1.2rem;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: color 0.2s, background 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.modal-close-btn:hover {
|
|
color: var(--text-color);
|
|
background: rgba(128, 128, 128, 0.15);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
}
|
|
|
|
.modal-description {
|
|
color: #999;
|
|
margin-bottom: 20px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.password-input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.password-input-wrapper input {
|
|
flex: 1;
|
|
padding-right: 45px;
|
|
}
|
|
|
|
.password-toggle {
|
|
position: absolute;
|
|
right: 8px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
padding: 8px;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.password-toggle:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.input-hint {
|
|
display: block;
|
|
margin-top: 8px;
|
|
color: #666;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.slider-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.slider-row input[type="range"] {
|
|
flex: 1;
|
|
}
|
|
|
|
.slider-value {
|
|
min-width: 28px;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.error-message {
|
|
background: rgba(244, 67, 54, 0.1);
|
|
border: 1px solid var(--danger-color);
|
|
color: var(--danger-color);
|
|
padding: 12px;
|
|
border-radius: 4px;
|
|
margin-top: 15px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 16px 24px 24px 24px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.modal-footer .btn-icon {
|
|
min-width: 60px;
|
|
padding: 10px 20px;
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
/* Theme Toggle */
|
|
.theme-toggle {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
padding: 6px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
transition: transform 0.2s;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Footer */
|
|
.app-footer {
|
|
margin-top: 20px;
|
|
padding: 15px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer-content {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.footer-content p {
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
.footer-content strong {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.footer-content a {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.footer-content a:hover {
|
|
opacity: 0.8;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Interactive Calibration Preview Edges */
|
|
.calibration-preview {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
margin: 40px auto 20px;
|
|
background: var(--card-bg);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 8px;
|
|
overflow: visible;
|
|
}
|
|
|
|
#calibration-preview-canvas {
|
|
position: absolute;
|
|
top: -40px;
|
|
left: -40px;
|
|
width: calc(100% + 80px);
|
|
height: calc(100% + 80px);
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
}
|
|
|
|
.preview-screen {
|
|
position: absolute;
|
|
top: 37px;
|
|
left: 57px;
|
|
right: 57px;
|
|
bottom: 37px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 4px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
color: white;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.preview-screen-total {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
opacity: 0.9;
|
|
transition: color 0.2s;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.preview-screen-total:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.preview-screen-total.mismatch {
|
|
color: #FFC107;
|
|
}
|
|
|
|
.inputs-dimmed .edge-led-input {
|
|
opacity: 0.2;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.preview-screen-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.offset-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
padding: 4px 8px;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.offset-control input {
|
|
width: 36px;
|
|
padding: 0;
|
|
background: transparent;
|
|
border: none;
|
|
color: white;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
outline: none;
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.offset-control input::-webkit-outer-spin-button,
|
|
.offset-control input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.preview-edge {
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
background: rgba(128, 128, 128, 0.15);
|
|
transition: background 0.2s;
|
|
z-index: 2;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Edge test toggle zones — positioned outside the container border */
|
|
.edge-toggle {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
background: rgba(128, 128, 128, 0.1);
|
|
border: 1px solid rgba(128, 128, 128, 0.35);
|
|
border-radius: 3px;
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.edge-toggle:hover {
|
|
background: rgba(128, 128, 128, 0.25);
|
|
}
|
|
|
|
.preview-edge.edge-disabled {
|
|
opacity: 0.25;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.preview-edge.edge-disabled .edge-led-input {
|
|
pointer-events: auto;
|
|
opacity: 1;
|
|
}
|
|
|
|
.edge-toggle.edge-disabled {
|
|
opacity: 0.15;
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.toggle-top {
|
|
top: -16px;
|
|
left: 56px;
|
|
right: 56px;
|
|
height: 16px;
|
|
}
|
|
|
|
.toggle-bottom {
|
|
bottom: -16px;
|
|
left: 56px;
|
|
right: 56px;
|
|
height: 16px;
|
|
}
|
|
|
|
.toggle-left {
|
|
left: -16px;
|
|
top: 36px;
|
|
bottom: 36px;
|
|
width: 16px;
|
|
}
|
|
|
|
.toggle-right {
|
|
right: -16px;
|
|
top: 36px;
|
|
bottom: 36px;
|
|
width: 16px;
|
|
}
|
|
|
|
.edge-top {
|
|
top: 0;
|
|
left: 56px;
|
|
right: 56px;
|
|
height: 36px;
|
|
border-radius: 6px 6px 0 0;
|
|
flex-direction: row;
|
|
gap: 8px;
|
|
}
|
|
|
|
.edge-bottom {
|
|
bottom: 0;
|
|
left: 56px;
|
|
right: 56px;
|
|
height: 36px;
|
|
border-radius: 0 0 6px 6px;
|
|
flex-direction: row;
|
|
gap: 8px;
|
|
}
|
|
|
|
.edge-left {
|
|
left: 0;
|
|
top: 36px;
|
|
bottom: 36px;
|
|
width: 56px;
|
|
flex-direction: column;
|
|
border-radius: 6px 0 0 6px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.edge-right {
|
|
right: 0;
|
|
top: 36px;
|
|
bottom: 36px;
|
|
width: 56px;
|
|
flex-direction: column;
|
|
border-radius: 0 6px 6px 0;
|
|
gap: 4px;
|
|
}
|
|
|
|
.edge-led-input {
|
|
width: 46px;
|
|
padding: 2px 2px;
|
|
font-size: 12px;
|
|
box-sizing: border-box;
|
|
max-height: 100%;
|
|
text-align: center;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 3px;
|
|
color: inherit;
|
|
}
|
|
|
|
.edge-led-input:focus {
|
|
border-color: var(--primary-color);
|
|
outline: none;
|
|
}
|
|
|
|
.edge-top .edge-led-input,
|
|
.edge-bottom .edge-led-input {
|
|
width: 56px;
|
|
}
|
|
|
|
/* Hide spinner arrows on edge inputs to save space */
|
|
.edge-led-input::-webkit-outer-spin-button,
|
|
.edge-led-input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
.edge-led-input[type=number] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
/* Edge span bars */
|
|
.edge-span-bar {
|
|
position: absolute;
|
|
background: rgba(76, 175, 80, 0.3);
|
|
border: 1px solid rgba(76, 175, 80, 0.5);
|
|
border-radius: 2px;
|
|
cursor: grab;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.edge-span-bar:hover {
|
|
background: rgba(76, 175, 80, 0.45);
|
|
}
|
|
|
|
.edge-span-bar:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
/* Horizontal edges: bar spans left-right */
|
|
.edge-top .edge-span-bar,
|
|
.edge-bottom .edge-span-bar {
|
|
top: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
/* Vertical edges: bar spans top-bottom */
|
|
.edge-left .edge-span-bar,
|
|
.edge-right .edge-span-bar {
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
/* Resize handles — large transparent hit area with narrow visible strip */
|
|
.edge-span-handle {
|
|
position: absolute;
|
|
background: transparent;
|
|
z-index: 3;
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.edge-span-handle::after {
|
|
content: '';
|
|
position: absolute;
|
|
background: rgba(255, 255, 255, 0.75);
|
|
border: 1px solid rgba(76, 175, 80, 0.7);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.edge-span-bar:hover .edge-span-handle {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Horizontal handles */
|
|
.edge-top .edge-span-handle,
|
|
.edge-bottom .edge-span-handle {
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 16px;
|
|
cursor: ew-resize;
|
|
}
|
|
|
|
.edge-top .edge-span-handle::after,
|
|
.edge-bottom .edge-span-handle::after {
|
|
top: 3px;
|
|
bottom: 3px;
|
|
left: 6px;
|
|
width: 4px;
|
|
}
|
|
|
|
.edge-top .edge-span-handle-start,
|
|
.edge-bottom .edge-span-handle-start {
|
|
left: -8px;
|
|
}
|
|
|
|
.edge-top .edge-span-handle-end,
|
|
.edge-bottom .edge-span-handle-end {
|
|
right: -8px;
|
|
}
|
|
|
|
/* Vertical handles */
|
|
.edge-left .edge-span-handle,
|
|
.edge-right .edge-span-handle {
|
|
left: 0;
|
|
right: 0;
|
|
height: 16px;
|
|
cursor: ns-resize;
|
|
}
|
|
|
|
.edge-left .edge-span-handle::after,
|
|
.edge-right .edge-span-handle::after {
|
|
left: 3px;
|
|
right: 3px;
|
|
top: 6px;
|
|
height: 4px;
|
|
}
|
|
|
|
.edge-left .edge-span-handle-start,
|
|
.edge-right .edge-span-handle-start {
|
|
top: -8px;
|
|
}
|
|
|
|
.edge-left .edge-span-handle-end,
|
|
.edge-right .edge-span-handle-end {
|
|
bottom: -8px;
|
|
}
|
|
|
|
/* Ensure LED input is above span bar */
|
|
.edge-led-input {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Corner start-position buttons */
|
|
.preview-corner {
|
|
position: absolute;
|
|
width: 56px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
color: rgba(128, 128, 128, 0.4);
|
|
cursor: pointer;
|
|
z-index: 5;
|
|
transition: color 0.2s, transform 0.2s, text-shadow 0.2s;
|
|
user-select: none;
|
|
}
|
|
|
|
.preview-corner:hover {
|
|
color: rgba(76, 175, 80, 0.6);
|
|
}
|
|
|
|
.preview-corner.active:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.preview-corner.active {
|
|
color: #4CAF50;
|
|
text-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
|
|
font-size: 22px;
|
|
}
|
|
|
|
.corner-top-left { top: 0; left: 0; }
|
|
.corner-top-right { top: 0; right: 0; }
|
|
.corner-bottom-left { bottom: 0; left: 0; }
|
|
.corner-bottom-right { bottom: 0; right: 0; }
|
|
|
|
/* Direction toggle inside screen */
|
|
.direction-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 10px;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 12px;
|
|
color: white;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
user-select: none;
|
|
}
|
|
|
|
.direction-toggle:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.direction-toggle #direction-icon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.preview-hint {
|
|
text-align: center;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.displays-grid,
|
|
.devices-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 95%;
|
|
margin: 20px;
|
|
}
|
|
|
|
.modal-footer .btn {
|
|
min-width: 80px;
|
|
}
|
|
}
|
|
|
|
/* Tutorial System */
|
|
.tutorial-trigger-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--primary-color);
|
|
background: transparent;
|
|
color: var(--primary-color);
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: auto;
|
|
margin-right: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tutorial-trigger-btn:hover {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
#calibration-modal .modal-body {
|
|
position: relative;
|
|
}
|
|
|
|
.tutorial-overlay {
|
|
display: none;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tutorial-overlay.active {
|
|
display: block;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.tutorial-backdrop {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
transition: clip-path 0.3s ease;
|
|
}
|
|
|
|
.tutorial-ring {
|
|
position: absolute;
|
|
border: 2px solid var(--primary-color);
|
|
border-radius: 6px;
|
|
pointer-events: none;
|
|
transition: all 0.3s ease;
|
|
animation: tutorial-pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes tutorial-pulse {
|
|
0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6); }
|
|
50% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
|
|
}
|
|
|
|
.tutorial-tooltip {
|
|
position: absolute;
|
|
width: 260px;
|
|
background: var(--card-bg);
|
|
border: 2px solid var(--primary-color);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
z-index: 102;
|
|
pointer-events: auto;
|
|
animation: tutorial-tooltip-in 0.25s ease-out;
|
|
}
|
|
|
|
@keyframes tutorial-tooltip-in {
|
|
from { opacity: 0; transform: translateY(-8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.tutorial-tooltip-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.tutorial-step-counter {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.tutorial-close-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #777;
|
|
font-size: 1.3rem;
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: color 0.2s, background 0.2s;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tutorial-close-btn:hover {
|
|
color: var(--text-color);
|
|
background: rgba(128, 128, 128, 0.15);
|
|
}
|
|
|
|
.tutorial-tooltip-text {
|
|
margin: 0;
|
|
padding: 12px;
|
|
line-height: 1.5;
|
|
color: var(--text-color);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.tutorial-tooltip-nav {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.tutorial-prev-btn,
|
|
.tutorial-next-btn {
|
|
flex: 1;
|
|
padding: 6px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.tutorial-prev-btn {
|
|
background: var(--border-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.tutorial-next-btn {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.tutorial-prev-btn:hover:not(:disabled),
|
|
.tutorial-next-btn:hover:not(:disabled) {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.tutorial-prev-btn:disabled,
|
|
.tutorial-next-btn:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.tutorial-target {
|
|
position: relative;
|
|
z-index: 101 !important;
|
|
}
|
|
|
|
/* Fixed (viewport-level) tutorial overlay for device cards */
|
|
.tutorial-overlay-fixed {
|
|
position: fixed;
|
|
z-index: 10000;
|
|
}
|
|
|
|
.tutorial-overlay-fixed .tutorial-backdrop {
|
|
position: fixed;
|
|
}
|
|
|
|
.tutorial-overlay-fixed .tutorial-ring {
|
|
position: fixed;
|
|
}
|
|
|
|
.tutorial-overlay-fixed .tutorial-tooltip {
|
|
position: absolute;
|
|
z-index: 10002;
|
|
animation: none;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* target z-index for fixed overlay is set inline via JS (target is outside overlay DOM) */
|
|
|
|
|
|
/* ===========================
|
|
Capture Templates Styles
|
|
=========================== */
|
|
|
|
.templates-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.template-card {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
transition: box-shadow 0.2s;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
}
|
|
|
|
.template-card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.add-template-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 180px;
|
|
cursor: pointer;
|
|
border: 2px dashed var(--border-color);
|
|
background: transparent;
|
|
transition: border-color 0.2s, background 0.2s;
|
|
}
|
|
|
|
.add-template-card:hover {
|
|
border-color: var(--primary-color);
|
|
background: rgba(33, 150, 243, 0.05);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.add-template-icon {
|
|
font-size: 2.5rem;
|
|
font-weight: 300;
|
|
color: var(--text-secondary);
|
|
line-height: 1;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.add-template-card:hover .add-template-icon {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.add-template-label {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.template-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.template-card .template-card-header {
|
|
padding-right: 24px;
|
|
}
|
|
|
|
.template-name {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.badge {
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.template-description {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
margin-bottom: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.template-config {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.filter-chain {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.filter-chain-item {
|
|
font-size: 0.7rem;
|
|
background: var(--border-color);
|
|
color: var(--text-secondary);
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.filter-chain-arrow {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.template-config-details {
|
|
margin: 12px 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.template-config-details summary {
|
|
cursor: pointer;
|
|
color: var(--primary-color);
|
|
font-weight: 500;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.template-config-details summary:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.template-no-config {
|
|
margin: 12px 0;
|
|
font-size: 13px;
|
|
color: var(--primary-color);
|
|
font-weight: 500;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.config-table {
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.config-table td {
|
|
padding: 4px 8px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.config-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.config-key {
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
width: 1%;
|
|
}
|
|
|
|
.config-value {
|
|
color: var(--text-primary);
|
|
font-family: monospace;
|
|
}
|
|
|
|
.template-card-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: auto;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border-color);
|
|
align-items: center;
|
|
}
|
|
|
|
.template-card-actions .btn:not(.btn-icon) {
|
|
flex: 1;
|
|
}
|
|
|
|
.template-card-actions .btn-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* PP Filter List in Template Modal */
|
|
.pp-filter-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.pp-filter-empty {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
padding: 16px;
|
|
border: 1px dashed var(--border-color);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.pp-filter-card {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
background: var(--bg-secondary);
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.pp-filter-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.pp-filter-card.expanded .pp-filter-card-header {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pp-filter-card-chevron {
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
flex-shrink: 0;
|
|
width: 12px;
|
|
}
|
|
|
|
.pp-filter-card-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.pp-filter-card-summary {
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.pp-filter-card-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.btn-filter-action {
|
|
background: none;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
width: 26px;
|
|
height: 26px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 11px;
|
|
padding: 0;
|
|
}
|
|
|
|
.btn-filter-action:hover:not(:disabled) {
|
|
background: var(--border-color);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-filter-action:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-filter-remove:hover:not(:disabled) {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
border-color: rgba(239, 68, 68, 0.4);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.pp-filter-card-options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.pp-filter-option {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.pp-filter-option label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.pp-filter-option input[type="range"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.pp-add-filter-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.pp-add-filter-select {
|
|
flex: 1;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--card-bg);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.pp-add-filter-btn {
|
|
width: 34px;
|
|
height: 34px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--card-bg);
|
|
color: var(--text-primary);
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.pp-add-filter-btn:hover {
|
|
background: var(--border-color);
|
|
}
|
|
|
|
/* Template Test Section */
|
|
.template-test-section {
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.template-test-section h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 12px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.test-results-container {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.test-preview-section,
|
|
.test-performance-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.test-preview-section:last-child,
|
|
.test-performance-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.test-preview-section h4,
|
|
.test-performance-section h4 {
|
|
margin-top: 0;
|
|
margin-bottom: 12px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.test-preview-image {
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.test-preview-image img {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.test-performance-stats {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.stat-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.stat-item span {
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.stat-item strong {
|
|
color: var(--text-color);
|
|
font-weight: 600;
|
|
font-family: monospace;
|
|
}
|
|
|
|
/* Empty state */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--text-secondary);
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Stream type badges */
|
|
.badge-raw {
|
|
background: #1976d2;
|
|
color: white;
|
|
}
|
|
|
|
.badge-processed {
|
|
background: #7b1fa2;
|
|
color: white;
|
|
}
|
|
|
|
/* Stream info panel in stream selector modal */
|
|
.stream-info-panel {
|
|
padding: 4px 0 0 0;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Stream sub-tabs */
|
|
.stream-tab-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
border-bottom: 2px solid var(--border-color);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.stream-tab-btn {
|
|
background: none;
|
|
border: none;
|
|
padding: 8px 14px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -2px;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.stream-tab-btn:hover {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.stream-tab-btn.active {
|
|
color: var(--primary-color);
|
|
border-bottom-color: var(--primary-color);
|
|
}
|
|
|
|
.stream-tab-count {
|
|
background: var(--border-color);
|
|
color: var(--text-secondary);
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
padding: 1px 6px;
|
|
border-radius: 8px;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.stream-tab-btn.active .stream-tab-count {
|
|
background: var(--primary-color);
|
|
color: #fff;
|
|
}
|
|
|
|
.stream-tab-panel {
|
|
display: none;
|
|
}
|
|
|
|
.stream-tab-panel.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Sub-tab content sections */
|
|
.subtab-section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.subtab-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.subtab-section-header {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
margin: 0 0 12px 0;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Image Lightbox */
|
|
.lightbox {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.92);
|
|
z-index: 10000;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: zoom-out;
|
|
}
|
|
|
|
.lightbox.active {
|
|
display: flex;
|
|
}
|
|
|
|
.lightbox-content {
|
|
position: relative;
|
|
max-width: 95%;
|
|
max-height: 95%;
|
|
cursor: default;
|
|
}
|
|
|
|
.lightbox-content img {
|
|
max-width: 100%;
|
|
max-height: 90vh;
|
|
object-fit: contain;
|
|
border-radius: 4px;
|
|
display: block;
|
|
}
|
|
|
|
.lightbox-close {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border: none;
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s;
|
|
z-index: 1;
|
|
}
|
|
|
|
.lightbox-close:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.lightbox-stats {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
left: 8px;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(8px);
|
|
color: white;
|
|
padding: 8px 14px;
|
|
border-radius: 6px;
|
|
font-size: 0.8rem;
|
|
display: flex;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.lightbox-stats .stat-item {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.lightbox-stats .stat-item span {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.lightbox-stats .stat-item strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Display Picker Lightbox */
|
|
.display-picker-content {
|
|
max-width: 900px;
|
|
width: 90%;
|
|
text-align: center;
|
|
}
|
|
|
|
.display-picker-title {
|
|
color: white;
|
|
font-size: 1.3rem;
|
|
margin-bottom: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.display-picker-canvas {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 2px dashed rgba(255, 255, 255, 0.15);
|
|
border-radius: 8px;
|
|
padding: 24px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.layout-display-pickable {
|
|
cursor: pointer !important;
|
|
border: 2px solid var(--border-color) !important;
|
|
background: linear-gradient(135deg, rgba(128, 128, 128, 0.08), rgba(128, 128, 128, 0.03)) !important;
|
|
}
|
|
|
|
.layout-display-pickable:hover {
|
|
box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
|
|
border-color: var(--primary-color) !important;
|
|
}
|
|
|
|
.layout-display-pickable.selected {
|
|
border-color: var(--primary-color) !important;
|
|
box-shadow: 0 0 16px rgba(76, 175, 80, 0.5);
|
|
background: rgba(76, 175, 80, 0.12) !important;
|
|
}
|
|
|
|
/* Display picker button in forms */
|
|
.btn-display-picker {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.btn-display-picker:hover {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.templates-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Static image stream styles */
|
|
.image-preview-container {
|
|
text-align: center;
|
|
margin: 12px 0;
|
|
padding: 12px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
.stream-image-preview {
|
|
max-width: 100%;
|
|
max-height: 200px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
.stream-image-info {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
margin-top: 6px;
|
|
}
|
|
.validation-status {
|
|
font-size: 0.8rem;
|
|
margin-top: 4px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
.validation-status.success {
|
|
color: #4caf50;
|
|
}
|
|
.validation-status.error {
|
|
color: #f44336;
|
|
}
|
|
.validation-status.loading {
|
|
color: var(--text-muted);
|
|
}
|
|
.stream-card-props {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.stream-card-prop {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
background: var(--border-color);
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 180px;
|
|
}
|
|
|
|
.stream-card-prop-full {
|
|
max-width: 100%;
|
|
word-break: break-all;
|
|
white-space: normal;
|
|
font-size: 0.7rem;
|
|
}
|
|
|