* { 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; } /* Light theme */ [data-theme="light"] { --bg-color: #f5f5f5; --card-bg: #ffffff; --text-color: #333333; --border-color: #e0e0e0; } /* Default to dark theme */ body { background: var(--bg-color); color: var(--text-color); } html { background: var(--bg-color); } 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; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 2px solid var(--border-color); margin-bottom: 30px; } 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; } .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; } } section { margin-bottom: 40px; } .displays-grid, .devices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; transition: transform 0.2s, box-shadow 0.2s; } .card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .card-title { font-size: 1.2rem; font-weight: 600; } .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); } .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); } .badge-primary { background: var(--primary-color); color: white; } .badge-secondary { background: var(--border-color); color: var(--text-secondary); } /* Display Layout Visualization */ .display-layout-preview { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 20px; } .display-layout-preview h3 { margin: 0 0 15px 0; font-size: 1.1rem; color: var(--text-color); } .display-layout-canvas { background: var(--bg-color); border: 2px dashed var(--border-color); border-radius: 8px; padding: 30px; min-height: 300px; display: flex; align-items: center; justify-content: center; } .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: transform 0.2s, box-shadow 0.2s; cursor: help; } .layout-display:hover { transform: scale(1.05); 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-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: 5px; right: 5px; color: var(--primary-color); font-size: 1.2rem; text-shadow: 0 0 3px rgba(0, 0, 0, 0.3); } .layout-legend { display: flex; gap: 20px; justify-content: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-color); } .legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); } .legend-dot { width: 16px; height: 16px; border-radius: 3px; border: 2px solid; } .legend-dot.primary { border-color: var(--primary-color); background: rgba(76, 175, 80, 0.2); } .legend-dot.secondary { border-color: var(--border-color); background: rgba(128, 128, 128, 0.2); } .add-device-section { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; } .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; } /* 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; } .toast { position: fixed; bottom: 20px; right: 20px; padding: 15px 20px; border-radius: 4px; color: white; font-weight: 600; opacity: 0; transition: opacity 0.3s; z-index: 1000; } .toast.show { opacity: 1; } .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; } @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); } .modal-header h2 { margin: 0; font-size: 1.5rem; color: var(--text-color); } .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; } .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: 12px; } .modal-footer .btn { min-width: 100px; } /* 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); } @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 { flex-direction: column-reverse; } .modal-footer .btn { width: 100%; } }