huggsook's picture
Add Humanoid-v5 PPO model, video preview, metrics and 3D studio
72dd47b verified
Raw
History Blame Contribute Delete
17.1 kB
/* ==============================================================================
Humanoid-v5 PPO AI Training & 3D Simulation Studio - Stylesheet
Theme: Modern Cyber-Robotics Dark Glassmorphism
============================================================================== */
:root {
--bg-primary: #0a0d14;
--bg-secondary: #111622;
--bg-surface: rgba(18, 24, 38, 0.75);
--bg-surface-hover: rgba(28, 36, 56, 0.85);
--glass-border: rgba(255, 255, 255, 0.08);
--glass-glow: rgba(0, 240, 255, 0.15);
--text-primary: #f0f4fc;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--accent-cyan: #00f0ff;
--accent-purple: #a855f7;
--accent-emerald: #10b981;
--accent-warning: #f59e0b;
--accent-danger: #ef4444;
--accent-gold: #fbbf24;
--font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--header-height: 68px;
--radius-lg: 16px;
--radius-md: 10px;
--radius-sm: 6px;
--transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body.dark-theme {
font-family: var(--font-main);
background-color: var(--bg-primary);
background-image:
radial-gradient(at 0% 0%, rgba(0, 240, 255, 0.06) 0px, transparent 50%),
radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.06) 0px, transparent 50%),
radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.04) 0px, transparent 50%);
color: var(--text-primary);
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
/* Glass Card Common */
.glass-card {
background: var(--bg-surface);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--glass-border);
border-radius: var(--radius-lg);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
transition: var(--transition-smooth);
}
/* Header */
.app-header {
height: var(--header-height);
background: rgba(10, 13, 20, 0.85);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--glass-border);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24px;
position: sticky;
top: 0;
z-index: 100;
}
.logo-area {
display: flex;
align-items: center;
gap: 14px;
}
.logo-icon {
width: 42px;
height: 42px;
background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
color: #fff;
box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
.logo-title {
font-size: 18px;
font-weight: 800;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 8px;
}
.logo-title .badge {
font-size: 10px;
font-weight: 700;
padding: 3px 8px;
background: rgba(0, 240, 255, 0.15);
color: var(--accent-cyan);
border: 1px solid rgba(0, 240, 255, 0.3);
border-radius: 20px;
letter-spacing: 1px;
}
.logo-sub {
font-size: 11px;
color: var(--text-muted);
font-family: var(--font-mono);
}
/* Header Metric Pills */
.header-metrics {
display: flex;
align-items: center;
gap: 12px;
}
.metric-pill {
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--glass-border);
border-radius: 20px;
padding: 6px 14px;
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
}
.metric-pill .label {
color: var(--text-muted);
font-weight: 600;
font-size: 10px;
letter-spacing: 0.5px;
}
.metric-pill .value {
font-family: var(--font-mono);
font-weight: 700;
}
/* Buttons */
.header-actions {
display: flex;
align-items: center;
gap: 10px;
}
.btn {
font-family: var(--font-main);
font-size: 13px;
font-weight: 600;
padding: 8px 16px;
border-radius: var(--radius-md);
border: none;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: var(--transition-smooth);
}
.btn-primary {
background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
color: #041426;
box-shadow: 0 4px 14px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
filter: brightness(1.15);
transform: translateY(-1px);
}
.btn-success {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: #fff;
box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
filter: brightness(1.15);
transform: translateY(-1px);
}
.btn-outline {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--glass-border);
}
.btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
color: var(--text-primary);
}
.btn-outline-warning {
background: transparent;
color: var(--accent-warning);
border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-outline-warning:hover {
background: rgba(245, 158, 11, 0.1);
}
.btn-outline-info {
background: transparent;
color: var(--accent-cyan);
border: 1px solid rgba(0, 240, 255, 0.3);
}
.btn-outline-info:hover {
background: rgba(0, 240, 255, 0.1);
}
/* Workspace Grid Layout */
.workspace-grid {
display: grid;
grid-template-columns: 310px 1fr 390px;
gap: 16px;
padding: 16px;
height: calc(100vh - var(--header-height));
overflow: hidden;
}
/* Sidebars Common */
.sidebar-left, .sidebar-right, .simulation-section {
display: flex;
flex-direction: column;
overflow: hidden;
}
.card-header {
padding: 14px 18px;
border-bottom: 1px solid var(--glass-border);
display: flex;
align-items: center;
gap: 10px;
}
.card-header i {
color: var(--accent-cyan);
font-size: 16px;
}
.card-header h2 {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
letter-spacing: 0.3px;
}
.sub-header {
padding: 10px 0;
margin-top: 10px;
border-bottom: none;
}
.sub-header h3 {
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
}
.sidebar-content {
padding: 16px;
overflow-y: auto;
flex: 1;
}
.divider {
border: none;
border-top: 1px solid var(--glass-border);
margin: 16px 0;
}
/* Settings Controls */
.setting-group {
margin-bottom: 14px;
}
.setting-group label, .label-row {
display: flex;
justify-content: space-between;
font-size: 12px;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 6px;
}
.setting-group input[type="range"] {
width: 100%;
appearance: none;
background: rgba(255, 255, 255, 0.1);
height: 6px;
border-radius: 3px;
outline: none;
}
.setting-group input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--accent-cyan);
cursor: pointer;
box-shadow: 0 0 8px var(--accent-cyan);
}
.speed-selector {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 6px;
}
.btn-chip {
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--glass-border);
color: var(--text-secondary);
border-radius: var(--radius-sm);
padding: 6px 0;
font-size: 11px;
font-weight: 700;
font-family: var(--font-mono);
cursor: pointer;
transition: var(--transition-smooth);
}
.btn-chip:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.btn-chip.active {
background: rgba(0, 240, 255, 0.15);
border-color: var(--accent-cyan);
color: var(--accent-cyan);
}
/* Neural Visualizer */
.neural-visualizer {
background: rgba(0, 0, 0, 0.25);
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: 10px;
}
.nn-layer-desc {
display: flex;
justify-content: space-between;
font-size: 9px;
font-family: var(--font-mono);
color: var(--text-muted);
margin-bottom: 6px;
}
#nnCanvas {
width: 100%;
height: 130px;
display: block;
}
.nn-actions-bar {
display: flex;
gap: 3px;
margin-top: 8px;
height: 24px;
}
.action-bar-col {
flex: 1;
background: rgba(255, 255, 255, 0.05);
border-radius: 2px;
position: relative;
overflow: hidden;
}
.action-bar-fill {
position: absolute;
bottom: 50%;
left: 0;
right: 0;
height: 0%;
background: var(--accent-cyan);
transition: height 0.05s ease;
}
/* Perturbation Controls */
.perturbation-box {
margin-top: 14px;
}
.btn-group-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.btn-sm {
padding: 6px 10px;
font-size: 11px;
}
/* Center Simulation Section */
.simulation-section {
position: relative;
}
.sim-header {
padding: 12px 18px;
border-bottom: 1px solid var(--glass-border);
display: flex;
align-items: center;
justify-content: space-between;
}
.sim-title {
display: flex;
align-items: center;
gap: 10px;
}
.sim-title h2 {
font-size: 14px;
font-weight: 700;
}
.badge-pulse {
font-size: 10px;
background: rgba(16, 185, 129, 0.15);
color: var(--accent-emerald);
border: 1px solid rgba(16, 185, 129, 0.3);
padding: 2px 8px;
border-radius: 12px;
font-weight: 700;
display: flex;
align-items: center;
gap: 5px;
}
.badge-pulse::before {
content: '';
width: 6px;
height: 6px;
background: var(--accent-emerald);
border-radius: 50%;
box-shadow: 0 0 6px var(--accent-emerald);
}
.sim-view-controls {
display: flex;
align-items: center;
gap: 8px;
}
.camera-modes {
display: flex;
background: rgba(255, 255, 255, 0.04);
border-radius: var(--radius-sm);
padding: 2px;
border: 1px solid var(--glass-border);
}
.btn-view {
background: transparent;
border: none;
color: var(--text-muted);
font-size: 11px;
font-weight: 600;
padding: 4px 10px;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
transition: var(--transition-smooth);
}
.btn-view:hover {
color: var(--text-primary);
}
.btn-view.active {
background: rgba(0, 240, 255, 0.2);
color: var(--accent-cyan);
}
.btn-icon {
width: 30px;
height: 30px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--glass-border);
color: var(--text-secondary);
border-radius: var(--radius-sm);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition-smooth);
}
.btn-icon:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text-primary);
}
/* 3D Canvas Viewport */
.canvas-wrapper {
flex: 1;
position: relative;
overflow: hidden;
background: #06080d;
}
#canvas3dContainer canvas {
width: 100%;
height: 100%;
display: block;
}
/* HUD Overlay */
.sim-hud {
position: absolute;
z-index: 10;
pointer-events: none;
display: flex;
flex-direction: column;
gap: 6px;
}
.sim-hud.top-left {
top: 14px;
left: 14px;
}
.sim-hud.top-right {
top: 14px;
right: 14px;
text-align: right;
}
.hud-item {
background: rgba(10, 14, 24, 0.75);
backdrop-filter: blur(8px);
border: 1px solid var(--glass-border);
padding: 4px 10px;
border-radius: 6px;
font-family: var(--font-mono);
font-size: 11px;
}
.hud-label {
color: var(--text-muted);
font-size: 10px;
}
.hud-value {
font-weight: 700;
color: var(--text-primary);
}
.fall-alert {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.9);
background: rgba(239, 68, 68, 0.9);
backdrop-filter: blur(10px);
color: #fff;
padding: 12px 24px;
border-radius: 12px;
font-weight: 700;
font-size: 13px;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
opacity: 0;
pointer-events: none;
transition: all 0.3s ease;
z-index: 20;
}
.fall-alert.show {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
/* Progress Track Bar */
.training-progressbar-container {
padding: 10px 18px;
background: rgba(10, 13, 20, 0.6);
border-top: 1px solid var(--glass-border);
}
.progress-info {
display: flex;
justify-content: space-between;
font-size: 11px;
font-family: var(--font-mono);
color: var(--text-secondary);
margin-bottom: 6px;
}
.eta-text {
color: var(--accent-cyan);
}
.progress-bar-bg {
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.08);
border-radius: 3px;
overflow: hidden;
}
.progress-bar-fill {
width: 0%;
height: 100%;
background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
box-shadow: 0 0 10px var(--accent-cyan);
transition: width 0.2s ease;
}
/* Right Charts Area */
.charts-scroll-area {
padding: 14px;
overflow-y: auto;
flex: 1;
display: flex;
flex-direction: column;
gap: 14px;
}
.chart-box {
background: rgba(0, 0, 0, 0.25);
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: 12px;
}
.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.chart-title {
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 6px;
}
.chart-badge {
font-family: var(--font-mono);
font-size: 11px;
font-weight: 700;
}
.chart-container {
position: relative;
height: 110px;
width: 100%;
}
/* Terminal Stream */
.terminal-box {
background: #06090e;
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
overflow: hidden;
display: flex;
flex-direction: column;
height: 150px;
}
.terminal-header {
background: rgba(255, 255, 255, 0.03);
padding: 6px 10px;
border-bottom: 1px solid var(--glass-border);
display: flex;
align-items: center;
justify-content: space-between;
}
.term-dots {
display: flex;
gap: 5px;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.term-title {
font-size: 10px;
font-family: var(--font-mono);
color: var(--text-muted);
}
.term-clear-btn {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
font-size: 11px;
}
.term-clear-btn:hover {
color: var(--text-primary);
}
.terminal-body {
padding: 8px 10px;
font-family: var(--font-mono);
font-size: 10px;
line-height: 1.5;
overflow-y: auto;
flex: 1;
}
.log-line {
margin-bottom: 2px;
word-break: break-all;
}
/* Modal */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.modal-backdrop.show {
opacity: 1;
pointer-events: auto;
}
.modal-card {
width: 480px;
max-width: 90vw;
padding: 24px;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.modal-title {
display: flex;
align-items: center;
gap: 10px;
}
.modal-title h3 {
font-size: 16px;
font-weight: 700;
}
.btn-close {
background: none;
border: none;
color: var(--text-muted);
font-size: 18px;
cursor: pointer;
}
.btn-close:hover {
color: var(--text-primary);
}
.modal-desc {
font-size: 13px;
color: var(--text-secondary);
line-height: 1.5;
margin-bottom: 16px;
}
.zip-files-list {
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: 12px;
display: flex;
flex-direction: column;
gap: 8px;
font-size: 12px;
}
.zip-item {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--font-mono);
}
.zip-item span {
color: var(--text-muted);
font-size: 11px;
font-family: var(--font-main);
}
.modal-footer {
margin-top: 20px;
display: flex;
justify-content: flex-end;
gap: 10px;
}
/* Toast Notifications */
.toast-container {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 10px;
}
.toast {
background: rgba(17, 22, 34, 0.95);
backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-left: 4px solid var(--accent-cyan);
border-radius: var(--radius-md);
padding: 12px 18px;
color: var(--text-primary);
font-size: 13px;
box-shadow: 0 10px 25px rgba(0,0,0,0.5);
display: flex;
align-items: center;
gap: 10px;
animation: slideIn 0.3s ease forwards;
}
.toast.success { border-left-color: var(--accent-emerald); }
.toast.warning { border-left-color: var(--accent-warning); }
.toast.danger { border-left-color: var(--accent-danger); }
@keyframes slideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
/* Utilities */
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-emerald { color: var(--accent-emerald); }
.text-accent { color: var(--accent-cyan); }
.text-warning { color: var(--accent-warning); }
.text-danger { color: var(--accent-danger); }
.text-muted { color: var(--text-muted); }
.text-info { color: #38bdf8; }
/* Custom Scrollbars */
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}