1e3f2e7199
- Added sidebar navigation with 3 tabs: Bitcoin, Dólar, Ouro - Added switchAsset() function to switch between assets - Updated CSS with sidebar layout (fixed 200px sidebar) - Updated script.js with asset state management - Sync sidebar clock and status with main header - BTC remains default active tab
609 lines
28 KiB
CSS
609 lines
28 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; }
|
|
|
|
/* ── Sidebar Layout ──────────────────────────────────── */
|
|
body {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
font-family: 'Exo 2', 'Noto Sans JP', sans-serif;
|
|
background: var(--bg-dark);
|
|
color: var(--text-primary);
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* ── Sidebar ─────────────────────────────────────────── */
|
|
.sidebar {
|
|
width: 200px;
|
|
min-height: 100vh;
|
|
background: var(--bg-card);
|
|
border-right: 1px solid rgba(79,195,247,0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px 0;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
}
|
|
.sidebar-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 0 16px 20px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
margin-bottom: 20px;
|
|
}
|
|
.sidebar-logo-icon { font-size: 1.8rem; }
|
|
.sidebar-logo-text { font-size: 0.9rem; line-height: 1.2; color: var(--text-primary); }
|
|
.sidebar-logo-text strong { color: var(--accent-blue); }
|
|
|
|
.sidebar-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 0 10px;
|
|
flex: 1;
|
|
}
|
|
.sidebar-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 14px 8px;
|
|
border: none;
|
|
border-radius: 12px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: center;
|
|
}
|
|
.sidebar-btn:hover {
|
|
background: var(--bg-card-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
.sidebar-btn.active {
|
|
background: rgba(79,195,247,0.1);
|
|
color: var(--accent-blue);
|
|
border: 1px solid rgba(79,195,247,0.2);
|
|
}
|
|
.sidebar-icon { font-size: 1.6rem; }
|
|
.sidebar-label { font-size: 0.8rem; font-weight: 600; }
|
|
.sidebar-pair { font-size: 0.65rem; opacity: 0.6; }
|
|
|
|
.sidebar-footer {
|
|
padding: 16px;
|
|
border-top: 1px solid rgba(255,255,255,0.05);
|
|
text-align: center;
|
|
}
|
|
.sidebar-clock { font-size: 1.1rem; color: var(--accent-blue); margin-bottom: 8px; }
|
|
.sidebar-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.75rem; color: var(--text-secondary); }
|
|
|
|
/* ── Main Content ────────────────────────────────────── */
|
|
.main-content {
|
|
margin-left: 200px;
|
|
flex: 1;
|
|
padding: 20px;
|
|
max-width: calc(100vw - 200px);
|
|
}
|
|
.main-content .dashboard {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
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); }
|
|
|
|
/* ── Cockpit de Dosagens de Trabalho ────────────────────────────────────────── */
|
|
.cockpit-section {
|
|
background: rgba(26, 26, 46, 0.85);
|
|
backdrop-filter: blur(12px);
|
|
border-radius: var(--border-radius);
|
|
padding: 20px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid rgba(79, 195, 247, 0.25);
|
|
}
|
|
.cockpit-section h2 {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
margin-bottom: 16px; font-size: 1.25rem; color: var(--text-primary);
|
|
}
|
|
.badge {
|
|
font-size: 0.7rem; background: rgba(79, 195, 247, 0.15);
|
|
color: var(--accent-blue); padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(79, 195, 247, 0.3);
|
|
}
|
|
.cockpit-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.cockpit-card {
|
|
background: rgba(15, 15, 26, 0.6);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
border-radius: 12px; padding: 16px;
|
|
display: flex; flex-direction: column; justify-content: space-between;
|
|
transition: all 0.2s;
|
|
}
|
|
.cockpit-card:hover {
|
|
background: rgba(15, 15, 26, 0.8); border-color: rgba(79, 195, 247, 0.2);
|
|
transform: translateY(-2px);
|
|
}
|
|
.cockpit-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
|
|
.cockpit-icon { font-size: 1.2rem; }
|
|
.cockpit-card-header h3 { font-size: 1rem; color: var(--text-primary); margin: 0; }
|
|
.cockpit-desc { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.2; }
|
|
.cockpit-options { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.btn-opt {
|
|
flex: 1; min-width: 65px; padding: 8px 10px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 8px; color: var(--text-secondary);
|
|
font-size: 0.8rem; font-weight: 600; cursor: pointer;
|
|
display: flex; flex-direction: column; align-items: center; gap: 2px;
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-opt small { font-size: 0.65rem; opacity: 0.7; font-weight: 400; }
|
|
.btn-opt:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
|
|
.btn-opt.active {
|
|
background: rgba(79, 195, 247, 0.15);
|
|
border-color: var(--accent-blue);
|
|
color: var(--accent-blue);
|
|
box-shadow: 0 0 12px rgba(79, 195, 247, 0.2);
|
|
}
|
|
.cockpit-inputs { display: flex; gap: 12px; }
|
|
.cockpit-inputs label {
|
|
flex: 1; font-size: 0.75rem; color: var(--text-secondary); font-weight: 600;
|
|
display: flex; flex-direction: column; gap: 4px;
|
|
}
|
|
.cockpit-inputs input {
|
|
background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 8px; padding: 8px 10px; color: var(--accent-green); font-weight: 700;
|
|
font-size: 0.9rem; width: 100%; outline: none; transition: border 0.2s;
|
|
}
|
|
.cockpit-inputs input:focus { border-color: var(--accent-green); }
|
|
.cockpit-slider-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
|
|
.slider-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-secondary); }
|
|
.cockpit-slider-wrap input[type="range"] {
|
|
width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px;
|
|
outline: none; -webkit-appearance: none; accent-color: var(--accent-purple);
|
|
}
|
|
.cockpit-slider-wrap input[type="range"]::-webkit-slider-thumb {
|
|
-webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
|
|
background: var(--accent-purple); cursor: pointer; box-shadow: 0 0 8px var(--accent-purple);
|
|
}
|
|
.slider-val { font-size: 0.75rem; color: var(--accent-purple); text-align: center; font-weight: 600; margin-top: 2px; }
|
|
.cockpit-footer { margin-top: 16px; text-align: right; min-height: 20px; }
|
|
.save-status { font-size: 0.8rem; font-weight: 600; transition: all 0.3s; }
|
|
.save-status.saving { color: var(--accent-yellow); }
|
|
.save-status.success { color: var(--accent-green); }
|
|
.save-status.error { color: var(--accent-red); }
|
|
|
|
/* ── Otimizações de Responsividade Mobile & Design Compacto ─────────────────── */
|
|
@media (max-width: 768px) {
|
|
.dashboard { padding: 12px; gap: 16px; }
|
|
.header { padding: 12px 16px; flex-direction: column; gap: 10px; align-items: flex-start; }
|
|
.header-status { width: 100%; justify-content: space-between; }
|
|
.header-time { align-self: flex-end; margin-top: -28px; }
|
|
.pipeline-section, .cockpit-section, .office-section, .registry-section, .metrics-section, .services-section, .visual-section, .portfolio-section, .tokens-section, .log-section {
|
|
padding: 16px;
|
|
}
|
|
h2 { font-size: 1.15rem; }
|
|
.pipeline-flow { gap: 8px; }
|
|
.pipeline-node { padding: 12px 10px; min-width: 100px; }
|
|
.pipeline-controls { flex-direction: column; width: 100%; }
|
|
.pipeline-controls button { width: 100%; }
|
|
.two-col-section { grid-template-columns: 1fr; gap: 16px; }
|
|
.portfolio-summary { flex-direction: column; align-items: flex-start; gap: 8px; }
|
|
.tokens-controls { flex-direction: column; align-items: flex-start; gap: 8px; }
|
|
.cockpit-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ── Performance Multi-Estratégia (Corrida do Alpha) ────────────────────────── */
|
|
.multistrat-section {
|
|
background: var(--bg-card); border-radius: var(--border-radius);
|
|
padding: 20px; box-shadow: var(--shadow); border: 1px solid rgba(105,240,174,0.25);
|
|
}
|
|
.multistrat-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
|
|
.multistrat-controls { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.btn-strat {
|
|
padding: 6px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
|
|
border-radius: 8px; color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-strat:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
|
|
.btn-strat.active { background: var(--accent-blue); color: #000; border-color: var(--accent-blue); box-shadow: 0 0 12px rgba(79,195,247,0.3); }
|
|
.multistrat-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; font-size: 0.85rem; background: var(--bg-card-hover); padding: 10px 16px; border-radius: 10px; }
|
|
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); }
|
|
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
|
|
.legend-item b { color: var(--text-primary); font-weight: 700; margin-left: 4px; }
|
|
.multistrat-chart-wrap { background: rgba(10,12,28,0.6); border-radius: 12px; padding: 12px; overflow-x: auto; }
|
|
.multistrat-chart-wrap canvas { max-width: 100%; height: auto; display: block; }
|
|
.strat-spinner { font-size: 0.85rem; color: var(--accent-yellow); padding: 10px; text-align: center; font-weight: 600; animation: pulse 1.5s infinite; } |