Spaces:
Sleeping
Sleeping
| /* ============================================ | |
| DevOps RL Agent — Premium AI Theme | |
| Glassmorphism, Neon Accents, Cyberpunk UI | |
| ============================================ */ | |
| :root { | |
| /* Color Palette */ | |
| --bg-base: #060913; | |
| --bg-surface: rgba(13, 17, 30, 0.75); | |
| --bg-surface-hover: rgba(22, 28, 45, 0.85); | |
| --sidebar-bg: rgba(9, 12, 21, 0.95); | |
| --sidebar-border: rgba(255, 255, 255, 0.05); | |
| --primary: #00f0ff; | |
| --primary-glow: rgba(0, 240, 255, 0.4); | |
| --secondary: #7000ff; | |
| --secondary-glow: rgba(112, 0, 255, 0.4); | |
| --success: #00ff9d; | |
| --success-bg: rgba(0, 255, 157, 0.1); | |
| --danger: #ff0055; | |
| --danger-bg: rgba(255, 0, 85, 0.1); | |
| --warning: #ffb800; | |
| --text-main: #e2e8f0; | |
| --text-muted: #64748b; | |
| --text-bright: #ffffff; | |
| --border-subtle: rgba(255, 255, 255, 0.08); | |
| --border-strong: rgba(255, 255, 255, 0.15); | |
| /* Fonts */ | |
| --font-sans: 'Inter', sans-serif; | |
| --font-display: 'Outfit', sans-serif; | |
| --font-mono: 'JetBrains Mono', monospace; | |
| /* Shadows & Radii */ | |
| --radius-sm: 6px; | |
| --radius-md: 12px; | |
| --radius-lg: 20px; | |
| --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.15); | |
| } | |
| * { box-sizing: border-box; margin: 0; padding: 0; } | |
| body { | |
| font-family: var(--font-sans); | |
| background: var(--bg-base); | |
| color: var(--text-main); | |
| overflow: hidden; | |
| height: 100vh; | |
| } | |
| /* Dynamic Background grid */ | |
| body::before { | |
| content: ''; | |
| position: fixed; | |
| top: 0; left: 0; right: 0; bottom: 0; | |
| background-image: | |
| linear-gradient(var(--border-subtle) 1px, transparent 1px), | |
| linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px); | |
| background-size: 40px 40px; | |
| background-position: center center; | |
| opacity: 0.3; | |
| z-index: -2; | |
| transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px); | |
| animation: grid-move 20s linear infinite; | |
| } | |
| body::after { | |
| content: ''; | |
| position: fixed; | |
| top: 0; left: 0; right: 0; bottom: 0; | |
| background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-base) 80%); | |
| z-index: -1; | |
| pointer-events: none; | |
| } | |
| @keyframes grid-move { | |
| 0% { background-position: 0 0; } | |
| 100% { background-position: 0 40px; } | |
| } | |
| /* Layout */ | |
| .app-container { | |
| display: flex; | |
| height: 100vh; | |
| width: 100vw; | |
| } | |
| /* Sidebar */ | |
| .sidebar { | |
| width: 260px; | |
| background: var(--sidebar-bg); | |
| border-right: 1px solid var(--sidebar-border); | |
| backdrop-filter: blur(20px); | |
| display: flex; | |
| flex-direction: column; | |
| z-index: 10; | |
| } | |
| .sidebar-brand { | |
| padding: 1.5rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| border-bottom: 1px solid var(--border-subtle); | |
| } | |
| .brand-logo { | |
| width: 40px; height: 40px; | |
| background: linear-gradient(135deg, var(--primary), var(--secondary)); | |
| border-radius: 10px; | |
| display: flex; align-items: center; justify-content: center; | |
| box-shadow: 0 0 15px var(--primary-glow); | |
| } | |
| .brand-text h1 { | |
| font-family: var(--font-display); | |
| font-size: 1.1rem; | |
| font-weight: 900; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| color: var(--text-bright); | |
| } | |
| .brand-text p { | |
| font-size: 0.7rem; | |
| color: var(--primary); | |
| font-weight: 600; | |
| letter-spacing: 0.5px; | |
| } | |
| .sidebar-nav { | |
| flex: 1; | |
| padding: 1.5rem 1rem; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .nav-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| padding: 0.8rem 1rem; | |
| background: transparent; | |
| border: 1px solid transparent; | |
| border-radius: var(--radius-md); | |
| color: var(--text-muted); | |
| font-family: var(--font-display); | |
| font-weight: 600; | |
| font-size: 0.95rem; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| text-align: left; | |
| } | |
| .nav-btn:hover { | |
| color: var(--text-bright); | |
| background: rgba(255,255,255,0.02); | |
| } | |
| .nav-btn.active { | |
| background: rgba(0, 240, 255, 0.05); | |
| border-color: rgba(0, 240, 255, 0.2); | |
| color: var(--primary); | |
| box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05); | |
| } | |
| .sidebar-footer { | |
| padding: 1.5rem; | |
| border-top: 1px solid var(--border-subtle); | |
| } | |
| .api-status-box { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.8rem; | |
| font-size: 0.75rem; | |
| font-family: var(--font-mono); | |
| color: var(--text-muted); | |
| background: rgba(0,0,0,0.3); | |
| padding: 0.6rem 1rem; | |
| border-radius: var(--radius-sm); | |
| border: 1px solid var(--border-subtle); | |
| } | |
| .status-indicator { | |
| width: 8px; height: 8px; | |
| border-radius: 50%; | |
| background: var(--warning); | |
| box-shadow: 0 0 8px var(--warning); | |
| } | |
| .status-indicator.online { | |
| background: var(--success); | |
| box-shadow: 0 0 8px var(--success); | |
| } | |
| .status-indicator.error { | |
| background: var(--danger); | |
| box-shadow: 0 0 8px var(--danger); | |
| } | |
| /* Main Content */ | |
| .main-content { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .topbar { | |
| height: 70px; | |
| padding: 0 2rem; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| border-bottom: 1px solid var(--border-subtle); | |
| background: rgba(6, 9, 19, 0.8); | |
| backdrop-filter: blur(10px); | |
| z-index: 5; | |
| } | |
| .topbar h2 { | |
| font-family: var(--font-display); | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| background: linear-gradient(90deg, #fff, var(--text-muted)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .stat-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.6rem; | |
| padding: 0.4rem 1rem; | |
| background: rgba(112, 0, 255, 0.1); | |
| border: 1px solid rgba(112, 0, 255, 0.3); | |
| border-radius: 20px; | |
| font-family: var(--font-mono); | |
| font-size: 0.75rem; | |
| color: #c4b5fd; | |
| } | |
| .badge-dot { | |
| width: 6px; height: 6px; | |
| border-radius: 50%; | |
| background: var(--secondary); | |
| } | |
| .pulse { animation: pulse-glow 2s infinite; } | |
| @keyframes pulse-glow { | |
| 0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--secondary); } | |
| 50% { opacity: 0.5; box-shadow: none; } | |
| } | |
| .content-scroll { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 2rem; | |
| } | |
| .tab-pane { display: none; animation: fade-in 0.3s ease forwards; } | |
| .tab-pane.active { display: block; } | |
| @keyframes fade-in { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* Glass Panels */ | |
| .glass-panel { | |
| background: var(--bg-surface); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-lg); | |
| backdrop-filter: blur(12px); | |
| box-shadow: 0 8px 32px rgba(0,0,0,0.3); | |
| } | |
| /* KPI Cards */ | |
| .kpi-grid { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 1.5rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .kpi-card { | |
| padding: 1.5rem; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .kpi-header { | |
| font-size: 0.8rem; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| color: var(--text-muted); | |
| font-weight: 600; | |
| margin-bottom: 0.5rem; | |
| } | |
| .kpi-value { | |
| font-family: var(--font-display); | |
| font-size: 2.5rem; | |
| font-weight: 800; | |
| } | |
| .highlight-cyan { color: var(--primary); text-shadow: 0 0 15px rgba(0, 240, 255, 0.3); } | |
| .highlight-green { color: var(--success); text-shadow: 0 0 15px rgba(0, 255, 157, 0.3); } | |
| .highlight-purple { color: #a78bfa; text-shadow: 0 0 15px rgba(167, 139, 250, 0.3); } | |
| .kpi-chart-mini { | |
| position: absolute; | |
| bottom: 0; left: 0; right: 0; | |
| height: 50px; | |
| opacity: 0.5; | |
| } | |
| /* Dashboard Grid */ | |
| .dashboard-grid { | |
| display: grid; | |
| grid-template-columns: 2fr 1fr; | |
| gap: 1.5rem; | |
| } | |
| .panel-header { | |
| padding: 1.2rem 1.5rem; | |
| border-bottom: 1px solid var(--border-subtle); | |
| } | |
| .panel-header h3 { | |
| font-family: var(--font-display); | |
| font-size: 1rem; | |
| font-weight: 600; | |
| } | |
| .chart-container { | |
| padding: 1.5rem; | |
| height: 300px; | |
| width: 100%; | |
| } | |
| .level-cards-wrapper { | |
| padding: 1.5rem; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .level-stat-row { | |
| background: rgba(0,0,0,0.2); | |
| border: 1px solid var(--border-subtle); | |
| padding: 1rem; | |
| border-radius: var(--radius-md); | |
| } | |
| .level-stat-row .top { | |
| display: flex; justify-content: space-between; margin-bottom: 0.5rem; | |
| } | |
| .level-stat-row .name { font-weight: 600; } | |
| .level-stat-row .rate { font-family: var(--font-mono); color: var(--success); } | |
| .progress-track { | |
| height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; | |
| } | |
| .progress-fill { | |
| height: 100%; background: var(--primary); box-shadow: 0 0 10px var(--primary); | |
| width: 0%; transition: width 1s ease; | |
| } | |
| /* Terminal & Runner */ | |
| .runner-layout, .replay-layout { | |
| display: grid; | |
| grid-template-columns: 300px 1fr; | |
| gap: 1.5rem; | |
| height: calc(100vh - 140px); | |
| } | |
| .controls-panel { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; } | |
| .control-group label { | |
| display: block; font-size: 0.75rem; text-transform: uppercase; | |
| color: var(--text-muted); margin-bottom: 0.5rem; letter-spacing: 1px; | |
| } | |
| .neon-select { | |
| width: 100%; padding: 0.8rem; | |
| background: rgba(0,0,0,0.3); border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-sm); color: var(--text-bright); | |
| font-family: var(--font-sans); outline: none; transition: border-color 0.2s; | |
| } | |
| .neon-select:focus { border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); } | |
| .neon-btn { | |
| width: 100%; padding: 1rem; | |
| background: rgba(0, 240, 255, 0.1); border: 1px solid var(--primary); | |
| color: var(--primary); font-family: var(--font-display); font-weight: 700; | |
| font-size: 0.9rem; letter-spacing: 1px; cursor: pointer; | |
| border-radius: var(--radius-sm); display: flex; justify-content: space-between; | |
| align-items: center; transition: all 0.3s ease; text-transform: uppercase; | |
| } | |
| .neon-btn:hover { | |
| background: var(--primary); color: #000; | |
| box-shadow: 0 0 20px var(--primary-glow); | |
| } | |
| .neon-btn:disabled { | |
| background: transparent; border-color: var(--border-subtle); | |
| color: var(--text-muted); cursor: not-allowed; box-shadow: none; | |
| } | |
| /* Terminal Panel */ | |
| .terminal-panel { | |
| background: #000; | |
| border: 1px solid var(--border-strong); | |
| border-radius: var(--radius-md); | |
| display: flex; flex-direction: column; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.5); | |
| } | |
| .terminal-header { | |
| height: 35px; background: #1a1b26; border-bottom: 1px solid #292e42; | |
| display: flex; align-items: center; padding: 0 1rem; | |
| } | |
| .term-dots { display: flex; gap: 6px; } | |
| .term-dots span { width: 10px; height: 10px; border-radius: 50%; } | |
| .term-dots span:nth-child(1) { background: #f7768e; } | |
| .term-dots span:nth-child(2) { background: #e0af68; } | |
| .term-dots span:nth-child(3) { background: #9ece6a; } | |
| .term-title { | |
| flex: 1; text-align: center; color: #a9b1d6; font-family: var(--font-mono); | |
| font-size: 0.75rem; opacity: 0.7; margin-left: -40px; /* Offset dots */ | |
| } | |
| .terminal-body { | |
| flex: 1; padding: 1.5rem; overflow-y: auto; | |
| font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; | |
| color: #a9b1d6; | |
| } | |
| .term-empty-state { color: #565f89; } | |
| .blink { animation: blink 1s step-end infinite; } | |
| @keyframes blink { 50% { opacity: 0; } } | |
| /* Terminal Output Items */ | |
| .term-step { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed #292e42; } | |
| .term-step:last-child { border-bottom: none; } | |
| .term-cmd { color: #7aa2f7; font-weight: 600; margin-bottom: 0.3rem; } | |
| .term-cmd::before { content: "❯ "; color: #9ece6a; } | |
| .term-result { padding-left: 1rem; border-left: 2px solid #3b4261; margin-top: 0.5rem; } | |
| .term-success { color: #9ece6a; } | |
| .term-error { color: #f7768e; } | |
| .term-blocked { color: #e0af68; } | |
| .term-reward { font-size: 0.75rem; background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; margin-left: 10px;} | |
| .term-reward.pos { color: #9ece6a; } | |
| .term-reward.neg { color: #f7768e; } | |
| .term-summary { | |
| margin-top: 1.5rem; padding: 1rem; background: rgba(122, 162, 247, 0.1); | |
| border: 1px solid rgba(122, 162, 247, 0.3); border-radius: var(--radius-sm); | |
| } | |
| /* Recent History List */ | |
| .recent-list { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; height: calc(100% - 60px); } | |
| .history-item { | |
| padding: 0.8rem; background: rgba(0,0,0,0.2); border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; | |
| display: flex; flex-direction: column; gap: 0.3rem; | |
| } | |
| .history-item:hover { border-color: var(--primary); background: rgba(0, 240, 255, 0.05); } | |
| .hi-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; } | |
| .hi-id { color: var(--text-muted); } | |
| .hi-reward { font-weight: bold; } | |
| .hi-reward.pos { color: var(--success); } | |
| .hi-reward.neg { color: var(--danger); } | |
| .hi-scenario { font-size: 0.85rem; font-weight: 600; } | |
| .hi-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 10px; background: rgba(255,255,255,0.1); } | |
| .hi-badge.win { background: var(--success-bg); color: var(--success); } | |
| /* Scenarios Grid */ | |
| .scenarios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; } | |
| .scenario-card { padding: 1.5rem; } | |
| .sc-name { font-family: var(--font-mono); font-size: 1.1rem; color: var(--primary); margin-bottom: 0.5rem; } | |
| .sc-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; height: 40px; } | |
| .sc-hints { background: rgba(0,0,0,0.3); padding: 0.8rem; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.75rem; color: #a9b1d6; } | |
| .sc-hints span { display: block; margin-bottom: 0.3rem; } | |
| .sc-hints span::before { content: "$ "; color: var(--success); } | |
| .sc-stats { margin-top: 1rem; display: flex; justify-content: space-between; font-size: 0.8rem; border-top: 1px solid var(--border-subtle); padding-top: 0.8rem; } | |
| /* Scrollbar */ | |
| ::-webkit-scrollbar { width: 8px; } | |
| ::-webkit-scrollbar-track { background: transparent; } | |
| ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; } | |
| ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); } | |