body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: #f5f5f5; } main { min-height: 100vh; padding: 2rem; } header { text-align: center; margin-bottom: 2rem; } h1 { font-size: 2rem; font-weight: 600; color: #333; margin: 0; } h2 { font-size: 1.25rem; font-weight: 600; color: #333; margin: 0 0 1rem 0; } h3 { font-size: 0.875rem; font-weight: 600; color: #666; margin: 0 0 0.5rem 0; text-transform: uppercase; letter-spacing: 0.5px; } .container { max-width: 1920px; margin: 0 auto; display: grid; grid-template-columns: minmax(500px, 600px) 1fr; gap: 2rem; align-items: start; } /* Left column container */ .left-column { display: flex; flex-direction: column; gap: 1.5rem; } /* Right column container */ .right-column { display: flex; flex-direction: column; gap: 1.5rem; } /* Responsive: Stack on smaller screens */ @media (max-width: 1200px) { .container { grid-template-columns: 1fr; } } .panel { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .config-panel { border: 2px solid #e5e7eb; } .config-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; padding: 0.5rem 0; } .config-header:hover { opacity: 0.7; } .toggle-icon { font-size: 1rem; color: #6b7280; transition: transform 0.2s; } .config-content { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; } .robot-setup { margin-bottom: 0.5rem; } .robot-status { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-radius: 6px; font-weight: 500; gap: 1rem; } .robot-status.ready { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; border: 1px solid #10b981; } .robot-status.not-ready { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; border: 1px solid #f59e0b; } .btn-setup { background: #10b981; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s; } .btn-setup:hover:not(:disabled) { background: #059669; } .btn-setup:disabled { background: #d1d5db; cursor: not-allowed; } .btn-zero { background: #8b5cf6; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s; } .btn-zero:hover:not(:disabled) { background: #7c3aed; } .btn-zero:disabled { background: #d1d5db; cursor: not-allowed; } .zero-position-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; } .btn-zero-large { width: 100%; background: #8b5cf6; color: white; border: none; padding: 0.875rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2); } .btn-zero-large:hover:not(:disabled) { background: #7c3aed; box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3); transform: translateY(-1px); } .btn-zero-large:disabled { background: #d1d5db; cursor: not-allowed; box-shadow: none; transform: none; } .btn-disconnect { background: #ef4444; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s; } .btn-disconnect:hover { background: #dc2626; } .btn-refresh { background: #3b82f6; color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: background 0.2s; } .btn-refresh:hover:not(:disabled) { background: #2563eb; } .btn-refresh:disabled { background: #d1d5db; cursor: not-allowed; } .control-panel { border: 2px solid #10b981; } .status-banner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-radius: 6px; margin-bottom: 1.5rem; font-weight: 500; font-size: 0.95rem; } .status-banner.initializing { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; border-left: 4px solid #3b82f6; } .status-banner.encoding { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; border-left: 4px solid #f59e0b; } .status-banner.uploading { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #3730a3; border-left: 4px solid #6366f1; } .status-banner.success { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; border-left: 4px solid #10b981; } .status-banner.warning { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b; border-left: 4px solid #ef4444; } .spinner { width: 20px; height: 20px; border: 3px solid rgba(0, 0, 0, 0.1); border-top-color: currentColor; border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .control-horizontal { display: flex; flex-direction: column; gap: 1.5rem; } .control-left { display: flex; flex-direction: column; gap: 1rem; } .control-right { display: flex; align-items: center; justify-content: center; } .input-group { display: flex; gap: 0.5rem; margin-bottom: 0; } input[type="text"] { flex: 1; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; } input[type="text"]:disabled { background: #f5f5f5; cursor: not-allowed; } input[type="text"]:focus { outline: none; border-color: #10b981; } button { padding: 0.75rem 1.5rem; border: none; border-radius: 4px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s; } .btn-set-task { background: #3b82f6; color: white; min-width: 120px; } .btn-set-task:hover:not(:disabled) { background: #2563eb; } .btn-set-task:disabled { background: #d1d5db; cursor: not-allowed; } .btn-start { background: #10b981; color: white; } .btn-start:hover:not(:disabled) { background: #059669; } .btn-start:disabled { background: #d1d5db; cursor: not-allowed; } .btn-stop { background: #ef4444; color: white; } .btn-stop:hover { background: #dc2626; } .btn-reset { padding: 0.5rem 1rem; background: #6b7280; color: white; font-size: 0.875rem; } .btn-reset:hover { background: #4b5563; } .status { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-radius: 4px; margin-bottom: 1rem; } .status.recording { background: #fee2e2; color: #991b1b; } .status.recording.recording-active { display: flex; flex-direction: column; gap: 1rem; background: #dc2626; color: white; padding: 1.5rem; border: 4px solid #991b1b; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); font-weight: 700; font-size: 1rem; } .status.recording.recording-active .indicator { width: 20px; height: 20px; background: #fef2f2; animation: pulse-strong 1s ease-in-out infinite; } @keyframes pulse-strong { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } } .status.recording.recording-active .time-display { display: flex; flex-direction: column; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; color: white; } .fps-display { font-size: 1rem; font-weight: 500; opacity: 0.95; } .fps-warning { color: #fef2f2; animation: pulse-warning 1s ease-in-out infinite; } @keyframes pulse-warning { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .status.recording.recording-active .btn-stop { align-self: stretch; } .ramp-up-countdown { display: flex; justify-content: center; margin-bottom: 1rem; } .countdown-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 3rem; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border: 4px solid #f59e0b; border-radius: 16px; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); min-width: 280px; animation: pulse-warm 1.5s ease-in-out infinite; } @keyframes pulse-warm { 0%, 100% { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); } 50% { box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6); } } .countdown-label { font-size: 1rem; color: #92400e; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; margin-bottom: 1rem; text-align: center; } .countdown-value { font-size: 4.5rem; font-weight: 900; color: #d97706; font-family: 'Courier New', monospace; line-height: 1; text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15); margin-bottom: 0.5rem; } .countdown-subtitle { font-size: 0.875rem; color: #78350f; font-weight: 600; font-style: italic; text-align: center; margin-top: 0.5rem; } .status.idle { background: #f3f4f6; color: #374151; } .indicator { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; animation: pulse 1.5s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .counter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem; background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); border-radius: 8px; border: 2px solid #e5e7eb; min-width: 200px; } .counter-label { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .counter-value { font-size: 3rem; font-weight: 700; color: #10b981; line-height: 1; } .time-display { font-size: 1.5rem; font-weight: 600; font-family: 'Courier New', monospace; } .error-box { padding: 1rem; background: #fee2e2; color: #991b1b; border-radius: 4px; border-left: 4px solid #ef4444; font-size: 0.875rem; } .config-section { margin-bottom: 1.5rem; } .config-section:last-child { margin-bottom: 0; } .config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; } label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: #374151; font-weight: 500; } select { padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.875rem; background: white; } select:disabled { background: #f5f5f5; cursor: not-allowed; } /* Camera Layout */ .camera-layout { display: flex; flex-direction: column; gap: 1.5rem; } .camera-base { width: 100%; } .camera-wrist-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } .camera-wrist { width: 100%; } .camera { border: 1px solid #e5e7eb; border-radius: 4px; overflow: hidden; } .camera h3 { padding: 0.75rem; background: #f9fafb; border-bottom: 1px solid #e5e7eb; margin: 0; } .camera img { width: 100%; height: auto; display: block; background: #000; min-height: 300px; object-fit: cover; } .camera-placeholder { text-align: center; padding: 4rem 2rem; background: #f9fafb; border-radius: 4px; border: 2px dashed #d1d5db; } .camera-placeholder p { margin: 0.5rem 0; font-size: 1rem; color: #6b7280; } .camera-placeholder p:first-child { font-size: 1.25rem; font-weight: 500; color: #374151; } .hint { margin-top: 0.5rem; font-size: 0.75rem; color: #6b7280; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }