Skip to content

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.

add xspace-agent/xspace-agent/public/css/admin.css

overstepping2ba789744165
diff --git a/xspace-agent/xspace-agent/public/css/admin.css b/xspace-agent/xspace-agent/public/css/admin.css
new file mode 100644
index 000000000..fe4264a2d
--- /dev/null
+++ b/xspace-agent/xspace-agent/public/css/admin.css
@@ -0,0 +1,336 @@
+/* === X Space Agent — Admin Dashboard Theme === */
+/* Inspired by shadcn/ui + Radix design tokens */
+
+:root {
+ /* Colors — shadcn zinc scale */
+ --bg-primary: #09090b;
+ --bg-secondary: #0f0f12;
+ --bg-card: rgba(24, 24, 27, 0.80);
+ --bg-card-hover: #1c1c22;
+ --bg-input: #0c0c0f;
+ --border: rgba(255, 255, 255, 0.07);
+ --border-light: rgba(255, 255, 255, 0.12);
+
+ --text-primary: #fafafa;
+ --text-secondary: #a1a1aa;
+ --text-muted: #52525b;
+
+ --accent: #6d5cff;
+ --accent-hover: #7c6dff;
+ --accent-glow: rgba(109, 92, 255, 0.12);
+ --accent-glow-strong: rgba(109, 92, 255, 0.25);
+ --success: #22c55e;
+ --success-glow: rgba(34, 197, 94, 0.10);
+ --warning: #eab308;
+ --warning-glow: rgba(234, 179, 8, 0.10);
+ --error: #ef4444;
+ --error-glow: rgba(239, 68, 68, 0.10);
+
+ /* Spacing */
+ --space-xs: 4px;
+ --space-sm: 8px;
+ --space-md: 16px;
+ --space-lg: 24px;
+ --space-xl: 32px;
+ --space-2xl: 48px;
+
+ /* Typography */
+ --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
+ --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
+ --text-xs: 0.7rem;
+ --text-sm: 0.8rem;
+ --text-base: 0.875rem;
+ --text-lg: 1rem;
+ --text-xl: 1.25rem;
+ --text-2xl: 1.5rem;
+
+ /* Effects — layered depth */
+ --card-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
+ --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06) inset;
+ --card-blur: blur(16px);
+ --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
+ --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
+ --radius-sm: 8px;
+ --radius-md: 12px;
+ --radius-lg: 16px;
+ --ring: 0 0 0 2px var(--accent-glow-strong);
+
+ /* Layout */
+ --sidebar-width: 240px;
+ --header-height: 56px;
+}
+
+/* === Reset & Base === */
+*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+
+html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
+
+body {
+ background: var(--bg-primary);
+ color: var(--text-primary);
+ font-family: var(--font-sans);
+ font-size: var(--text-base);
+ line-height: 1.5;
+ min-height: 100vh;
+ overflow-x: hidden;
+}
+
+/* Refined mesh gradient background */
+body::before {
+ content: '';
+ position: fixed;
+ inset: 0;
+ background:
+ radial-gradient(ellipse 80% 60% at 10% 20%, rgba(109, 92, 255, 0.06) 0%, transparent 60%),
+ radial-gradient(ellipse 60% 50% at 85% 80%, rgba(34, 197, 94, 0.03) 0%, transparent 60%),
+ radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
+ pointer-events: none;
+ z-index: 0;
+}
+
+a { color: var(--accent); text-decoration: none; }
+a:hover { color: var(--accent-hover); }
+
+::selection { background: var(--accent-glow-strong); color: var(--text-primary); }
+
+/* Scrollbar */
+::-webkit-scrollbar { width: 6px; height: 6px; }
+::-webkit-scrollbar-track { background: transparent; }
+::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
+::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
+
+/* === Layout Shell === */
+.app {
+ display: grid;
+ grid-template-columns: var(--sidebar-width) 1fr;
+ grid-template-rows: var(--header-height) 1fr;
+ grid-template-areas:
+ "header header"
+ "sidebar main";
+ min-height: 100vh;
+ position: relative;
+ z-index: 1;
+}
+
+/* === Header === */
+.header {
+ grid-area: header;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 var(--space-lg);
+ background: rgba(9, 9, 11, 0.80);
+ backdrop-filter: blur(12px) saturate(1.4);
+ -webkit-backdrop-filter: blur(12px) saturate(1.4);
+ border-bottom: 1px solid var(--border);
+ z-index: 100;
+}
+
+.header-left {
+ display: flex;
+ align-items: center;
+ gap: var(--space-md);
+}
+
+.header-logo {
+ display: flex;
+ align-items: center;
+ gap: var(--space-sm);
+}
+
+.header-logo img {
+ width: 28px;
+ height: 28px;
+}
+
+.header-logo span {
+ font-weight: 600;
+ font-size: var(--text-lg);
+ letter-spacing: -0.02em;
+ color: var(--text-primary);
+}
+
+.header-logo .version {
+ font-size: var(--text-xs);
+ color: var(--text-muted);
+ font-family: var(--font-mono);
+ background: var(--bg-card);
+ padding: 2px 6px;
+ border-radius: var(--radius-sm);
+ margin-left: var(--space-xs);
+}
+
+.header-right {
+ display: flex;
+ align-items: center;
+ gap: var(--space-lg);
+}
+
+.connection-badge {
+ display: flex;
+ align-items: center;
+ gap: var(--space-sm);
+ font-size: var(--text-sm);
+ color: var(--text-secondary);
+ padding: 4px 14px;
+ border-radius: 9999px;
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid var(--border);
+ backdrop-filter: blur(8px);
+}
+
+.connection-badge .dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: var(--text-muted);
+ flex-shrink: 0;
+}
+
+.connection-badge .dot.connected {
+ background: var(--success);
+ box-shadow: 0 0 6px var(--success);
+ animation: pulse-dot 2s ease-in-out infinite;
+}
+
+.connection-badge .dot.error {
+ background: var(--error);
+ box-shadow: 0 0 6px var(--error);
+}
+
+@keyframes pulse-dot {
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
+ 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
+}
+
+/* === Sidebar === */
+.sidebar {
+ grid-area: sidebar;
+ background: rgba(9, 9, 11, 0.60);
+ backdrop-filter: blur(12px) saturate(1.3);
+ -webkit-backdrop-filter: blur(12px) saturate(1.3);
+ border-right: 1px solid var(--border);
+ padding: var(--space-lg) 0;
+ overflow-y: auto;
+}
+
+.nav-section {
+ margin-bottom: var(--space-lg);
+}
+
+.nav-section-label {
+ font-size: var(--text-xs);
+ font-weight: 600;
+ color: var(--text-muted);
+ text-transform: uppercase;
+ letter-spacing: 0.08em;
+ padding: 0 var(--space-lg);
+ margin-bottom: var(--space-sm);
+}
+
+.nav-item {
+ display: flex;
+ align-items: center;
+ gap: var(--space-sm);
+ padding: 8px var(--space-lg);
+ margin: 1px 8px;
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ font-weight: 450;
+ cursor: pointer;
+ transition: all var(--transition-fast);
+ border-radius: var(--radius-sm);
+ border-left: none;
+ user-select: none;
+}
+
+.nav-item:hover {
+ color: var(--text-primary);
+ background: rgba(255, 255, 255, 0.05);
+}
+
+.nav-item.active {
+ color: var(--text-primary);
+ background: rgba(255, 255, 255, 0.08);
+ font-weight: 500;
+}
+
+.nav-item svg {
+ width: 18px;
+ height: 18px;
+ flex-shrink: 0;
+ opacity: 0.7;
+}
+
+.nav-item.active svg { opacity: 1; }
+
+/* === Main Content === */
+.main {
+ grid-area: main;
+ padding: var(--space-lg);
+ overflow-y: auto;
+ max-height: calc(100vh - var(--header-height));
+}
+
+.page { animation: fadeIn 200ms ease; }
+
+@keyframes fadeIn {
+ from { opacity: 0; transform: translateY(4px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+.page-header {
+ margin-bottom: var(--space-lg);
+}
+
+.page-title {
+ font-size: var(--text-2xl);
+ font-weight: 600;
+ letter-spacing: -0.025em;
+ background: linear-gradient(to bottom, var(--text-primary), var(--text-secondary));
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.page-subtitle {
+ font-size: var(--text-sm);
+ color: var(--text-secondary);
+ margin-top: var(--space-xs);
+}
+
+/* === Bottom Nav (mobile) === */
+.bottom-nav {
+ display: none;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ background: var(--bg-secondary);
+ border-top: 1px solid var(--border);
+ z-index: 100;
+ padding: var(--space-xs) 0;
+}
+
+.bottom-nav-items {
+ display: flex;
+ justify-content: space-around;
+}
+
+.bottom-nav-item {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 2px;
+ padding: var(--space-xs) var(--space-sm);
+ color: var(--text-muted);
+ font-size: 10px;
+ cursor: pointer;
+ transition: color var(--transition-fast);
+}
+
+.bottom-nav-item svg { width: 20px; height: 20px; }
+.bottom-nav-item.active { color: var(--accent); }
+.bottom-nav-item:hover { color: var(--text-secondary); }
+
+