.control-panel { height: 100%; display: flex; flex-direction: column; background: #0f172a; color: #e2e8f0; } .panel-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: #1e293b; border-bottom: 2px solid #334155; } .panel-header h1 { font-size: 1.5rem; font-weight: 700; color: #f1f5f9; } .connection-status { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem; } .connection-status.connected { background: #064e3b; color: #6ee7b7; } .connection-status.disconnected { background: #7f1d1d; color: #fca5a5; } .status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; animation: pulse 2s infinite; } .connected .status-dot { background: #10b981; } .disconnected .status-dot { background: #ef4444; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .panel-content { display: flex; flex: 1; overflow: hidden; } .turtle-list { width: 350px; border-right: 2px solid #334155; display: flex; flex-direction: column; background: #1e293b; } .turtle-list h2 { padding: 1rem 1.5rem; font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid #334155; } .turtle-cards { flex: 1; overflow-y: auto; padding: 1rem; } .empty-state { padding: 2rem 1.5rem; text-align: center; color: #94a3b8; } .empty-state .hint { margin-top: 0.5rem; font-size: 0.875rem; color: #64748b; } .turtle-card { background: #0f172a; border: 2px solid #334155; border-radius: 0.5rem; padding: 1rem; margin-bottom: 0.75rem; cursor: pointer; transition: all 0.2s; } .turtle-card:hover { border-color: #60a5fa; transform: translateX(4px); } .turtle-card.selected { border-color: #60a5fa; background: #1e293b; box-shadow: 0 0 20px rgba(96, 165, 250, 0.3); } .turtle-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; } .turtle-header h3 { font-size: 1.125rem; font-weight: 600; } .mode-badge { padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: white; } .turtle-stats { display: flex; flex-direction: column; gap: 0.5rem; } .turtle-stats .stat { display: flex; justify-content: space-between; font-size: 0.875rem; } .turtle-stats .label { color: #94a3b8; } .turtle-stats .value { color: #f1f5f9; font-weight: 500; font-family: 'Courier New', monospace; } .turtle-details { flex: 1; padding: 2rem; overflow-y: auto; } .turtle-details.empty { display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 1.125rem; } .turtle-details h2 { font-size: 1.75rem; margin-bottom: 1.5rem; color: #60a5fa; } .detail-section { margin-bottom: 2rem; padding: 1.5rem; background: #1e293b; border-radius: 0.5rem; border: 1px solid #334155; } .detail-section h3 { font-size: 1.25rem; margin-bottom: 1rem; color: #f1f5f9; } .detail-section h4 { font-size: 1rem; margin: 1.5rem 0 1rem; color: #cbd5e1; } .status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; } .status-item { display: flex; flex-direction: column; gap: 0.25rem; } .status-item .label { color: #94a3b8; font-size: 0.875rem; } .status-item .value { color: #f1f5f9; font-weight: 600; font-family: 'Courier New', monospace; } .command-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; } .command-btn { padding: 0.875rem 1rem; border: none; border-radius: 0.5rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; color: white; display: flex; align-items: center; justify-content: center; gap: 0.5rem; } .command-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .command-btn:active { transform: translateY(0); } .command-btn.explore { background: linear-gradient(135deg, #3b82f6, #2563eb); } .command-btn.mine { background: linear-gradient(135deg, #8b5cf6, #7c3aed); } .command-btn.return { background: linear-gradient(135deg, #f59e0b, #d97706); } .command-btn.stop { background: linear-gradient(135deg, #ef4444, #dc2626); } .command-btn.manual { background: linear-gradient(135deg, #a855f7, #9333ea); } .command-btn.setHome { background: linear-gradient(135deg, #06b6d4, #0891b2); } .command-btn.refuel { background: linear-gradient(135deg, #10b981, #059669); } .command-btn.status { background: linear-gradient(135deg, #64748b, #475569); } /* Movement Controls */ .movement-controls { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem; background: #1e293b; border-radius: 0.5rem; } .movement-row { display: flex; gap: 0.5rem; justify-content: center; } .movement-row.vertical { gap: 1rem; } .movement-controls button { width: 3.5rem; height: 3.5rem; border: 2px solid #334155; background: #0f172a; color: #60a5fa; border-radius: 0.5rem; font-size: 1.5rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; } .movement-controls button:hover { background: #1e293b; border-color: #60a5fa; box-shadow: 0 0 15px rgba(96, 165, 250, 0.3); transform: scale(1.05); } .movement-controls button:active { transform: scale(0.95); } /* Action Grid */ .action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } .action-btn { padding: 1rem; border: 2px solid #334155; border-radius: 0.5rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; color: white; background: #1e293b; } .action-btn:hover { border-color: #60a5fa; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2); } .action-btn.dig { border-color: #f59e0b; color: #f59e0b; } .action-btn.dig:hover { background: rgba(245, 158, 11, 0.1); border-color: #f59e0b; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); } .action-btn.digup, .action-btn.digdown { border-color: #f59e0b; color: #f59e0b; } .action-btn.digup:hover, .action-btn.digdown:hover { background: rgba(245, 158, 11, 0.1); border-color: #f59e0b; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); } .action-btn.place { border-color: #10b981; color: #10b981; } .action-btn.place:hover { background: rgba(16, 185, 129, 0.1); border-color: #10b981; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } /* Inventory List */ .inventory-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 300px; overflow-y: auto; } .inventory-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: #1e293b; border: 2px solid #334155; border-radius: 0.5rem; transition: all 0.2s; } .inventory-item:hover { border-color: #60a5fa; transform: translateX(4px); } .item-icon { font-size: 1.5rem; flex-shrink: 0; } .item-name { flex: 1; color: #e2e8f0; font-size: 0.95rem; text-transform: capitalize; } .item-count { color: #94a3b8; font-weight: 600; font-family: 'Courier New', monospace; } /* Responsive Design */ @media (max-width: 1024px) { .command-grid { grid-template-columns: 1fr; } .action-grid { grid-template-columns: 1fr; } } @media (max-width: 768px) { .turtle-grid { grid-template-columns: 1fr; } }