:root { --primary-bg: #0a0e27; --secondary-bg: #141b3d; --card-bg: #1a2238; --accent-blue: #00d4ff; --accent-cyan: #00ffcc; --accent-purple: #7b2cbf; --text-primary: #ffffff; --text-secondary: #a0aec0; --text-muted: #718096; --border-color: #2d3748; --success: #48bb78; --danger: #f56565; --warning: #ed8936; --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif; --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace; --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4); --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5); --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3); --transition-fast: 0.15s ease; --transition-normal: 0.3s ease; --transition-slow: 0.5s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; height: 100%; } body { font-family: var(--font-primary); background: linear-gradient(135deg, var(--primary-bg) 0%, #0d1628 100%); color: var(--text-primary); line-height: 1.6; min-height: 100vh; height: 100%; background-attachment: fixed; overflow-x: hidden; margin: 0; padding: 0; } /* Navbar */ .navbar { background: var(--card-bg); border-bottom: 2px solid var(--border-color); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); box-shadow: var(--shadow-md); } .nav-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; } .nav-brand { display: flex; align-items: center; gap: 0.75rem; } .brand-icon { font-size: 2rem; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } .nav-brand h1 { font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .nav-menu { display: flex; list-style: none; gap: 2rem; } .nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border-radius: 8px; transition: all var(--transition-normal); position: relative; } .nav-link:hover { color: var(--accent-cyan); background: rgba(0, 212, 255, 0.1); } .nav-link.active { color: var(--accent-blue); background: rgba(0, 212, 255, 0.15); box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); } /* GitHub Link */ .github-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 204, 0.1)); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all var(--transition-normal); position: relative; overflow: hidden; white-space: nowrap; } .github-link::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent); transition: left 0.5s ease; } .github-link:hover::before { left: 100%; } .github-link:hover { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); border-color: var(--accent-blue); color: var(--primary-bg); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3); } .github-link:active { transform: translateY(0); } .github-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition-normal); } .github-link:hover .github-icon { transform: rotate(360deg) scale(1.1); } .github-text { font-weight: 600; letter-spacing: 0.3px; } /* Container */ .container { max-width: 1400px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; min-height: calc(100vh - 76px); } .container-padded { padding: 2rem; } /* Page Header */ .page-header { text-align: center; margin-bottom: 0.4rem; padding: 0.4rem 2rem 0.2rem; flex-shrink: 0; } .page-header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.1rem; background: linear-gradient(135deg, var(--text-primary), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .subtitle { color: var(--text-secondary); font-size: 0.75rem; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.4rem; margin-bottom: 0.4rem; padding: 0 2rem; flex-shrink: 0; } .stat-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.6rem 0.9rem; transition: all var(--transition-normal); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); } .stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)); opacity: 0; transition: opacity var(--transition-normal); } .stat-card:hover::before { opacity: 1; } .stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(0, 212, 255, 0.3); } .stat-label { color: var(--text-secondary); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem; } .stat-value { font-size: 1.3rem; font-weight: 700; color: var(--accent-cyan); font-family: var(--font-mono); } /* Chart Section */ .chart-section { margin-bottom: 0; padding: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; } .chart-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 0; padding: 0.6rem 1.5rem 0.8rem; box-shadow: none; border-left: none; border-right: none; flex: 1; display: flex; flex-direction: column; overflow: hidden; } .chart-card.hero { flex: 1; min-height: 0; } .chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; flex-wrap: wrap; gap: 0.6rem; flex-shrink: 0; } .chart-header h3 { font-size: 1.05rem; color: var(--text-primary); } .chart-controls { display: flex; gap: 1rem; } .btn-secondary { background: var(--secondary-bg); color: var(--text-primary); border: 1px solid var(--border-color); padding: 0.6rem 1.2rem; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 0.9rem; transition: all var(--transition-normal); position: relative; overflow: hidden; } .btn-secondary::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(0, 212, 255, 0.3); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .btn-secondary:hover::before { width: 300px; height: 300px; } .btn-secondary:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: var(--primary-bg); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4); } .btn-secondary:active { transform: translateY(0); } .chart-container { position: relative; width: 100%; flex: 1; min-height: 0; } .chart-card.hero .chart-container { flex: 1; min-height: 0; } .chart-container-small { position: relative; height: 300px; } /* Legend Section */ .legend-section { display: none; } .legend-section h3 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--text-primary); } .agent-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; } .legend-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; transition: all var(--transition-fast); } .legend-item:hover { transform: translateY(-3px); border-color: var(--accent-blue); box-shadow: var(--shadow-md); } .legend-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; background: rgba(0, 212, 255, 0.1); } .legend-icon-img { width: 28px; height: 28px; object-fit: contain; } .legend-color { width: 4px; height: 42px; border-radius: 2px; flex-shrink: 0; } .legend-info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; } .legend-name { color: var(--text-primary); font-size: 0.95rem; font-weight: 600; } .legend-return { font-weight: 700; font-family: var(--font-mono); font-size: 1rem; } .legend-return.positive { color: var(--success); } .legend-return.negative { color: var(--danger); } /* Portfolio Specific Styles */ .agent-selector-section { margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; padding: 0 2rem; } .agent-selector-section label { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; } .agent-select { position: relative; background: linear-gradient(135deg, var(--card-bg), var(--secondary-bg)); color: var(--text-primary); border: 2px solid var(--border-color); padding: 0.875rem 3rem 0.875rem 1.25rem; border-radius: 12px; font-size: 1rem; font-weight: 500; cursor: pointer; min-width: 320px; transition: all var(--transition-normal); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 20px; } .agent-select:hover { border-color: var(--accent-blue); background: linear-gradient(135deg, var(--secondary-bg), var(--card-bg)); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2); } .agent-select:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1); } .agent-select option { background: var(--card-bg); color: var(--text-primary); padding: 0.75rem; } .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; margin-bottom: 3rem; padding: 0 2rem; } .portfolio-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-md); transition: all var(--transition-normal); } .portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(0, 212, 255, 0.3); } .portfolio-card h3 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--accent-cyan); position: relative; padding-bottom: 0.75rem; } .portfolio-card h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: linear-gradient(90deg, var(--accent-blue), transparent); border-radius: 2px; } .metrics-list { display: flex; flex-direction: column; gap: 1rem; } .metric-item { display: flex; justify-content: space-between; padding: 1rem 1.25rem; background: var(--secondary-bg); border-radius: 8px; border-left: 3px solid var(--accent-blue); transition: all var(--transition-fast); } .metric-item:hover { background: var(--card-bg); border-left-width: 4px; transform: translateX(5px); } .metric-label { color: var(--text-secondary); font-weight: 500; } .metric-value { color: var(--text-primary); font-weight: 700; font-family: var(--font-mono); } /* Holdings Table */ .holdings-section { margin-bottom: 3rem; padding: 0 2rem; } .holdings-section h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-primary); } .holdings-scroll-wrapper { height: 400px; overflow-y: scroll; overflow-x: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: var(--card-bg); position: relative; isolation: isolate; contain: layout style; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; } .holdings-table-container { background: var(--card-bg); position: relative; } /* Force scrollbar to always be visible */ .holdings-scroll-wrapper::-webkit-scrollbar { width: 12px; background: var(--secondary-bg); } .holdings-scroll-wrapper::-webkit-scrollbar-track { background: var(--secondary-bg); border-radius: 6px; } .holdings-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 6px; border: 2px solid var(--secondary-bg); } .holdings-scroll-wrapper::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); } .holdings-table { width: 100%; border-collapse: collapse; min-width: 600px; } .holdings-table thead { background: var(--secondary-bg); position: sticky; top: 0; z-index: 10; display: table-header-group; } .holdings-table th { padding: 1rem; text-align: left; font-weight: 600; color: var(--accent-cyan); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; border-bottom: 2px solid var(--border-color); } .holdings-table td { padding: 1rem; border-top: 1px solid var(--border-color); color: var(--text-secondary); } .holdings-table tbody tr { transition: all var(--transition-fast); cursor: pointer; } .holdings-table tbody tr:hover { background: rgba(0, 212, 255, 0.05); transform: scale(1.01); } .holdings-table .symbol { color: var(--accent-blue); font-weight: 700; font-family: var(--font-mono); } /* Trade Timeline */ .trade-history-section { padding: 0 2rem; } .trade-history-section h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-primary); } .trade-timeline { display: flex; flex-direction: column; gap: 1rem; } .trade-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; display: flex; align-items: center; gap: 1.5rem; transition: all var(--transition-fast); } .trade-item:hover { border-color: var(--accent-blue); transform: translateX(5px); } .trade-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; } .trade-icon.buy { background: rgba(72, 187, 120, 0.2); color: var(--success); } .trade-icon.sell { background: rgba(245, 101, 101, 0.2); color: var(--danger); } .trade-details { flex: 1; } .trade-action { font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; } .trade-meta { color: var(--text-muted); font-size: 0.9rem; } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 14, 39, 0.95); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(5px); } .loading-overlay.hidden { display: none; } /* Utility Classes */ .hidden { display: none !important; } .positive { color: var(--success) !important; } .negative { color: var(--danger) !important; } /* Scroll to Top Button */ .scroll-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); color: var(--primary-bg); border: none; border-radius: 50%; font-size: 1.5rem; font-weight: bold; cursor: pointer; opacity: 0; visibility: hidden; transition: all var(--transition-normal); z-index: 1000; box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4); } .scroll-to-top.visible { opacity: 1; visibility: visible; } .scroll-to-top:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6); } .scroll-to-top:active { transform: translateY(-2px); } @media (max-width: 768px) { .scroll-to-top { width: 45px; height: 45px; bottom: 1.5rem; right: 1.5rem; font-size: 1.3rem; } } .spinner { width: 60px; height: 60px; border: 4px solid var(--border-color); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading-overlay p { margin-top: 1.5rem; color: var(--text-secondary); font-size: 1.1rem; } /* Footer */ .footer { background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 2rem; text-align: center; margin-top: 4rem; position: relative; overflow: hidden; } .footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-cyan), transparent ); } .footer p { color: var(--text-muted); font-size: 0.9rem; } /* Responsive Design */ @media (max-width: 1024px) and (min-width: 769px) { .github-text { font-size: 0.85rem; } .nav-menu { gap: 1rem; } } @media (max-width: 768px) { .container { padding: 0; } .container-padded { padding: 1rem; } .nav-container { padding: 0 1rem; } .nav-menu { gap: 0.5rem; } .nav-link { padding: 0.4rem 0.8rem; font-size: 0.9rem; } .github-link { padding: 0.5rem 0.7rem; gap: 0.4rem; font-size: 0.85rem; min-width: unset; } .github-text { display: none; } .github-icon { width: 22px; height: 22px; } .container { height: calc(100vh - 60px); } .page-header { padding: 0.3rem 1rem 0.15rem; margin-bottom: 0.3rem; } .page-header h2 { font-size: 1.15rem; } .subtitle { font-size: 0.7rem; } .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.35rem; padding: 0 1rem; margin-bottom: 0.35rem; } .stat-card { padding: 0.55rem 0.75rem; } .stat-label { font-size: 0.6rem; } .stat-value { font-size: 1.05rem; } .chart-card { padding: 0.6rem 1rem; } .chart-card.hero { flex: 1; min-height: 0; } .chart-container { flex: 1; min-height: 0; } .chart-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .chart-header h3 { font-size: 1.1rem; } .chart-controls { width: 100%; justify-content: space-between; } .btn-secondary { font-size: 0.85rem; padding: 0.4rem 0.8rem; } .legend-section { padding: 0 1rem; } .agent-legend { grid-template-columns: 1fr; } .legend-item { animation: fadeIn 0.4s ease-out backwards; } .portfolio-grid { grid-template-columns: 1fr; padding: 0 1rem; } .agent-selector-section { flex-direction: column; align-items: flex-start; padding: 0 1rem; } .agent-select { width: 100%; min-width: unset; } .holdings-table { font-size: 0.8rem; } .holdings-table th, .holdings-table td { padding: 0.6rem 0.4rem; } .trade-item { padding: 1rem; gap: 1rem; } .trade-icon { width: 40px; height: 40px; font-size: 1.2rem; } } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } } @keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } } .stat-card, .chart-card, .portfolio-card, .legend-item { animation: fadeIn 0.6s ease-out backwards; } .stat-card:nth-child(1) { animation-delay: 0.1s; } .stat-card:nth-child(2) { animation-delay: 0.2s; } .stat-card:nth-child(3) { animation-delay: 0.3s; } .stat-card:nth-child(4) { animation-delay: 0.4s; } .legend-item:nth-child(odd) { animation: slideInLeft 0.5s ease-out backwards; } .legend-item:nth-child(even) { animation: slideInRight 0.5s ease-out backwards; } .legend-item:nth-child(1) { animation-delay: 0.1s; } .legend-item:nth-child(2) { animation-delay: 0.15s; } .legend-item:nth-child(3) { animation-delay: 0.2s; } .legend-item:nth-child(4) { animation-delay: 0.25s; } .legend-item:nth-child(5) { animation-delay: 0.3s; } .legend-item:nth-child(6) { animation-delay: 0.35s; }