/* 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: 220px; 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: 8px; } .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); } } /* Update Modal */ .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 0 12px 0; } .update-modal-notes { font-size: 13px; color: var(--text-secondary); line-height: 1.5; white-space: pre-wrap; max-height: 200px; overflow-y: auto; padding: 12px; background: var(--bg-primary); border-radius: 4px; border: 1px solid var(--border); } .update-modal-notes:empty { display: none; } .update-progress-container { margin-top: 16px; display: flex; align-items: center; gap: 12px; } .update-progress-track { flex: 1; height: 8px; background: var(--bg-primary); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); } .update-progress-fill { height: 100%; background: var(--accent-primary); border-radius: 4px; transition: width 0.3s ease; } .update-progress-text { font-size: 12px; font-weight: bold; color: var(--text-secondary); min-width: 36px; text-align: right; } .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; } }