909 lines
14 KiB
CSS
909 lines
14 KiB
CSS
/* Global Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: #1a1a1a;
|
|
color: #ffffff;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.app-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* Header */
|
|
.app-header {
|
|
background: #2d2d2d;
|
|
padding: 10px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 2px solid #333;
|
|
}
|
|
|
|
.logo h1 {
|
|
font-size: 20px;
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.connection-status {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.status {
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status.connected {
|
|
background: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.status.disconnected {
|
|
background: #f44336;
|
|
color: white;
|
|
}
|
|
|
|
#session-info {
|
|
font-size: 12px;
|
|
color: #bbb;
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Video Panel */
|
|
.video-panel {
|
|
flex: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #1e1e1e;
|
|
border-right: 1px solid #333;
|
|
}
|
|
|
|
.video-container {
|
|
position: relative;
|
|
flex: 1;
|
|
background: #000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
#remoteVideo {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
background: #000;
|
|
}
|
|
|
|
.video-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.video-overlay.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.no-stream-message {
|
|
text-align: center;
|
|
color: #888;
|
|
}
|
|
|
|
.no-stream-message h3 {
|
|
margin-bottom: 10px;
|
|
color: #aaa;
|
|
}
|
|
|
|
/* Video Controls */
|
|
.video-controls {
|
|
background: #2d2d2d;
|
|
padding: 15px;
|
|
border-top: 1px solid #333;
|
|
}
|
|
|
|
.control-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.control-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: bold;
|
|
color: #ccc;
|
|
}
|
|
|
|
.camera-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.camera-btn {
|
|
padding: 8px 16px;
|
|
border: 1px solid #555;
|
|
background: #3a3a3a;
|
|
color: #fff;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.camera-btn:hover {
|
|
background: #4a4a4a;
|
|
border-color: #777;
|
|
}
|
|
|
|
.camera-btn.active {
|
|
background: #4CAF50;
|
|
border-color: #4CAF50;
|
|
}
|
|
|
|
.camera-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Image Controls */
|
|
.image-controls {
|
|
background: #2a2a2a;
|
|
padding: 15px;
|
|
border-top: 1px solid #333;
|
|
}
|
|
|
|
.image-controls h4 {
|
|
margin-bottom: 15px;
|
|
color: #4CAF50;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.slider-group {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.slider-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-size: 12px;
|
|
color: #ccc;
|
|
}
|
|
|
|
.slider-group input[type="range"] {
|
|
width: 100%;
|
|
height: 4px;
|
|
background: #555;
|
|
outline: none;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.slider-group input[type="range"]::-webkit-slider-thumb {
|
|
appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
background: #4CAF50;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.checkbox-group label {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
color: #ccc;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* Recording Controls */
|
|
.recording-controls {
|
|
background: #2a2a2a;
|
|
padding: 15px;
|
|
border-top: 1px solid #333;
|
|
}
|
|
|
|
.recording-controls h4 {
|
|
margin-bottom: 15px;
|
|
color: #ff5722;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.recording-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-record {
|
|
background: #f44336;
|
|
border: none;
|
|
color: white;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-record:hover:not(:disabled) {
|
|
background: #d32f2f;
|
|
}
|
|
|
|
.btn-stop {
|
|
background: #757575;
|
|
border: none;
|
|
color: white;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-stop:hover:not(:disabled) {
|
|
background: #616161;
|
|
}
|
|
|
|
.btn-play {
|
|
background: #2196F3;
|
|
border: none;
|
|
color: white;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-play:hover:not(:disabled) {
|
|
background: #1976D2;
|
|
}
|
|
|
|
.recording-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 11px;
|
|
color: #888;
|
|
}
|
|
|
|
/* Control Panel */
|
|
.control-panel {
|
|
flex: 1;
|
|
background: #252525;
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-width: 380px;
|
|
min-width: 300px;
|
|
transition: max-width 0.3s ease;
|
|
}
|
|
|
|
.control-panel.logs-collapsed {
|
|
max-width: 320px;
|
|
}
|
|
|
|
.control-panel > div {
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
/* Panel Sections */
|
|
.panel-section {
|
|
padding: 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.panel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.panel-header.clickable {
|
|
cursor: pointer;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.panel-header.clickable:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
margin: -5px;
|
|
padding: 5px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.collapse-icon {
|
|
font-size: 12px;
|
|
transition: transform 0.3s ease;
|
|
color: #888;
|
|
}
|
|
|
|
.collapse-icon.collapsed {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.panel-content {
|
|
transition: all 0.3s ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel-content.collapsed {
|
|
max-height: 0;
|
|
padding: 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Connection Panel */
|
|
.connection-panel {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.connection-panel.collapsed {
|
|
flex: none;
|
|
}
|
|
|
|
.connection-panel h3 {
|
|
margin-bottom: 8px;
|
|
color: #4CAF50;
|
|
font-size: 13px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
}
|
|
|
|
.connection-panel h3 span {
|
|
font-size: 10px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.input-group {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.input-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-size: 12px;
|
|
color: #ccc;
|
|
}
|
|
|
|
.input-group input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #555;
|
|
background: #3a3a3a;
|
|
color: #fff;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary {
|
|
background: #4CAF50;
|
|
border: none;
|
|
color: white;
|
|
padding: 10px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: #45a049;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #757575;
|
|
border: none;
|
|
color: white;
|
|
padding: 10px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: #616161;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 6px 12px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Devices and Sessions Panels */
|
|
.devices-panel,
|
|
.sessions-panel {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.devices-panel h3,
|
|
.sessions-panel h3 {
|
|
margin-bottom: 8px;
|
|
color: #2196F3;
|
|
font-size: 13px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.compact-list {
|
|
max-height: 180px;
|
|
overflow-y: auto;
|
|
transition: max-height 0.3s ease;
|
|
}
|
|
|
|
.control-panel.logs-collapsed .compact-list {
|
|
max-height: 250px;
|
|
}
|
|
|
|
.device-item,
|
|
.session-item {
|
|
background: #3a3a3a;
|
|
margin-bottom: 6px;
|
|
padding: 8px;
|
|
border-radius: 4px;
|
|
border-left: 3px solid #4CAF50;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.device-item:hover,
|
|
.session-item:hover {
|
|
background: #404040;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.device-info {
|
|
font-size: 11px;
|
|
margin-bottom: 4px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.device-info strong {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.device-capabilities {
|
|
font-size: 10px;
|
|
color: #888;
|
|
margin-bottom: 6px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.device-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-device {
|
|
background: #2196F3;
|
|
border: none;
|
|
color: white;
|
|
padding: 3px 6px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-size: 9px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-device:hover {
|
|
background: #1976D2;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.btn-device.btn-success {
|
|
background: #4CAF50;
|
|
}
|
|
|
|
.btn-device.btn-success:hover {
|
|
background: #45a049;
|
|
}
|
|
|
|
.btn-icon {
|
|
background: none;
|
|
border: none;
|
|
color: #888;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 2px;
|
|
border-radius: 3px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
color: #fff;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.no-devices,
|
|
.no-sessions {
|
|
text-align: center;
|
|
color: #666;
|
|
font-size: 12px;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Session styles */
|
|
.session-item {
|
|
border-left: 3px solid #2196F3;
|
|
}
|
|
|
|
.session-item.session-pending {
|
|
border-left-color: #FF9800;
|
|
}
|
|
|
|
.session-item.session-active {
|
|
border-left-color: #4CAF50;
|
|
}
|
|
|
|
.session-item.session-rejected {
|
|
border-left-color: #f44336;
|
|
}
|
|
|
|
.session-item.session-ended {
|
|
border-left-color: #666;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.session-item.active {
|
|
background: #4a4a4a;
|
|
border: 2px solid #4CAF50;
|
|
border-left: 3px solid #4CAF50;
|
|
}
|
|
|
|
.session-header {
|
|
font-size: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.session-header strong {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.status-pending { color: #FF9800; }
|
|
.status-active { color: #4CAF50; }
|
|
.status-rejected { color: #f44336; }
|
|
.status-ended { color: #666; }
|
|
|
|
.session-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 2px 6px;
|
|
font-size: 10px;
|
|
border: none;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
color: white;
|
|
}
|
|
|
|
.btn-small.btn-primary {
|
|
background: #2196F3;
|
|
}
|
|
|
|
.btn-small.btn-success {
|
|
background: #4CAF50;
|
|
}
|
|
|
|
.btn-small.btn-secondary {
|
|
background: #757575;
|
|
}
|
|
|
|
.btn-small.btn-danger {
|
|
background: #f44336;
|
|
}
|
|
|
|
.btn-small:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Logs Panel */
|
|
.logs-panel {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.logs-panel.collapsed {
|
|
flex: none;
|
|
}
|
|
|
|
.logs-panel h3 {
|
|
margin-bottom: 8px;
|
|
color: #FF9800;
|
|
font-size: 13px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.logs-container {
|
|
background: #1a1a1a;
|
|
border: 1px solid #333;
|
|
border-radius: 4px;
|
|
padding: 6px;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 10px;
|
|
overflow-y: auto;
|
|
margin-bottom: 8px;
|
|
max-height: 120px;
|
|
transition: max-height 0.3s ease;
|
|
}
|
|
|
|
.control-panel.logs-collapsed .logs-container {
|
|
max-height: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: none;
|
|
}
|
|
|
|
.log-entry {
|
|
margin-bottom: 2px;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.log-entry.info {
|
|
color: #2196F3;
|
|
}
|
|
|
|
.log-entry.success {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.log-entry.warning {
|
|
color: #FF9800;
|
|
}
|
|
|
|
.log-entry.error {
|
|
color: #f44336;
|
|
}
|
|
|
|
.log-timestamp {
|
|
color: #666;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* Scrollbars */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #2a2a2a;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #555;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #666;
|
|
}
|
|
|
|
/* Enhanced Button Styles */
|
|
.video-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.btn-action {
|
|
padding: 8px 12px;
|
|
background: #2196F3;
|
|
border: none;
|
|
border-radius: 4px;
|
|
color: white;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.btn-action:hover {
|
|
background: #1976D2;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
|
|
}
|
|
|
|
.btn-action:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-action:disabled {
|
|
background: #555;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
/* Connection Panel Enhancements */
|
|
.button-group {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.connection-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 10px;
|
|
padding: 8px 12px;
|
|
background: #1e1e1e;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
border: 1px solid #333;
|
|
}
|
|
|
|
#connection-status-text {
|
|
color: #ccc;
|
|
}
|
|
|
|
#ping-indicator {
|
|
color: #4CAF50;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Fullscreen Video Mode */
|
|
.video-container.fullscreen {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
z-index: 9999;
|
|
background: #000;
|
|
}
|
|
|
|
.video-container.fullscreen #remoteVideo {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
max-height: 180px;
|
|
overflow-y: auto;
|
|
background: #181818;
|
|
border: 1px solid #333;
|
|
padding: 8px;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
color: #eee;
|
|
border-radius: 4px;
|
|
margin-bottom: 8px;
|
|
/* Video Zoom */
|
|
.video-container.zoomed #remoteVideo {
|
|
transform: scale(1.5);
|
|
cursor: move;
|
|
}
|
|
|
|
/* Tooltip Styles */
|
|
.tooltip {
|
|
position: relative;
|
|
}
|
|
|
|
.tooltip::after {
|
|
content: attr(title);
|
|
position: absolute;
|
|
bottom: 125%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: #333;
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.tooltip:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Status Indicators */
|
|
.status-indicator {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.status-indicator.online {
|
|
background: #4CAF50;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.status-indicator.offline {
|
|
background: #f44336;
|
|
}
|
|
|
|
.status-indicator.connecting {
|
|
background: #FF9800;
|
|
animation: blink 1s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
100% { opacity: 1; }
|
|
}
|
|
|
|
@keyframes blink {
|
|
0%, 50% { opacity: 1; }
|
|
51%, 100% { opacity: 0; }
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1200px) {
|
|
.main-content {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.control-panel {
|
|
max-width: none;
|
|
max-height: 300px;
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.control-panel > div {
|
|
min-width: 250px;
|
|
border-right: 1px solid #333;
|
|
border-bottom: none;
|
|
}
|
|
} |