Spaces:
Running
Running
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| padding: 20px; | |
| } | |
| /* Page Header */ | |
| .page-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 16px; | |
| margin-bottom: 20px; | |
| } | |
| .page-header h1 { | |
| color: white; | |
| font-size: 32px; | |
| font-weight: 700; | |
| text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); | |
| } | |
| .header-icon { | |
| width: 64px; | |
| height: 64px; | |
| object-fit: contain; | |
| filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); | |
| } | |
| .container { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| background: white; | |
| border-radius: 20px; | |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); | |
| overflow: hidden; | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 0; | |
| } | |
| .panel { | |
| padding: 30px; | |
| } | |
| .panel.editor-panel { | |
| border-right: 1px solid #e0e0e0; | |
| } | |
| h1 { | |
| color: #333; | |
| margin-bottom: 10px; | |
| font-size: 24px; | |
| } | |
| .subtitle { | |
| color: #666; | |
| margin-bottom: 20px; | |
| font-size: 14px; | |
| } | |
| /* Compile Status (below editor) */ | |
| .compile-status { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 12px; | |
| border-radius: 8px; | |
| margin-bottom: 15px; | |
| font-size: 14px; | |
| } | |
| .compile-status.idle { | |
| background: #f5f5f5; | |
| color: #666; | |
| } | |
| .compile-status.idle .status-dot { | |
| background: #999; | |
| } | |
| .compile-status.success { | |
| background: #d4edda; | |
| color: #155724; | |
| } | |
| .compile-status.success .status-dot { | |
| background: #28a745; | |
| box-shadow: 0 0 8px #28a745; | |
| } | |
| .compile-status.error { | |
| background: #f8d7da; | |
| color: #721c24; | |
| } | |
| .compile-status.error .status-dot { | |
| background: #dc3545; | |
| } | |
| .status-dot { | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| flex-shrink: 0; | |
| } | |
| /* Editor Container (CodeMirror) */ | |
| .editor { | |
| width: 100%; | |
| height: 450px; | |
| margin-bottom: 15px; | |
| } | |
| /* Ensure CodeMirror fills container */ | |
| .editor .cm-editor { | |
| height: 100%; | |
| } | |
| /* Editor Toolbar */ | |
| .editor-toolbar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 15px; | |
| } | |
| .toolbar-left { | |
| display: flex; | |
| gap: 8px; | |
| align-items: center; | |
| } | |
| .toolbar-right { | |
| display: flex; | |
| gap: 8px; | |
| align-items: center; | |
| } | |
| /* Examples Dropdown */ | |
| .examples-dropdown { | |
| padding: 8px 12px; | |
| border: 2px solid #e0e0e0; | |
| border-radius: 8px; | |
| font-size: 14px; | |
| background: white; | |
| cursor: pointer; | |
| min-width: 160px; | |
| } | |
| .examples-dropdown:hover { | |
| border-color: #667eea; | |
| } | |
| .examples-dropdown:focus { | |
| outline: none; | |
| border-color: #667eea; | |
| } | |
| button { | |
| background: #667eea; | |
| color: white; | |
| border: none; | |
| padding: 12px 24px; | |
| border-radius: 8px; | |
| font-size: 14px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| flex: 1; | |
| } | |
| button:hover:not(:disabled) { | |
| background: #5568d3; | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); | |
| } | |
| button:active:not(:disabled) { | |
| transform: translateY(0); | |
| } | |
| button:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| button.secondary { | |
| background: #6c757d; | |
| } | |
| button.secondary:hover:not(:disabled) { | |
| background: #5a6268; | |
| } | |
| button.danger { | |
| background: #dc3545; | |
| } | |
| button.danger:hover:not(:disabled) { | |
| background: #c82333; | |
| } | |
| button.small { | |
| flex: 0 1 auto; | |
| padding: 10px 18px; | |
| font-size: 14px; | |
| } | |
| /* Run button group (right panel) */ | |
| .run-button-group { | |
| display: flex; | |
| gap: 10px; | |
| margin-bottom: 20px; | |
| } | |
| /* Run on robot button */ | |
| button.btn-run { | |
| flex: 1; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 12px; | |
| padding: 18px 24px; | |
| font-size: 18px; | |
| font-weight: 700; | |
| background: #667eea; | |
| } | |
| button.btn-run:hover:not(:disabled) { | |
| background: #5568d3; | |
| } | |
| button.btn-run.running { | |
| background: #28a745 ; | |
| } | |
| button.btn-run.disconnected { | |
| background: #6c757d; | |
| cursor: not-allowed; | |
| } | |
| button.btn-run.disconnected:hover { | |
| background: #6c757d; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| .btn-run-icon { | |
| font-size: 24px; | |
| } | |
| .btn-run-text { | |
| white-space: nowrap; | |
| } | |
| /* Abort button */ | |
| button.btn-abort { | |
| padding: 18px 24px; | |
| font-size: 18px; | |
| font-weight: 700; | |
| background: #dc3545; | |
| flex: 0 0 auto; | |
| } | |
| button.btn-abort:hover:not(:disabled) { | |
| background: #c82333; | |
| } | |
| /* Toolbar button colors */ | |
| button.btn-save { | |
| background: #28a745; | |
| } | |
| button.btn-save:hover:not(:disabled) { | |
| background: #218838; | |
| } | |
| button.btn-load { | |
| background: #dc3545; | |
| } | |
| button.btn-load:hover:not(:disabled) { | |
| background: #c82333; | |
| } | |
| button.btn-clear { | |
| background: #e0e0e0; | |
| color: #333; | |
| } | |
| button.btn-clear:hover:not(:disabled) { | |
| background: #d0d0d0; | |
| } | |
| button.btn-help { | |
| background: #ffc107; | |
| color: #333; | |
| } | |
| button.btn-help:hover:not(:disabled) { | |
| background: #e0a800; | |
| } | |
| .console { | |
| background: #1e1e1e; | |
| color: #d4d4d4; | |
| padding: 15px; | |
| border-radius: 8px; | |
| font-family: 'Monaco', 'Menlo', 'Consolas', monospace; | |
| font-size: 12px; | |
| max-height: 300px; | |
| overflow-y: auto; | |
| line-height: 1.6; | |
| } | |
| .console-line { | |
| margin-bottom: 4px; | |
| } | |
| .console-line.error { | |
| color: #f48771; | |
| } | |
| .console-line.warning { | |
| color: #dcdcaa; | |
| } | |
| .console-line.success { | |
| color: #4ec9b0; | |
| } | |
| .console-line.info { | |
| color: #9cdcfe; | |
| } | |
| .section-title { | |
| font-size: 16px; | |
| font-weight: 600; | |
| color: #333; | |
| margin-bottom: 10px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .ir-display { | |
| background: #f8f9fa; | |
| padding: 10px; | |
| border-radius: 8px; | |
| max-height: 500px; | |
| overflow-y: auto; | |
| font-size: 13px; | |
| margin-top: 15px; | |
| } | |
| .ir-action { | |
| background: white; | |
| padding: 6px 10px; | |
| margin-bottom: 4px; | |
| border-radius: 4px; | |
| border-left: 4px solid #667eea; | |
| } | |
| .ir-action-type { | |
| font-weight: 600; | |
| color: #667eea; | |
| margin-bottom: 2px; | |
| font-size: 12px; | |
| } | |
| .ir-action-details { | |
| font-size: 11px; | |
| color: #666; | |
| font-family: 'Monaco', 'Menlo', 'Consolas', monospace; | |
| } | |
| /* Modal Styles */ | |
| .modal { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(0, 0, 0, 0.5); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| } | |
| .modal-content { | |
| background: white; | |
| border-radius: 12px; | |
| width: 90%; | |
| max-width: 500px; | |
| max-height: 80vh; | |
| overflow: hidden; | |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); | |
| } | |
| .modal-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 20px; | |
| border-bottom: 1px solid #e0e0e0; | |
| } | |
| .modal-header h3 { | |
| margin: 0; | |
| color: #333; | |
| } | |
| .modal-close { | |
| background: none; | |
| border: none; | |
| font-size: 24px; | |
| cursor: pointer; | |
| color: #666; | |
| padding: 0; | |
| width: 32px; | |
| height: 32px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| flex: none; | |
| } | |
| .modal-close:hover { | |
| color: #333; | |
| background: #f0f0f0; | |
| border-radius: 4px; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| .modal-body { | |
| padding: 20px; | |
| max-height: 60vh; | |
| overflow-y: auto; | |
| } | |
| /* Saved Scripts List */ | |
| .saved-script-item { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 12px; | |
| border: 1px solid #e0e0e0; | |
| border-radius: 8px; | |
| margin-bottom: 8px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .saved-script-item:hover { | |
| background: #f5f5f5; | |
| border-color: #667eea; | |
| } | |
| .saved-script-info { | |
| flex: 1; | |
| } | |
| .saved-script-name { | |
| font-weight: 600; | |
| color: #333; | |
| margin-bottom: 4px; | |
| } | |
| .saved-script-date { | |
| font-size: 12px; | |
| color: #666; | |
| } | |
| .saved-script-delete { | |
| background: #dc3545; | |
| color: white; | |
| border: none; | |
| padding: 6px 12px; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 12px; | |
| flex: none; | |
| } | |
| .saved-script-delete:hover { | |
| background: #c82333; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| .no-saved-scripts { | |
| text-align: center; | |
| color: #666; | |
| padding: 40px 20px; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.7; } | |
| } | |
| /* Running Button Animation */ | |
| button.running { | |
| position: relative; | |
| background: #28a745 ; | |
| } | |
| button.running::after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); | |
| animation: shimmer 1.5s infinite; | |
| } | |
| @keyframes shimmer { | |
| 0% { transform: translateX(-100%); } | |
| 100% { transform: translateX(100%); } | |
| } | |
| /* Action Icons in IR Display */ | |
| .ir-action { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 12px; | |
| } | |
| .ir-action-icon { | |
| font-size: 16px; | |
| min-width: 24px; | |
| text-align: center; | |
| } | |
| .ir-action-content { | |
| flex: 1; | |
| } | |
| .ir-action.current { | |
| background: #fff3cd; | |
| border-left-color: #ffc107; | |
| } | |
| /* Help Guide Modal */ | |
| .help-guide-modal { | |
| max-width: 700px; | |
| width: 95%; | |
| } | |
| .help-guide-body { | |
| max-height: 75vh; | |
| padding: 24px 28px; | |
| line-height: 1.6; | |
| } | |
| .guide-intro { | |
| color: #444; | |
| margin-bottom: 12px; | |
| font-size: 14px; | |
| } | |
| .guide-intro code { | |
| display: inline-block; | |
| background: #f0f4ff; | |
| padding: 2px 6px; | |
| border-radius: 4px; | |
| font-family: 'Monaco', 'Menlo', 'Consolas', monospace; | |
| font-size: 13px; | |
| color: #667eea; | |
| } | |
| .guide-intro:last-of-type { | |
| margin-bottom: 24px; | |
| padding-bottom: 16px; | |
| border-bottom: 1px solid #e0e0e0; | |
| } | |
| .guide-section { | |
| margin-bottom: 28px; | |
| padding-bottom: 20px; | |
| border-bottom: 1px solid #e0e0e0; | |
| } | |
| .guide-section:last-child { | |
| border-bottom: none; | |
| margin-bottom: 0; | |
| padding-bottom: 0; | |
| } | |
| .guide-section h4 { | |
| color: #667eea; | |
| margin-bottom: 12px; | |
| font-size: 16px; | |
| font-weight: 600; | |
| } | |
| .guide-section p { | |
| margin: 10px 0; | |
| font-size: 14px; | |
| color: #444; | |
| } | |
| .guide-section code { | |
| display: inline-block; | |
| background: #f0f4ff; | |
| padding: 2px 6px; | |
| border-radius: 4px; | |
| font-family: 'Monaco', 'Menlo', 'Consolas', monospace; | |
| font-size: 13px; | |
| color: #667eea; | |
| } | |
| .guide-section pre { | |
| background: #f8f9fa; | |
| padding: 12px 14px; | |
| border-radius: 6px; | |
| font-family: 'Monaco', 'Menlo', 'Consolas', monospace; | |
| font-size: 13px; | |
| margin: 10px 0; | |
| overflow-x: auto; | |
| border: 1px solid #e8e8e8; | |
| line-height: 1.5; | |
| } | |
| .guide-note { | |
| font-size: 13px; | |
| color: #666; | |
| font-style: italic; | |
| margin-top: 8px; | |
| } | |
| .guide-warning { | |
| background: #fff8e6; | |
| border: 1px solid #ffe0a0; | |
| border-radius: 8px; | |
| padding: 16px 20px; | |
| margin-bottom: 28px; | |
| } | |
| .guide-warning h4 { | |
| color: #b8860b; | |
| } | |
| .guide-warning pre { | |
| background: #fffef8; | |
| border-color: #f0e8d0; | |
| } | |
| .guide-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| font-size: 13px; | |
| margin-top: 12px; | |
| } | |
| .guide-table th, | |
| .guide-table td { | |
| padding: 10px 12px; | |
| text-align: left; | |
| border-bottom: 1px solid #e0e0e0; | |
| } | |
| .guide-table th { | |
| background: #f5f5f5; | |
| font-weight: 600; | |
| color: #333; | |
| } | |
| .guide-table tr:last-child td { | |
| border-bottom: none; | |
| } | |
| .guide-table code { | |
| background: #f0f4ff; | |
| padding: 2px 6px; | |
| border-radius: 3px; | |
| font-size: 12px; | |
| } | |