- Sidebar portfolio con metriche dettagliate (Totale, Investito, Disponibile, P&L, ROI) e aggiornamento real-time - Sistema multi-strategia: 8 strategie assegnabili per asset, voting decisionale, pagina Trading Control - Nuova pagina Posizioni: gestione, chiusura manuale, P&L non realizzato, notifiche - Sistema indicatori tecnici: 7+ indicatori configurabili, segnali real-time, raccomandazioni, storico segnali - Refactoring TradingBotService per capitale, P&L, ROI, eventi - Nuovi modelli e servizi per strategie/indicatori, persistenza configurazioni - UI/UX: navigazione aggiornata, widget, modali, responsive - Aggiornamento README e CHANGELOG con tutte le novità
543 lines
14 KiB
CSS
543 lines
14 KiB
CSS
/* ==============================================
|
|
TRADING BOT LAYOUT - Modern Vertical Sidebar
|
|
Global Styles (usando ::deep per scoped CSS)
|
|
============================================== */
|
|
|
|
/* Layout Container */
|
|
::deep .trading-bot-layout {
|
|
display: flex !important;
|
|
min-height: 100vh !important;
|
|
background: #0a0e27 !important;
|
|
color: #e2e8f0 !important;
|
|
position: relative !important;
|
|
}
|
|
|
|
/* ==============================================
|
|
MODERN SIDEBAR
|
|
============================================== */
|
|
|
|
::deep .modern-sidebar {
|
|
width: 280px !important;
|
|
background: linear-gradient(180deg, #1a1f3a 0%, #0f1629 100%) !important;
|
|
border-right: 1px solid rgba(99, 102, 241, 0.15) !important;
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
position: fixed !important;
|
|
left: 0 !important;
|
|
top: 0 !important;
|
|
bottom: 0 !important;
|
|
z-index: 1000 !important;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2) !important;
|
|
}
|
|
|
|
::deep .trading-bot-layout.collapsed .modern-sidebar {
|
|
width: 80px !important;
|
|
}
|
|
|
|
/* Brand Section */
|
|
::deep .sidebar-brand {
|
|
padding: 1.75rem 1.5rem !important;
|
|
border-bottom: 1px solid rgba(99, 102, 241, 0.1) !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: space-between !important;
|
|
gap: 1rem !important;
|
|
}
|
|
|
|
::deep .trading-bot-layout.collapsed .sidebar-brand {
|
|
padding: 1.5rem 0.75rem !important;
|
|
justify-content: center !important;
|
|
}
|
|
|
|
::deep .brand-container {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
gap: 1rem !important;
|
|
flex: 1 !important;
|
|
min-width: 0 !important;
|
|
}
|
|
|
|
::deep .brand-container.minimized {
|
|
justify-content: center !important;
|
|
flex: initial !important;
|
|
}
|
|
|
|
::deep .brand-logo {
|
|
width: 3.5rem !important;
|
|
height: 3.5rem !important;
|
|
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
|
|
border-radius: 1rem !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
flex-shrink: 0 !important;
|
|
box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3) !important;
|
|
}
|
|
|
|
::deep .trading-bot-layout.collapsed .brand-logo {
|
|
width: 3rem !important;
|
|
height: 3rem !important;
|
|
}
|
|
|
|
::deep .logo-icon {
|
|
font-size: 1.75rem !important;
|
|
color: white !important;
|
|
}
|
|
|
|
::deep .brand-info {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
gap: 0.5rem !important;
|
|
min-width: 0 !important;
|
|
}
|
|
|
|
::deep .brand-title {
|
|
font-size: 1.5rem !important;
|
|
font-weight: 700 !important;
|
|
color: white !important;
|
|
margin: 0 !important;
|
|
line-height: 1 !important;
|
|
}
|
|
|
|
::deep .brand-title .accent {
|
|
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
|
|
-webkit-background-clip: text !important;
|
|
-webkit-text-fill-color: transparent !important;
|
|
background-clip: text !important;
|
|
}
|
|
|
|
::deep .status-badge {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
gap: 0.5rem !important;
|
|
padding: 0.25rem 0.75rem !important;
|
|
background: rgba(71, 85, 105, 0.3) !important;
|
|
border-radius: 1rem !important;
|
|
width: fit-content !important;
|
|
}
|
|
|
|
::deep .status-badge.online {
|
|
background: rgba(16, 185, 129, 0.15) !important;
|
|
}
|
|
|
|
::deep .status-indicator {
|
|
width: 0.5rem !important;
|
|
height: 0.5rem !important;
|
|
border-radius: 50% !important;
|
|
background: #64748b !important;
|
|
}
|
|
|
|
::deep .status-badge.online .status-indicator {
|
|
background: #10b981 !important;
|
|
box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important;
|
|
animation: pulse-indicator 2s ease-in-out infinite !important;
|
|
}
|
|
|
|
@keyframes pulse-indicator {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.7; transform: scale(1.1); }
|
|
}
|
|
|
|
::deep .status-text {
|
|
font-size: 0.625rem !important;
|
|
font-weight: 700 !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.05em !important;
|
|
color: #64748b !important;
|
|
}
|
|
|
|
::deep .status-badge.online .status-text {
|
|
color: #10b981 !important;
|
|
}
|
|
|
|
::deep .collapse-btn {
|
|
width: 2.25rem !important;
|
|
height: 2.25rem !important;
|
|
border-radius: 0.625rem !important;
|
|
border: none !important;
|
|
background: rgba(99, 102, 241, 0.1) !important;
|
|
color: #6366f1 !important;
|
|
cursor: pointer !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
transition: all 0.2s ease !important;
|
|
font-size: 1rem !important;
|
|
flex-shrink: 0 !important;
|
|
}
|
|
|
|
::deep .collapse-btn:hover {
|
|
background: rgba(99, 102, 241, 0.2) !important;
|
|
transform: scale(1.05) !important;
|
|
}
|
|
|
|
/* Navigation Menu */
|
|
::deep .sidebar-menu {
|
|
flex: 1 !important;
|
|
padding: 1.5rem 0 !important;
|
|
overflow-y: auto !important;
|
|
overflow-x: hidden !important;
|
|
}
|
|
|
|
::deep .menu-item {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
gap: 1rem !important;
|
|
padding: 1rem 1.5rem !important;
|
|
color: #94a3b8 !important;
|
|
text-decoration: none !important;
|
|
transition: all 0.2s ease !important;
|
|
border-left: 3px solid transparent !important;
|
|
font-weight: 600 !important;
|
|
font-size: 0.938rem !important;
|
|
position: relative !important;
|
|
cursor: pointer !important;
|
|
}
|
|
|
|
::deep .trading-bot-layout.collapsed .menu-item {
|
|
justify-content: center !important;
|
|
padding: 1rem 0 !important;
|
|
}
|
|
|
|
::deep .menu-item:hover {
|
|
background: rgba(99, 102, 241, 0.08) !important;
|
|
color: #cbd5e1 !important;
|
|
border-left-color: rgba(99, 102, 241, 0.3) !important;
|
|
}
|
|
|
|
::deep .menu-item.active {
|
|
background: rgba(99, 102, 241, 0.12) !important;
|
|
border-left-color: #6366f1 !important;
|
|
color: #6366f1 !important;
|
|
}
|
|
|
|
::deep .menu-item.active::before {
|
|
content: '' !important;
|
|
position: absolute !important;
|
|
right: 0 !important;
|
|
top: 50% !important;
|
|
transform: translateY(-50%) !important;
|
|
width: 3px !important;
|
|
height: 60% !important;
|
|
background: #6366f1 !important;
|
|
border-radius: 3px 0 0 3px !important;
|
|
}
|
|
|
|
::deep .item-icon {
|
|
font-size: 1.375rem !important;
|
|
flex-shrink: 0 !important;
|
|
transition: transform 0.2s ease !important;
|
|
}
|
|
|
|
::deep .menu-item:hover .item-icon {
|
|
transform: scale(1.1) !important;
|
|
}
|
|
|
|
::deep .item-text {
|
|
white-space: nowrap !important;
|
|
overflow: hidden !important;
|
|
text-overflow: ellipsis !important;
|
|
}
|
|
|
|
/* Portfolio Summary */
|
|
::deep .sidebar-summary {
|
|
padding: 1.5rem !important;
|
|
border-top: 1px solid rgba(99, 102, 241, 0.1) !important;
|
|
}
|
|
|
|
::deep .summary-card {
|
|
padding: 1.25rem !important;
|
|
background: rgba(99, 102, 241, 0.08) !important;
|
|
border-radius: 0.75rem !important;
|
|
border: 1px solid rgba(99, 102, 241, 0.1) !important;
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
gap: 0.875rem !important;
|
|
}
|
|
|
|
::deep .summary-header {
|
|
margin-bottom: 0.5rem !important;
|
|
}
|
|
|
|
::deep .summary-section-title {
|
|
font-size: 0.875rem !important;
|
|
color: #6366f1 !important;
|
|
font-weight: 700 !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.05em !important;
|
|
}
|
|
|
|
::deep .summary-row {
|
|
display: flex !important;
|
|
justify-content: space-between !important;
|
|
align-items: center !important;
|
|
}
|
|
|
|
::deep .summary-row.highlight {
|
|
padding-top: 0.5rem !important;
|
|
margin-top: 0.5rem !important;
|
|
}
|
|
|
|
::deep .summary-divider {
|
|
height: 1px !important;
|
|
background: rgba(99, 102, 241, 0.2) !important;
|
|
margin: 0.25rem 0 !important;
|
|
}
|
|
|
|
::deep .summary-title {
|
|
font-size: 0.75rem !important;
|
|
color: #64748b !important;
|
|
font-weight: 600 !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.05em !important;
|
|
}
|
|
|
|
::deep .summary-amount {
|
|
font-size: 1rem !important;
|
|
font-weight: 700 !important;
|
|
color: white !important;
|
|
font-family: 'Courier New', monospace !important;
|
|
}
|
|
|
|
::deep .summary-amount.profit {
|
|
color: #10b981 !important;
|
|
}
|
|
|
|
::deep .summary-amount.loss {
|
|
color: #ef4444 !important;
|
|
}
|
|
|
|
::deep .summary-amount.invested {
|
|
color: #f59e0b !important;
|
|
}
|
|
|
|
::deep .summary-amount.available {
|
|
color: #3b82f6 !important;
|
|
}
|
|
|
|
/* ==============================================
|
|
MAIN CONTENT AREA
|
|
============================================== */
|
|
|
|
::deep .main-area {
|
|
flex: 1 !important;
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
margin-left: 280px !important;
|
|
transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
min-height: 100vh !important;
|
|
}
|
|
|
|
::deep .trading-bot-layout.collapsed .main-area {
|
|
margin-left: 80px !important;
|
|
}
|
|
|
|
/* Content Header */
|
|
::deep .content-header {
|
|
background: #0f1629 !important;
|
|
border-bottom: 1px solid rgba(99, 102, 241, 0.1) !important;
|
|
padding: 1.25rem 2rem !important;
|
|
display: flex !important;
|
|
justify-content: space-between !important;
|
|
align-items: center !important;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
|
|
position: sticky !important;
|
|
top: 0 !important;
|
|
z-index: 100 !important;
|
|
}
|
|
|
|
::deep .header-left {
|
|
flex: 1 !important;
|
|
}
|
|
|
|
::deep .header-right {
|
|
display: flex !important;
|
|
gap: 1rem !important;
|
|
align-items: center !important;
|
|
}
|
|
|
|
::deep .header-btn {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
gap: 0.625rem !important;
|
|
padding: 0.75rem 1.25rem !important;
|
|
border-radius: 0.625rem !important;
|
|
border: 1px solid #334155 !important;
|
|
background: #1a1f3a !important;
|
|
color: #cbd5e1 !important;
|
|
cursor: pointer !important;
|
|
transition: all 0.2s ease !important;
|
|
font-size: 0.875rem !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
::deep .header-btn:hover {
|
|
background: #1e293b !important;
|
|
border-color: #475569 !important;
|
|
transform: translateY(-1px) !important;
|
|
}
|
|
|
|
::deep .header-btn.notifications {
|
|
padding: 0.75rem !important;
|
|
}
|
|
|
|
::deep .header-btn.notifications .bi {
|
|
font-size: 1.125rem !important;
|
|
}
|
|
|
|
::deep .header-btn.bot-control {
|
|
padding: 0.75rem 1.5rem !important;
|
|
}
|
|
|
|
::deep .header-btn.bot-control .bi {
|
|
font-size: 1.125rem !important;
|
|
}
|
|
|
|
::deep .header-btn.bot-control.running {
|
|
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
|
|
border-color: #6366f1 !important;
|
|
color: white !important;
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
|
|
}
|
|
|
|
::deep .header-btn.bot-control.running:hover {
|
|
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4) !important;
|
|
}
|
|
|
|
::deep .btn-label {
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* Page Content */
|
|
::deep .page-content {
|
|
flex: 1 !important;
|
|
padding: 2rem !important;
|
|
overflow-y: auto !important;
|
|
background: #0a0e27 !important;
|
|
}
|
|
|
|
/* Scrollbar Styling */
|
|
::deep .sidebar-menu::-webkit-scrollbar,
|
|
::deep .page-content::-webkit-scrollbar {
|
|
width: 0.375rem !important;
|
|
}
|
|
|
|
::deep .sidebar-menu::-webkit-scrollbar-track,
|
|
::deep .page-content::-webkit-scrollbar-track {
|
|
background: transparent !important;
|
|
}
|
|
|
|
::deep .sidebar-menu::-webkit-scrollbar-thumb,
|
|
::deep .page-content::-webkit-scrollbar-thumb {
|
|
background: #334155 !important;
|
|
border-radius: 0.25rem !important;
|
|
}
|
|
|
|
::deep .sidebar-menu::-webkit-scrollbar-thumb:hover,
|
|
::deep .page-content::-webkit-scrollbar-thumb:hover {
|
|
background: #475569 !important;
|
|
}
|
|
|
|
/* ==============================================
|
|
RESPONSIVE DESIGN
|
|
============================================== */
|
|
|
|
@media (max-width: 1024px) {
|
|
::deep .modern-sidebar {
|
|
width: 260px !important;
|
|
}
|
|
|
|
::deep .main-area {
|
|
margin-left: 260px !important;
|
|
}
|
|
|
|
::deep .trading-bot-layout.collapsed .modern-sidebar {
|
|
width: 70px !important;
|
|
}
|
|
|
|
::deep .trading-bot-layout.collapsed .main-area {
|
|
margin-left: 70px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
::deep .modern-sidebar {
|
|
transform: translateX(-100%) !important;
|
|
width: 280px !important;
|
|
}
|
|
|
|
::deep .trading-bot-layout.sidebar-open .modern-sidebar {
|
|
transform: translateX(0) !important;
|
|
}
|
|
|
|
::deep .main-area {
|
|
margin-left: 0 !important;
|
|
}
|
|
|
|
::deep .content-header {
|
|
padding: 1rem 1.5rem !important;
|
|
}
|
|
|
|
::deep .page-content {
|
|
padding: 1.5rem !important;
|
|
}
|
|
|
|
::deep .header-btn.bot-control .btn-label {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
::deep .page-content {
|
|
padding: 1rem !important;
|
|
}
|
|
|
|
::deep .sidebar-brand {
|
|
padding: 1.5rem 1rem !important;
|
|
}
|
|
}
|
|
|
|
/* ==============================================
|
|
VERSION FOOTER
|
|
============================================== */
|
|
|
|
::deep .sidebar-footer {
|
|
padding: 1rem 1.5rem !important;
|
|
border-top: 1px solid rgba(99, 102, 241, 0.1) !important;
|
|
margin-top: auto !important;
|
|
}
|
|
|
|
::deep .version-info {
|
|
display: flex !important;
|
|
justify-content: space-between !important;
|
|
align-items: center !important;
|
|
margin-bottom: 0.5rem !important;
|
|
}
|
|
|
|
::deep .version-label {
|
|
font-size: 0.75rem !important;
|
|
color: #64748b !important;
|
|
font-weight: 600 !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.05em !important;
|
|
}
|
|
|
|
::deep .version-number {
|
|
font-size: 0.875rem !important;
|
|
font-weight: 700 !important;
|
|
color: #6366f1 !important;
|
|
font-family: 'Courier New', monospace !important;
|
|
}
|
|
|
|
::deep .build-info {
|
|
display: flex !important;
|
|
justify-content: flex-start !important;
|
|
}
|
|
|
|
::deep .build-date {
|
|
font-size: 0.625rem !important;
|
|
color: #475569 !important;
|
|
font-family: 'Courier New', monospace !important;
|
|
}
|