🚀 Auto-deploy: Add background automated scheduler, Kelly allocation, multi-portfolio simulations, and UI improvements

This commit is contained in:
2026-05-20 11:23:56 +00:00
parent 738490ea4f
commit 3921ce9359
9 changed files with 944 additions and 127 deletions
+126 -1
View File
@@ -404,4 +404,129 @@ body {
.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); }
.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; }