Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
add xspace-agent/public/css/components.css
overstepping831f683035cc
diff --git a/xspace-agent/public/css/components.css b/xspace-agent/public/css/components.cssnew file mode 100644index 000000000..5ecde365f--- /dev/null+++ b/xspace-agent/public/css/components.css@@ -0,0 +1,637 @@+/* === Card === */+.card {+ background: var(--bg-card);+ backdrop-filter: var(--card-blur);+ -webkit-backdrop-filter: var(--card-blur);+ border: 1px solid var(--border);+ border-radius: var(--radius-lg);+ padding: var(--space-lg);+ box-shadow: var(--card-shadow);+ transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);+}++.card:hover {+ box-shadow: var(--card-shadow-hover);+ border-color: var(--border-light);+ transform: translateY(-1px);+}++.card-header {+ display: flex;+ align-items: center;+ justify-content: space-between;+ margin-bottom: var(--space-md);+}++.card-title {+ font-size: var(--text-sm);+ font-weight: 600;+ color: var(--text-secondary);+ text-transform: uppercase;+ letter-spacing: 0.06em;+}++.card-value {+ font-size: var(--text-2xl);+ font-weight: 700;+ font-family: var(--font-mono);+ color: var(--text-primary);+}++.card-meta {+ font-size: var(--text-xs);+ color: var(--text-muted);+ font-family: var(--font-mono);+}++/* Card grid layouts */+.card-grid {+ display: grid;+ gap: var(--space-md);+}++.card-grid-2 { grid-template-columns: repeat(2, 1fr); }+.card-grid-3 { grid-template-columns: repeat(3, 1fr); }+.card-grid-4 { grid-template-columns: repeat(4, 1fr); }++/* === Status Badge === */+.badge {+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ padding: 3px 10px;+ border-radius: 9999px;+ font-size: var(--text-xs);+ font-weight: 500;+ font-family: var(--font-mono);+ letter-spacing: 0.01em;+}++.badge-success {+ background: rgba(34, 197, 94, 0.10);+ color: var(--success);+ border: 1px solid rgba(34, 197, 94, 0.18);+}++.badge-warning {+ background: rgba(234, 179, 8, 0.10);+ color: var(--warning);+ border: 1px solid rgba(234, 179, 8, 0.18);+}++.badge-error {+ background: rgba(239, 68, 68, 0.10);+ color: var(--error);+ border: 1px solid rgba(239, 68, 68, 0.18);+}++.badge-info {+ background: var(--accent-glow);+ color: var(--accent);+ border: 1px solid rgba(109, 92, 255, 0.18);+}++.badge-neutral {+ background: rgba(82, 82, 91, 0.12);+ color: var(--text-muted);+ border: 1px solid rgba(82, 82, 91, 0.18);+}++/* === Buttons === */+.btn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: var(--space-sm);+ padding: 8px 16px;+ border-radius: var(--radius-sm);+ font-family: var(--font-sans);+ font-size: var(--text-sm);+ font-weight: 500;+ border: 1px solid var(--border);+ background: rgba(255, 255, 255, 0.04);+ color: var(--text-primary);+ cursor: pointer;+ transition: all var(--transition-fast);+ white-space: nowrap;+ user-select: none;+ letter-spacing: -0.005em;+}++.btn:hover:not(:disabled) {+ background: rgba(255, 255, 255, 0.08);+ border-color: var(--border-light);+}++.btn:focus-visible:not(:disabled) {+ outline: none;+ box-shadow: var(--ring);+}++.btn:active:not(:disabled) { transform: scale(0.97); }++.btn:disabled {+ opacity: 0.35;+ cursor: not-allowed;+}++.btn svg { width: 16px; height: 16px; }++.btn-primary {+ background: var(--accent);+ border-color: transparent;+ color: #fff;+ box-shadow: 0 1px 3px rgba(109, 92, 255, 0.3), 0 0 0 1px rgba(109, 92, 255, 0.1) inset;+}++.btn-primary:hover:not(:disabled) {+ background: var(--accent-hover);+ box-shadow: 0 4px 12px rgba(109, 92, 255, 0.4), 0 0 0 1px rgba(109, 92, 255, 0.15) inset;+}++.btn-success {+ border-color: rgba(34, 197, 94, 0.3);+ color: var(--success);+ background: rgba(34, 197, 94, 0.08);+}++.btn-success:hover:not(:disabled) {+ background: rgba(34, 197, 94, 0.15);+ border-color: rgba(34, 197, 94, 0.4);+}++.btn-danger {+ border-color: rgba(239, 68, 68, 0.3);+ color: var(--error);+ background: rgba(239, 68, 68, 0.08);+}++.btn-danger:hover:not(:disabled) {+ background: rgba(239, 68, 68, 0.15);+ border-color: rgba(239, 68, 68, 0.4);+}++.btn-warning {+ border-color: rgba(234, 179, 8, 0.3);+ color: var(--warning);+ background: rgba(234, 179, 8, 0.08);+}++.btn-warning:hover:not(:disabled) {+ background: rgba(234, 179, 8, 0.15);+ border-color: rgba(234, 179, 8, 0.4);+}++.btn-sm {+ padding: var(--space-xs) var(--space-sm);+ font-size: var(--text-xs);+}++.btn-row {+ display: flex;+ gap: var(--space-sm);+ flex-wrap: wrap;+}++/* === Inputs === */+.input, .textarea, .select {+ width: 100%;+ background: var(--bg-input);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ color: var(--text-primary);+ font-family: var(--font-sans);+ font-size: var(--text-sm);+ padding: 9px var(--space-md);+ outline: none;+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);+}++.input:focus, .textarea:focus, .select:focus {+ border-color: var(--accent);+ box-shadow: var(--ring);+}++.input::placeholder { color: var(--text-muted); }++.textarea {+ font-family: var(--font-mono);+ font-size: var(--text-sm);+ resize: vertical;+ min-height: 100px;+ line-height: 1.6;+}++.select {+ appearance: none;+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5e72' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");+ background-repeat: no-repeat;+ background-position: right 12px center;+ padding-right: 36px;+ cursor: pointer;+}++.form-group {+ margin-bottom: var(--space-md);+}++.form-label {+ display: block;+ font-size: var(--text-xs);+ font-weight: 600;+ color: var(--text-muted);+ text-transform: uppercase;+ letter-spacing: 0.06em;+ margin-bottom: var(--space-xs);+}++.form-hint {+ font-size: var(--text-xs);+ color: var(--text-muted);+ margin-top: var(--space-xs);+}++/* === Audio Meter === */+.audio-meter {+ height: 4px;+ background: var(--bg-secondary);+ border-radius: 2px;+ overflow: hidden;+}++.audio-meter-fill {+ height: 100%;+ background: linear-gradient(90deg, var(--success), var(--warning) 70%, var(--error));+ border-radius: 2px;+ transition: width 100ms linear;+ width: 0%;+}++.audio-meter-lg {+ height: 6px;+ border-radius: 3px;+}++.audio-meter-lg .audio-meter-fill { border-radius: 3px; }++/* === Status Indicator === */+.status-indicator {+ width: 8px;+ height: 8px;+ border-radius: 50%;+ display: inline-block;+ flex-shrink: 0;+}++.status-indicator.active {+ background: var(--success);+ animation: status-pulse 2s ease-in-out infinite;+}++.status-indicator.working {+ background: var(--warning);+ animation: status-pulse 1s ease-in-out infinite;+}++.status-indicator.error {+ background: var(--error);+ box-shadow: 0 0 6px var(--error);+}++.status-indicator.idle {+ background: var(--text-muted);+}++@keyframes status-pulse {+ 0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }+ 50% { box-shadow: 0 0 0 6px transparent; opacity: 0.7; }+}++/* === Transcript === */+.transcript {+ display: flex;+ flex-direction: column;+ gap: var(--space-sm);+ max-height: 400px;+ overflow-y: auto;+ padding: var(--space-sm);+}++.transcript-entry {+ display: flex;+ gap: var(--space-sm);+ padding: var(--space-sm) var(--space-md);+ border-radius: var(--radius-sm);+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid transparent;+ animation: slideIn 200ms ease;+}++.transcript-entry:hover {+ border-color: var(--border);+}++@keyframes slideIn {+ from { opacity: 0; transform: translateY(8px); }+ to { opacity: 1; transform: translateY(0); }+}++.transcript-speaker {+ font-weight: 600;+ font-size: var(--text-sm);+ white-space: nowrap;+ flex-shrink: 0;+}++.transcript-text {+ font-size: var(--text-sm);+ color: var(--text-secondary);+ line-height: 1.5;+}++.transcript-time {+ font-size: var(--text-xs);+ color: var(--text-muted);+ font-family: var(--font-mono);+ flex-shrink: 0;+ margin-left: auto;+}++.transcript-empty {+ text-align: center;+ color: var(--text-muted);+ font-size: var(--text-sm);+ padding: var(--space-xl);+}++/* === Log Panel === */+.log-panel {+ font-family: var(--font-mono);+ font-size: var(--text-xs);+ max-height: 250px;+ overflow-y: auto;+ padding: var(--space-sm);+ background: var(--bg-primary);+ border-radius: var(--radius-sm);+ border: 1px solid var(--border);+ box-shadow: 0 2px 8px rgba(0,0,0,0.3) inset;+}++.log-entry {+ padding: 2px 0;+ color: var(--text-muted);+ line-height: 1.6;+}++.log-entry.ok { color: var(--success); }+.log-entry.err { color: var(--error); }+.log-entry.info { color: var(--accent); }+.log-entry.warn { color: var(--warning); }++/* === Agent Card === */+.agent-card {+ display: flex;+ flex-direction: column;+ gap: var(--space-md);+}++.agent-card-header {+ display: flex;+ align-items: center;+ gap: var(--space-md);+}++.agent-avatar {+ width: 48px;+ height: 48px;+ border-radius: 50%;+ background: rgba(109, 92, 255, 0.08);+ border: 2px solid var(--border);+ overflow: hidden;+ flex-shrink: 0;+ display: flex;+ align-items: center;+ justify-content: center;+ font-size: var(--text-xl);+ box-shadow: 0 0 20px rgba(109, 92, 255, 0.08);+}++.agent-info { flex: 1; }++.agent-name {+ font-weight: 600;+ font-size: var(--text-lg);+}++.agent-provider {+ font-size: var(--text-xs);+ color: var(--text-muted);+ font-family: var(--font-mono);+}++.agent-stats {+ display: grid;+ grid-template-columns: repeat(3, 1fr);+ gap: var(--space-sm);+}++.agent-stat {+ text-align: center;+ padding: var(--space-sm);+ background: rgba(255, 255, 255, 0.03);+ border-radius: var(--radius-sm);+ border: 1px solid var(--border);+}++.agent-stat-value {+ font-family: var(--font-mono);+ font-weight: 600;+ font-size: var(--text-lg);+ color: var(--text-primary);+}++.agent-stat-label {+ font-size: var(--text-xs);+ color: var(--text-muted);+}++/* === Divider === */+.divider {+ height: 1px;+ background: var(--border);+ margin: var(--space-md) 0;+}++/* === Empty State === */+.empty-state {+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ padding: var(--space-2xl);+ color: var(--text-muted);+ text-align: center;+}++.empty-state svg {+ width: 48px;+ height: 48px;+ margin-bottom: var(--space-md);+ opacity: 0.3;+}++.empty-state p {+ font-size: var(--text-sm);+ max-width: 300px;+}++/* === Tooltip === */+[data-tooltip] {+ position: relative;+}++[data-tooltip]::after {+ content: attr(data-tooltip);+ position: absolute;+ bottom: 100%;+ left: 50%;+ transform: translateX(-50%);+ padding: 4px 8px;+ background: var(--bg-card-hover);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ font-size: var(--text-xs);+ color: var(--text-primary);+ white-space: nowrap;+ opacity: 0;+ pointer-events: none;+ transition: opacity var(--transition-fast);+ z-index: 1000;+}++[data-tooltip]:hover::after { opacity: 1; }++/* === Stat Row === */+.stat-row {+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding: var(--space-sm) 0;+}++.stat-row + .stat-row {+ border-top: 1px solid var(--border);+}++.stat-label {+ font-size: var(--text-sm);+ color: var(--text-secondary);+}++.stat-value {+ font-family: var(--font-mono);+ font-size: var(--text-sm);+ color: var(--text-primary);+}++/* === Skeleton loading === */+.skeleton {+ background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);+ background-size: 200% 100%;+ animation: skeleton-shimmer 1.5s infinite;+ border-radius: var(--radius-sm);+}++@keyframes skeleton-shimmer {+ 0% { background-position: 200% 0; }+ 100% { background-position: -200% 0; }+}++/* === Tab Group === */+.tabs {+ display: flex;+ gap: var(--space-xs);+ border-bottom: 1px solid var(--border);+ margin-bottom: var(--space-lg);+}++.tab {+ padding: var(--space-sm) var(--space-md);+ font-size: var(--text-sm);+ color: var(--text-muted);+ cursor: pointer;+ border-bottom: 2px solid transparent;+ transition: all var(--transition-fast);+ user-select: none;+ font-weight: 450;+}++.tab:hover { color: var(--text-primary); }++.tab.active {+ color: var(--text-primary);+ border-bottom-color: var(--accent);+}++/* === Key-Value List === */+.kv-list { list-style: none; }++.kv-item {+ display: flex;+ justify-content: space-between;+ padding: var(--space-sm) 0;+ font-size: var(--text-sm);+}++.kv-item + .kv-item { border-top: 1px solid var(--border); }++.kv-key { color: var(--text-secondary); }+.kv-value { font-family: var(--font-mono); color: var(--text-primary); }++/* === Toggle Switch === */+.toggle {+ position: relative;+ width: 36px;+ height: 20px;+ display: inline-block;+}++.toggle input {+ opacity: 0;+ width: 0;+ height: 0;+}++.toggle-slider {+ position: absolute;+ cursor: pointer;+ inset: 0;+ background: var(--bg-secondary);+ border: 1px solid var(--border);+ border-radius: 20px;+ transition: background var(--transition-fast);+}++.toggle-slider::before {+ content: '';+ position: absolute;+ width: 14px;+ height: 14px;+ left: 2px;+ bottom: 2px;+ background: var(--text-muted);+ border-radius: 50%;+ transition: all var(--transition-fast);+}++.toggle input:checked + .toggle-slider {+ background: var(--accent);+ border-color: var(--accent);+}++.toggle input:checked + .toggle-slider::before {+ transform: translateX(16px);+ background: #fff;+}++