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/packages/server/public/css/admin.css

overstepping5089f9dd7d37
diff --git a/xspace-agent/xspace-agent/packages/server/public/css/admin.css b/xspace-agent/xspace-agent/packages/server/public/css/admin.css
new file mode 100644
index 000000000..e8d59eae0
--- /dev/null
+++ b/xspace-agent/xspace-agent/packages/server/public/css/admin.css
@@ -0,0 +1,321 @@
+/* === X Space Agent — Admin Dashboard Theme === */
+
+:root {
+ /* Colors */
+ --bg-primary: #0f1117;
+ --bg-secondary: #1a1d27;
+ --bg-card: rgba(35, 39, 51, 0.7);
+ --bg-card-hover: #2a2e3b;
+ --bg-input: #181b24;
+ --border: #2e3345;
+ --border-light: #3a3f52;
+
+ --text-primary: #e4e6ef;
+ --text-secondary: #8b8fa3;
+ --text-muted: #5a5e72;
+
+ --accent: #3b82f6;
+ --accent-hover: #2563eb;
+ --accent-glow: rgba(59, 130, 246, 0.15);
+ --accent-glow-strong: rgba(59, 130, 246, 0.3);
+ --success: #10b981;
+ --success-glow: rgba(16, 185, 129, 0.15);
+ --warning: #f59e0b;
+ --warning-glow: rgba(245, 158, 11, 0.15);
+ --error: #ef4444;
+ --error-glow: rgba(239, 68, 68, 0.15);
+
+ /* 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 */
+ --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
+ --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
+ --card-blur: blur(12px);
+ --transition-fast: 150ms ease;
+ --transition-normal: 250ms ease;
+ --radius-sm: 6px;
+ --radius-md: 10px;
+ --radius-lg: 14px;
+
+ /* Layout */
+ --sidebar-width: 220px;
+ --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;
+}
+
+/* Subtle grid background */
+body::before {
+ content: '';
+ position: fixed;
+ inset: 0;
+ background-image:
+ radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
+ radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
+ 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: var(--bg-secondary);
+ 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 12px;
+ border-radius: 20px;
+ background: var(--bg-card);
+ border: 1px solid var(--border);
+}
+
+.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: var(--bg-secondary);
+ 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: var(--space-sm) var(--space-lg);
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ cursor: pointer;
+ transition: all var(--transition-fast);
+ border-left: 2px solid transparent;
+ user-select: none;
+}
+
+.nav-item:hover {
+ color: var(--text-primary);
+ background: rgba(255, 255, 255, 0.03);
+}
+
+.nav-item.active {
+ color: var(--accent);
+ background: var(--accent-glow);
+ border-left-color: var(--accent);
+}
+
+.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.02em;
+}
+
+.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); }
+
+