Files
Alta-Proxy-Tool/styles.css
T
peji 0f12915b47 Remove dead code from profile and password proxy systems
Strip ~966 lines of unused code after transitioning to cookie-only
auth: profile CRUD handlers, encryption helpers, username/password
proxy launcher, proxy check/version handlers, dead preload methods,
orphaned CSS (modals, profiles, nav tabs, collapsible sections),
unused DOM elements and renderer functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 21:27:11 -05:00

461 lines
8.3 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: 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);
}
.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;
text-align: center;
}
.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;
}
/* 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;
}
}