851 lines
15 KiB
CSS
851 lines
15 KiB
CSS
/* Dark Mode Professional UI - Alta Video Camera Proxy */
|
|
|
|
/* CSS Variables for Dark Mode Color Palette */
|
|
:root {
|
|
--bg-primary: #1E1E1E;
|
|
--bg-secondary: #2D2D30;
|
|
--border: #3C3C3C;
|
|
--text-primary: #E0E0E0;
|
|
--text-secondary: #999999;
|
|
--accent-primary: #0E7AFE;
|
|
--accent-primary-hover: #0A5FD9;
|
|
--success: #4CAF50;
|
|
--error: #F44336;
|
|
--warning: #FF9800;
|
|
--input-bg: #1E1E1E;
|
|
--button-outline: #555555;
|
|
--card-bg: #2D2D30;
|
|
--hover-bg: #3C3C3C;
|
|
--tab-active: #0E7AFE;
|
|
}
|
|
|
|
/* Reset and Base Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* App Container */
|
|
.app-container {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Main Layout */
|
|
.main-layout {
|
|
flex: 1;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Left Sidebar - Available Devices */
|
|
.devices-sidebar {
|
|
width: 300px;
|
|
background: var(--card-bg);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.sidebar-header h2 {
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Device Search */
|
|
.device-search-container {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.device-search-input {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--button-outline);
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
background: var(--input-bg);
|
|
color: var(--text-primary);
|
|
transition: border-color 0.2s ease;
|
|
}
|
|
|
|
.device-search-input::placeholder {
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
}
|
|
|
|
.device-search-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
/* Device List */
|
|
.device-list-container {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.device-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Accessible, bounded virtual hierarchy */
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.tree-results {
|
|
min-height: 16px;
|
|
margin-top: 6px;
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.virtual-tree {
|
|
position: relative;
|
|
outline: none;
|
|
}
|
|
|
|
.virtual-tree:focus-visible {
|
|
box-shadow: inset 0 0 0 2px var(--accent-primary);
|
|
}
|
|
|
|
.virtual-tree.has-hidden-selection::after {
|
|
content: 'Selected camera hidden';
|
|
position: sticky;
|
|
bottom: 4px;
|
|
left: 8px;
|
|
z-index: 3;
|
|
display: inline-block;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
background: var(--bg-primary);
|
|
color: var(--warning);
|
|
font-size: 10px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.virtual-tree-spacer {
|
|
position: relative;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.virtual-tree-window {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
will-change: transform;
|
|
}
|
|
|
|
.tree-row {
|
|
position: absolute;
|
|
right: 0;
|
|
left: 0;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding-right: 8px;
|
|
border-left: 2px solid transparent;
|
|
color: var(--text-primary);
|
|
cursor: default;
|
|
user-select: none;
|
|
}
|
|
|
|
.tree-row:hover,
|
|
.tree-row.active {
|
|
background: var(--hover-bg);
|
|
}
|
|
|
|
.tree-row.active {
|
|
border-left-color: var(--accent-primary);
|
|
box-shadow: inset 0 0 0 1px rgba(14, 122, 254, 0.35);
|
|
}
|
|
|
|
.tree-row.selected {
|
|
background: rgba(14, 122, 254, 0.28);
|
|
}
|
|
|
|
.tree-site {
|
|
padding-left: 8px;
|
|
color: var(--accent-primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.tree-group {
|
|
padding-left: 24px;
|
|
color: #b8cbea;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tree-camera {
|
|
padding-left: 42px;
|
|
}
|
|
|
|
.tree-camera::before {
|
|
content: '';
|
|
width: 7px;
|
|
height: 7px;
|
|
flex: 0 0 7px;
|
|
border-radius: 50%;
|
|
background: var(--error);
|
|
}
|
|
|
|
.tree-camera.online::before {
|
|
background: var(--success);
|
|
}
|
|
|
|
.tree-camera.proxy-active {
|
|
border-right: 3px solid var(--success);
|
|
}
|
|
|
|
.tree-disclosure {
|
|
width: 10px;
|
|
flex: 0 0 10px;
|
|
color: var(--text-secondary);
|
|
font-size: 9px;
|
|
text-align: center;
|
|
}
|
|
|
|
.tree-label {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tree-address {
|
|
margin-left: auto;
|
|
overflow: hidden;
|
|
color: var(--text-secondary);
|
|
font-family: Consolas, monospace;
|
|
font-size: 10px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tree-badge {
|
|
flex: 0 0 auto;
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.tree-badge.pending,
|
|
.tree-row.pending-deletion {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.tree-warning {
|
|
width: 14px;
|
|
height: 14px;
|
|
flex: 0 0 14px;
|
|
border: 1px solid var(--warning);
|
|
border-radius: 50%;
|
|
color: var(--warning);
|
|
font-size: 9px;
|
|
line-height: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.device-item {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 12px;
|
|
margin-bottom: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
}
|
|
|
|
.device-item:hover {
|
|
background: var(--hover-bg);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.device-item.selected {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.device-name {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: inherit;
|
|
flex: 1;
|
|
}
|
|
|
|
/* Device Status Dot */
|
|
.device-status-dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
margin-left: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.device-status-dot.online {
|
|
background: var(--success);
|
|
box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
|
|
}
|
|
|
|
.device-status-dot.offline {
|
|
background: var(--error);
|
|
box-shadow: 0 0 6px rgba(244, 67, 54, 0.6);
|
|
}
|
|
|
|
/* Site Group Headers */
|
|
.site-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 10px;
|
|
margin-bottom: 4px;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
user-select: none;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.site-group-header:hover {
|
|
background: var(--hover-bg);
|
|
}
|
|
|
|
.site-group-arrow {
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
width: 12px;
|
|
flex-shrink: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.site-group-name {
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
color: var(--accent-primary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.site-group-count {
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 1px 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.placeholder-text {
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
text-align: center;
|
|
padding: 20px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Main Content Area */
|
|
.main-content {
|
|
flex: 1;
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.content-header {
|
|
margin-bottom: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.content-header h1 {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: var(--tab-active);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Content Sections */
|
|
.content-section {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.content-section h2 {
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
color: var(--tab-active);
|
|
margin: 0 0 16px 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Buttons */
|
|
button {
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-transform: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: var(--accent-primary-hover);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success);
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover:not(:disabled) {
|
|
background: #45a049;
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--button-outline);
|
|
}
|
|
|
|
.btn-outline:hover:not(:disabled) {
|
|
background: var(--hover-bg);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Connection Status */
|
|
.connection-status {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.status-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.status-row label {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: var(--text-primary);
|
|
min-width: 50px;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
border-radius: 12px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--error);
|
|
}
|
|
|
|
.status-dot.online {
|
|
background: var(--success);
|
|
}
|
|
|
|
.status-dot.offline {
|
|
background: var(--error);
|
|
}
|
|
|
|
.status-text {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Connection Controls */
|
|
.connection-controls {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Proxy Controls */
|
|
.proxy-controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.input-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.input-row label {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: var(--text-primary);
|
|
min-width: 80px;
|
|
}
|
|
|
|
.input-row input {
|
|
flex: 1;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--button-outline);
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
background: var(--input-bg);
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
}
|
|
|
|
.input-row input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.proxy-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Status Messages */
|
|
.status-message {
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
margin: 8px 0;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
display: none;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.status-message.success {
|
|
background-color: rgba(76, 175, 80, 0.1);
|
|
color: var(--success);
|
|
border-color: var(--success);
|
|
}
|
|
|
|
.status-message.error {
|
|
background-color: rgba(244, 67, 54, 0.1);
|
|
color: var(--error);
|
|
border-color: var(--error);
|
|
}
|
|
|
|
.status-message.warning {
|
|
background-color: rgba(255, 152, 0, 0.1);
|
|
color: var(--warning);
|
|
border-color: var(--warning);
|
|
}
|
|
|
|
.status-message.info {
|
|
background-color: rgba(14, 122, 254, 0.1);
|
|
color: var(--accent-primary);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
/* Dark Scrollbars */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--button-outline);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--hover-bg);
|
|
}
|
|
|
|
/* Loading Animation */
|
|
@keyframes pulse {
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0.6; }
|
|
100% { opacity: 1; }
|
|
}
|
|
|
|
button:disabled {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
/* Update Button */
|
|
.btn-update {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--button-outline);
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
}
|
|
|
|
.btn-update:hover:not(:disabled) {
|
|
color: var(--text-primary);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.btn-update:hover:not(:disabled) .update-icon {
|
|
animation: spin 0.6s ease;
|
|
}
|
|
|
|
.btn-update:disabled .update-icon {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
.btn-update.update-available {
|
|
color: var(--success);
|
|
border-color: var(--success);
|
|
box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
.btn-update.update-available::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -3px;
|
|
right: -3px;
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--success);
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
|
|
}
|
|
|
|
.update-icon {
|
|
font-size: 14px;
|
|
display: inline-block;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Bridge pairing */
|
|
.section-help {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
margin: 0 0 14px;
|
|
}
|
|
|
|
.pairing-section .paired {
|
|
color: var(--success);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pairing-section .unpaired {
|
|
color: var(--warning);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pairing-secret-row {
|
|
margin: 14px 0;
|
|
}
|
|
|
|
.pairing-secret-row label,
|
|
.pairing-secret-row small {
|
|
display: block;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.pairing-secret-row input {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
font-family: monospace;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 10px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
/* Update notification */
|
|
.update-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.update-modal-card {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
width: 480px;
|
|
max-width: 90%;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.update-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.update-modal-header h3 {
|
|
font-size: 16px;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.update-modal-close {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
padding: 0 4px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.update-modal-close:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.update-modal-body {
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.update-modal-message {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.update-modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 16px 20px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.devices-sidebar {
|
|
width: 150px;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
.connection-controls,
|
|
.proxy-buttons {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
/* Focus States for Accessibility */
|
|
button:focus,
|
|
input:focus,
|
|
select:focus {
|
|
outline: 2px solid var(--accent-primary);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
/* High Contrast Support */
|
|
@media (prefers-contrast: high) {
|
|
:root {
|
|
--border: #666666;
|
|
--text-secondary: #CCCCCC;
|
|
--button-outline: #777777;
|
|
}
|
|
}
|
|
|