50960bab21
- Brief: Market Intelligence (Binance data + LLM analysis) - Decio: Strategy decision (BUY/HOLD/SELL) - PaperT: Order executor (Binance API) - Anime-style Flask dashboard - Traefik-ready Docker deployment
407 lines
19 KiB
CSS
407 lines
19 KiB
CSS
/* BrainSteel Fin — Anime-style Dashboard */
|
|
/* ── Variables ─────────────────────────────────────────── */
|
|
:root {
|
|
--bg-dark: #0f0f1a;
|
|
--bg-card: #1a1a2e;
|
|
--bg-card-hover: #222240;
|
|
--accent-blue: #4fc3f7;
|
|
--accent-red: #ff6b6b;
|
|
--accent-green: #69f0ae;
|
|
--accent-yellow: #ffd54f;
|
|
--accent-purple: #b388ff;
|
|
--text-primary: #e8e8f0;
|
|
--text-secondary: #8888aa;
|
|
--border-radius: 16px;
|
|
--shadow: 0 8px 32px rgba(0,0,0,0.4);
|
|
}
|
|
|
|
/* ── Reset & Base ───────────────────────────────────────── */
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: 'Exo 2', 'Noto Sans JP', sans-serif;
|
|
background: var(--bg-dark);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* ── Dashboard Layout ───────────────────────────────────── */
|
|
.dashboard {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
/* ── Header ──────────────────────────────────────────────── */
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 24px;
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid rgba(79, 195, 247, 0.1);
|
|
}
|
|
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
|
|
.logo-icon { font-size: 2rem; }
|
|
.logo-text strong { color: var(--accent-blue); font-weight: 700; }
|
|
.header-status { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
|
|
.status-dot {
|
|
width: 12px; height: 12px; border-radius: 50%;
|
|
background: var(--accent-green);
|
|
box-shadow: 0 0 8px var(--accent-green);
|
|
animation: pulse 2s infinite;
|
|
}
|
|
.status-dot.running { background: var(--accent-yellow); box-shadow: 0 0 8px var(--accent-yellow); }
|
|
.status-dot.error { background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }
|
|
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
|
|
.header-time { font-variant-numeric: tabular-nums; color: var(--accent-blue); font-size: 1.1rem; }
|
|
|
|
/* ── Buttons ─────────────────────────────────────────────── */
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-primary { background: var(--accent-blue); color: #000; }
|
|
.btn-primary:hover { background: #7dd3fc; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,195,247,0.4); }
|
|
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
|
|
.btn-secondary { background: var(--bg-card-hover); color: var(--text-primary); border: 1px solid rgba(255,255,255,0.1); }
|
|
.btn-secondary:hover { background: #2a2a48; }
|
|
.btn-small { padding: 6px 14px; font-size: 0.8rem; background: var(--bg-card-hover); color: var(--text-primary); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; cursor: pointer; }
|
|
.btn-small:hover { background: #2a2a48; }
|
|
|
|
/* ── Pipeline Section ────────────────────────────────────── */
|
|
.pipeline-section { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid rgba(79,195,247,0.1); }
|
|
.pipeline-section h2 { margin-bottom: 16px; color: var(--text-primary); }
|
|
.pipeline-flow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
|
|
.pipeline-arrow { font-size: 2rem; color: var(--text-secondary); }
|
|
|
|
/* ── Pipeline Node ────────────────────────────────────────── */
|
|
.pipeline-node {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 16px;
|
|
border-radius: 14px;
|
|
background: var(--bg-card-hover);
|
|
border: 2px solid transparent;
|
|
min-width: 120px;
|
|
transition: all 0.3s;
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
.pipeline-node:hover { transform: translateY(-4px); border-color: var(--accent-blue); }
|
|
.pipeline-node.idle { border-color: rgba(136,136,170,0.3); }
|
|
.pipeline-node.working { border-color: var(--accent-yellow); box-shadow: 0 0 20px rgba(255,213,79,0.3); animation: glow-yellow 1.5s infinite; }
|
|
.pipeline-node.waiting { border-color: rgba(136,136,170,0.5); }
|
|
.pipeline-node.done { border-color: var(--accent-green); box-shadow: 0 0 15px rgba(105,240,174,0.3); }
|
|
.pipeline-node.error { border-color: var(--accent-red); }
|
|
@keyframes glow-yellow { 0%,100% { box-shadow: 0 0 20px rgba(255,213,79,0.3); } 50% { box-shadow: 0 0 35px rgba(255,213,79,0.6); } }
|
|
|
|
/* ── Agent Avatar ─────────────────────────────────────────── */
|
|
.agent-avatar {
|
|
width: 56px; height: 56px;
|
|
border-radius: 50%;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 1.8rem;
|
|
position: relative;
|
|
}
|
|
.avatar-ring {
|
|
position: absolute; inset: -3px; border-radius: 50%;
|
|
border: 2px solid;
|
|
opacity: 0.6;
|
|
animation: spin 4s linear infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.pipeline-node.working .avatar-ring { border-color: var(--accent-yellow); }
|
|
.pipeline-node.done .avatar-ring { border-color: var(--accent-green); animation-duration: 8s; }
|
|
.pipeline-node.error .avatar-ring { border-color: var(--accent-red); animation-duration: 0.5s; }
|
|
|
|
.agent-info { text-align: center; }
|
|
.agent-name { font-weight: 700; font-size: 1rem; }
|
|
.agent-role { font-size: 0.7rem; color: var(--text-secondary); display: block; }
|
|
.agent-status {
|
|
font-size: 0.7rem;
|
|
padding: 2px 10px;
|
|
border-radius: 20px;
|
|
background: rgba(255,255,255,0.1);
|
|
}
|
|
.agent-status.working { background: rgba(255,213,79,0.2); color: var(--accent-yellow); }
|
|
.agent-status.done { background: rgba(105,240,174,0.2); color: var(--accent-green); }
|
|
.agent-status.error { background: rgba(255,107,107,0.2); color: var(--accent-red); }
|
|
.agent-status.waiting { background: rgba(136,136,170,0.2); }
|
|
.agent-message { font-size: 0.65rem; color: var(--text-secondary); text-align: center; max-width: 100px; overflow: hidden; }
|
|
|
|
/* ── Pipeline Controls ────────────────────────────────────── */
|
|
.pipeline-controls { display: flex; gap: 10px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
|
|
|
|
/* ── Decision Banner ─────────────────────────────────────── */
|
|
.decision-banner {
|
|
margin-top: 12px;
|
|
padding: 10px 20px;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
}
|
|
.decision-banner.buy { background: rgba(105,240,174,0.15); color: var(--accent-green); border: 1px solid var(--accent-green); }
|
|
.decision-banner.sell { background: rgba(255,107,107,0.15); color: var(--accent-red); border: 1px solid var(--accent-red); }
|
|
.decision-banner.hold { background: rgba(255,213,79,0.15); color: var(--accent-yellow); border: 1px solid var(--accent-yellow); }
|
|
|
|
/* ── Office Section ───────────────────────────────────────── */
|
|
.office-section { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); }
|
|
.office-section h2 { margin-bottom: 16px; }
|
|
.office-floor { position: relative; }
|
|
.floor-grid { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
|
|
.agent-desk {
|
|
flex: 1; min-width: 140px;
|
|
padding: 16px;
|
|
background: var(--bg-card-hover);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
display: flex; flex-direction: column; align-items: center; gap: 8px;
|
|
}
|
|
.desk-icon { font-size: 2rem; }
|
|
.desk-status { font-size: 0.7rem; color: var(--text-secondary); text-align: center; }
|
|
.chat-bubble {
|
|
margin-top: 16px; padding: 12px 20px;
|
|
background: var(--bg-card-hover);
|
|
border-radius: 12px; border: 1px solid rgba(79,195,247,0.2);
|
|
font-size: 0.85rem; color: var(--text-secondary);
|
|
}
|
|
|
|
/* ── Registry Section ─────────────────────────────────────── */
|
|
.registry-section { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); }
|
|
.registry-section h2 { margin-bottom: 12px; }
|
|
.registry-controls { display: flex; gap: 10px; margin-bottom: 16px; }
|
|
.agent-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
|
|
.agent-card {
|
|
padding: 16px;
|
|
background: var(--bg-card-hover);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
transition: all 0.2s;
|
|
}
|
|
.agent-card:hover { border-color: var(--accent-blue); transform: translateY(-2px); }
|
|
.agent-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
|
|
.agent-card-emoji { font-size: 1.5rem; }
|
|
.agent-card-name { font-weight: 700; font-size: 1rem; }
|
|
.agent-card-role { font-size: 0.75rem; color: var(--text-secondary); }
|
|
.agent-card-intent { font-size: 0.8rem; color: var(--text-secondary); margin: 8px 0; line-height: 1.4; }
|
|
.agent-card-stats { display: flex; gap: 12px; font-size: 0.75rem; margin-top: 8px; }
|
|
.stat-badge { padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,0.05); }
|
|
.stat-badge.runs { color: var(--accent-blue); }
|
|
.stat-badge.ok { color: var(--accent-green); }
|
|
.stat-badge.fail { color: var(--accent-red); }
|
|
.agent-card-model { font-size: 0.65rem; color: var(--accent-purple); margin-top: 4px; font-family: monospace; }
|
|
.agent-card-actions { display: flex; gap: 6px; margin-top: 10px; }
|
|
.agent-card-actions button { flex: 1; padding: 5px; font-size: 0.7rem; border-radius: 6px; border: none; cursor: pointer; }
|
|
|
|
/* ── Two Column Layout ────────────────────────────────────── */
|
|
.two-col-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
|
|
@media (max-width: 900px) { .two-col-section { grid-template-columns: 1fr; } }
|
|
|
|
/* ── Metrics Section ─────────────────────────────────────── */
|
|
.metrics-section, .services-section { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); }
|
|
.metrics-section h2, .services-section h2 { margin-bottom: 12px; }
|
|
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
|
|
.metric-card {
|
|
padding: 14px;
|
|
background: var(--bg-card-hover);
|
|
border-radius: 10px;
|
|
border-left: 3px solid;
|
|
}
|
|
.metric-card.brief { border-left-color: var(--accent-blue); }
|
|
.metric-card.decio { border-left-color: var(--accent-yellow); }
|
|
.metric-card.papert { border-left-color: var(--accent-green); }
|
|
.metric-card.audit { border-left-color: var(--accent-purple); }
|
|
.metric-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
|
|
.metric-value { font-size: 1.2rem; font-weight: 700; }
|
|
.metric-sub { font-size: 0.7rem; color: var(--text-secondary); }
|
|
.metric-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 6px; overflow: hidden; }
|
|
.metric-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }
|
|
|
|
/* ── Services Section ─────────────────────────────────────── */
|
|
.services-controls { display: flex; gap: 10px; margin-bottom: 12px; }
|
|
.services-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
|
|
.service-item {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 10px 14px;
|
|
background: var(--bg-card-hover);
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
}
|
|
.service-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
|
|
.service-status-dot.healthy { background: var(--accent-green); }
|
|
.service-status-dot.degraded { background: var(--accent-yellow); }
|
|
.service-status-dot.unknown { background: var(--text-secondary); }
|
|
.service-status-dot.unreachable { background: var(--accent-red); }
|
|
.service-name { font-weight: 600; flex: 1; }
|
|
.service-type { font-size: 0.7rem; color: var(--text-secondary); }
|
|
.service-endpoint { font-size: 0.7rem; color: var(--accent-purple); font-family: monospace; }
|
|
.service-actions { display: flex; gap: 4px; }
|
|
.service-actions button { padding: 3px 8px; font-size: 0.65rem; border-radius: 4px; border: none; cursor: pointer; background: rgba(255,255,255,0.1); color: var(--text-secondary); }
|
|
.service-actions button:hover { background: rgba(255,255,255,0.2); }
|
|
|
|
/* ── Visual Pipeline ─────────────────────────────────────── */
|
|
.visual-section { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); }
|
|
.visual-section h2 { margin-bottom: 16px; }
|
|
.visual-container { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
|
|
@media (max-width: 900px) { .visual-container { grid-template-columns: 1fr; } }
|
|
.visual-flow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
|
.visual-node {
|
|
display: flex; flex-direction: column; align-items: center; gap: 4px;
|
|
padding: 12px 16px;
|
|
background: var(--bg-card-hover);
|
|
border-radius: 10px;
|
|
min-width: 90px;
|
|
position: relative;
|
|
}
|
|
.visual-node-label { font-size: 0.8rem; font-weight: 700; }
|
|
.visual-node-status { font-size: 0.65rem; color: var(--text-secondary); }
|
|
.visual-arrow { color: var(--text-secondary); font-size: 1.2rem; }
|
|
.visual-timeline { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
|
|
.timeline-item {
|
|
padding: 8px 12px;
|
|
background: var(--bg-card-hover);
|
|
border-radius: 6px;
|
|
font-size: 0.75rem;
|
|
display: flex; justify-content: space-between; gap: 8px;
|
|
}
|
|
.timeline-ts { color: var(--text-secondary); flex-shrink: 0; }
|
|
.timeline-decision { font-weight: 700; }
|
|
.timeline-decision.BUY { color: var(--accent-green); }
|
|
.timeline-decision.SELL { color: var(--accent-red); }
|
|
.timeline-decision.HOLD { color: var(--accent-yellow); }
|
|
|
|
/* ── Log Section ──────────────────────────────────────────── */
|
|
.log-section { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; box-shadow: var(--shadow); }
|
|
.log-section h2 { margin-bottom: 12px; }
|
|
.log-container { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
|
|
.log-entry {
|
|
display: flex; gap: 10px; align-items: baseline;
|
|
padding: 6px 10px;
|
|
background: var(--bg-card-hover);
|
|
border-radius: 6px;
|
|
font-size: 0.78rem;
|
|
}
|
|
.log-time { color: var(--text-secondary); flex-shrink: 0; font-variant-numeric: tabular-nums; }
|
|
.log-agent { font-weight: 700; min-width: 40px; color: var(--accent-blue); }
|
|
.log-message { color: var(--text-primary); flex: 1; }
|
|
.log-entry.system .log-agent { color: var(--accent-purple); }
|
|
.log-entry.error .log-agent { color: var(--accent-red); }
|
|
|
|
/* ── Modals ──────────────────────────────────────────────── */
|
|
.modal {
|
|
position: fixed; inset: 0;
|
|
background: rgba(0,0,0,0.7);
|
|
display: flex; align-items: center; justify-content: center;
|
|
z-index: 1000;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
.modal-content {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 24px;
|
|
width: 90%; max-width: 480px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
border: 1px solid rgba(79,195,247,0.2);
|
|
box-shadow: 0 20px 60px rgba(0,0,0,0.6);
|
|
}
|
|
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
|
|
.modal-header h3 { color: var(--text-primary); }
|
|
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
|
|
.modal-body { display: flex; flex-direction: column; gap: 10px; }
|
|
.modal-body label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }
|
|
.modal-body input, .modal-body textarea {
|
|
background: var(--bg-card-hover);
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
outline: none;
|
|
}
|
|
.modal-body input:focus, .modal-body textarea:focus { border-color: var(--accent-blue); }
|
|
.modal-footer { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
|
|
|
|
/* ── Scrollbar ───────────────────────────────────────────── */
|
|
::-webkit-scrollbar { width: 6px; }
|
|
::-webkit-scrollbar-track { background: var(--bg-dark); }
|
|
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 3px; }
|
|
|
|
/* ── Portfolio Section ─────────────────────────────────────── */
|
|
.portfolio-section {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
padding: 20px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid rgba(105,240,174,0.2);
|
|
}
|
|
.portfolio-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 16px;
|
|
}
|
|
.portfolio-header h2 { margin: 0; flex: 1; }
|
|
.portfolio-summary {
|
|
display: flex;
|
|
gap: 20px;
|
|
align-items: center;
|
|
font-size: 0.85rem;
|
|
}
|
|
.portfolio-balance { font-size: 1.2rem; font-weight: 700; color: var(--accent-blue); }
|
|
.portfolio-pnl { font-weight: 600; }
|
|
.portfolio-trades { color: var(--text-secondary); }
|
|
.portfolio-actions { display: flex; gap: 8px; }
|
|
.portfolio-chart {
|
|
background: var(--bg-card-hover);
|
|
border-radius: 10px;
|
|
padding: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.portfolio-chart canvas { width: 100%; height: 180px; display: block; }
|
|
.portfolio-trades-list { max-height: 200px; overflow-y: auto; }
|
|
::-webkit-scrollbar-thumb:hover { background: #333; }
|
|
|
|
/* ── Token Tracker ──────────────────────────────────────────── */
|
|
.tokens-section {
|
|
background: rgba(20, 25, 50, 0.95);
|
|
border: 1px solid rgba(99, 110, 200, 0.3);
|
|
border-radius: 12px;
|
|
padding: 18px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.tokens-controls {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
.tokens-controls label { color: #b0b8d0; font-size: 13px; }
|
|
.tokens-chart-wrap {
|
|
background: rgba(10, 12, 28, 0.8);
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.tokens-table-wrap { overflow-x: auto; }
|
|
.tokens-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #c8d0e8; }
|
|
.tokens-table th { background: rgba(99, 110, 200, 0.2); color: #a0aaff; padding: 8px 10px; text-align: left; }
|
|
.tokens-table td { padding: 6px 10px; border-bottom: 1px solid rgba(99, 110, 200, 0.1); }
|
|
.tokens-table tr:hover td { background: rgba(99, 110, 200, 0.08); } |