Initial commit: Predictalytics solution
Clean Architecture .NET 8 solution (Domain/Application/Infrastructure/Api/Worker/WinFormsHost) for analyzing Polymarket traders for copytrading/strategy-replication candidates. Includes EF Core InitialBaseline migration and DB secrets removed from source/config in preparation for version control.
This commit is contained in:
@@ -0,0 +1,453 @@
|
||||
/* ==========================================================================
|
||||
Predictalytics — Premium SaaS Dashboard Design System
|
||||
Modern clean dashboard inspired by Dribbble reference design.
|
||||
========================================================================== */
|
||||
|
||||
/* ─── CSS Custom Properties (Design Tokens) ─── */
|
||||
:root {
|
||||
/* Light Theme */
|
||||
--bg: #F4F5F7;
|
||||
--bg-sidebar: #FFFFFF;
|
||||
--bg-card: #FFFFFF;
|
||||
--bg-input: #F0F1F3;
|
||||
--text-primary: #111111;
|
||||
--text-secondary: #666666;
|
||||
--text-muted: #999999;
|
||||
--border: #E8E9EC;
|
||||
--accent: #FF2D55;
|
||||
--accent-glow: rgba(255, 45, 85, 0.15);
|
||||
--success: #34C759;
|
||||
--danger: #FF3B30;
|
||||
--warning: #FF9500;
|
||||
--info: #5AC8FA;
|
||||
--shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
|
||||
--shadow-md: 0 4px 12px rgba(0,0,0,0.06);
|
||||
--shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
|
||||
--radius: 12px;
|
||||
--radius-sm: 8px;
|
||||
--transition: 0.2s ease;
|
||||
--font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
--sidebar-w: 240px;
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
--bg: #0B0C0F;
|
||||
--bg-sidebar: #111215;
|
||||
--bg-card: #16181D;
|
||||
--bg-input: #1E2028;
|
||||
--text-primary: #EEEEEE;
|
||||
--text-secondary: #AAAAAA;
|
||||
--text-muted: #666666;
|
||||
--border: #2A2C33;
|
||||
--shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
|
||||
--shadow-md: 0 4px 12px rgba(0,0,0,0.3);
|
||||
--shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
/* ─── Reset & Base ─── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
|
||||
|
||||
body {
|
||||
font-family: var(--font);
|
||||
background: var(--bg);
|
||||
color: var(--text-primary);
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
transition: background var(--transition), color var(--transition);
|
||||
}
|
||||
|
||||
/* ─── Sidebar ─── */
|
||||
.sidebar {
|
||||
width: var(--sidebar-w);
|
||||
min-height: 100vh;
|
||||
background: var(--bg-sidebar);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: fixed;
|
||||
top: 0; left: 0; bottom: 0;
|
||||
z-index: 100;
|
||||
transition: background var(--transition), border-color var(--transition);
|
||||
}
|
||||
|
||||
.sidebar-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 24px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.logo-icon {
|
||||
width: 36px; height: 36px;
|
||||
background: linear-gradient(135deg, var(--accent), #FF6B8A);
|
||||
border-radius: 10px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: #fff;
|
||||
font-weight: 800;
|
||||
font-size: 18px;
|
||||
box-shadow: 0 2px 12px var(--accent-glow);
|
||||
}
|
||||
|
||||
.logo-text { font-weight: 700; font-size: 16px; letter-spacing: -0.3px; }
|
||||
|
||||
.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
font-size: 13.5px;
|
||||
transition: all var(--transition);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-item:hover { background: var(--bg-input); color: var(--text-primary); }
|
||||
|
||||
.nav-item.active {
|
||||
background: var(--accent-glow);
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav-item.active::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -10px;
|
||||
top: 50%; transform: translateY(-50%);
|
||||
width: 3px; height: 20px;
|
||||
background: var(--accent);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.badge {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
padding: 2px 7px;
|
||||
border-radius: 10px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.sidebar-footer { padding: 12px 10px; border-top: 1px solid var(--border); }
|
||||
|
||||
/* ─── Main Content ─── */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
margin-left: var(--sidebar-w);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* ─── Topbar ─── */
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 16px 32px;
|
||||
background: var(--bg-sidebar);
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
backdrop-filter: blur(12px);
|
||||
transition: background var(--transition), border-color var(--transition);
|
||||
}
|
||||
|
||||
.topbar-left { flex: 1; max-width: 600px; display: flex; align-items: center; gap: 12px; }
|
||||
|
||||
.platform-select {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-primary);
|
||||
padding: 6px 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 13px;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.platform-select:focus { border-color: var(--accent); }
|
||||
|
||||
.search-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 8px 14px;
|
||||
transition: border-color var(--transition);
|
||||
flex: 1;
|
||||
min-width: 400px;
|
||||
}
|
||||
|
||||
.search-box:focus-within { border-color: var(--accent); }
|
||||
|
||||
.search-box input {
|
||||
border: none;
|
||||
background: none;
|
||||
outline: none;
|
||||
color: var(--text-primary);
|
||||
font-family: var(--font);
|
||||
font-size: 13px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-box input::placeholder { color: var(--text-muted); }
|
||||
|
||||
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
|
||||
|
||||
.topbar-right { display: flex; align-items: center; gap: 16px; }
|
||||
|
||||
.timeframe-toggle {
|
||||
display: flex;
|
||||
background: var(--bg-input);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.tf-btn {
|
||||
padding: 6px 14px;
|
||||
border: none;
|
||||
background: none;
|
||||
color: var(--text-secondary);
|
||||
font-family: var(--font);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
|
||||
.tf-btn.active {
|
||||
background: var(--bg-card);
|
||||
color: var(--text-primary);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.tf-btn:hover:not(.active) { color: var(--text-primary); }
|
||||
|
||||
/* Theme Toggle */
|
||||
.theme-toggle {
|
||||
width: 40px; height: 40px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border);
|
||||
transition: all var(--transition);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
|
||||
|
||||
[data-theme="dark"] .icon-sun { display: block; }
|
||||
[data-theme="dark"] .icon-moon { display: none; }
|
||||
[data-theme="light"] .icon-sun { display: none; }
|
||||
[data-theme="light"] .icon-moon { display: block; }
|
||||
.icon-sun { display: none; }
|
||||
|
||||
/* ─── Page Content ─── */
|
||||
.page-content { padding: 28px 32px; }
|
||||
|
||||
.page { display: none; }
|
||||
.page.active { display: block; animation: fadeIn 0.3s ease; }
|
||||
|
||||
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
|
||||
|
||||
.page-title {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 24px;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
/* ─── Metric Cards ─── */
|
||||
.metrics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.metric-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px 24px;
|
||||
transition: all var(--transition);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
|
||||
|
||||
.metric-card.accent {
|
||||
background: linear-gradient(135deg, var(--accent), #FF6B8A);
|
||||
border: none;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.metric-card.accent .metric-label { color: rgba(255,255,255,0.8); }
|
||||
.metric-card.accent .metric-delta { color: rgba(255,255,255,0.9); }
|
||||
|
||||
.metric-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
|
||||
.metric-value { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
|
||||
.metric-delta { font-size: 12px; font-weight: 600; }
|
||||
.metric-delta.positive { color: var(--success); }
|
||||
.metric-delta.negative { color: var(--danger); }
|
||||
|
||||
/* ─── Cards ─── */
|
||||
.card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
margin-bottom: 20px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: all var(--transition);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
padding: 18px 24px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-header h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
|
||||
|
||||
/* ─── Charts ─── */
|
||||
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
|
||||
.chart-card { margin-bottom: 0; }
|
||||
.chart-container { padding: 20px 24px; height: 260px; }
|
||||
|
||||
/* ─── Data Tables ─── */
|
||||
.table-wrap { overflow-x: auto; }
|
||||
|
||||
.data-table { width: 100%; border-collapse: collapse; }
|
||||
|
||||
.data-table th {
|
||||
text-align: left;
|
||||
padding: 12px 16px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
color: var(--text-muted);
|
||||
border-bottom: 1px solid var(--border);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table td {
|
||||
padding: 12px 16px;
|
||||
font-size: 13px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table tbody tr { transition: background var(--transition); }
|
||||
.data-table tbody tr:hover { background: var(--bg-input); }
|
||||
.data-table tbody tr:last-child td { border-bottom: none; }
|
||||
|
||||
/* Badges in tables */
|
||||
.tier-badge {
|
||||
display: inline-block;
|
||||
padding: 3px 10px;
|
||||
border-radius: 20px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.tier-diamond { background: rgba(99,102,241,0.15); color: #818CF8; }
|
||||
.tier-platinum { background: rgba(168,85,247,0.15); color: #C084FC; }
|
||||
.tier-gold { background: rgba(245,158,11,0.15); color: #F59E0B; }
|
||||
.tier-silver { background: rgba(156,163,175,0.15); color: #9CA3AF; }
|
||||
.tier-bronze { background: rgba(180,83,9,0.15); color: #D97706; }
|
||||
.tier-unknown { background: var(--bg-input); color: var(--text-muted); }
|
||||
|
||||
.side-buy { color: var(--success); font-weight: 700; }
|
||||
.side-sell { color: var(--danger); font-weight: 700; }
|
||||
|
||||
.pnl-positive { color: var(--success); font-weight: 600; }
|
||||
.pnl-negative { color: var(--danger); font-weight: 600; }
|
||||
|
||||
.btn-sm {
|
||||
padding: 5px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
background: var(--bg-input);
|
||||
color: var(--text-secondary);
|
||||
font-family: var(--font);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
|
||||
|
||||
/* ─── Alerts ─── */
|
||||
.alert-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 14px;
|
||||
padding: 16px 24px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
transition: background var(--transition);
|
||||
}
|
||||
.alert-item:hover { background: var(--bg-input); }
|
||||
.alert-item:last-child { border-bottom: none; }
|
||||
.alert-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
|
||||
.alert-severity-4 { background: rgba(255,59,48,0.15); }
|
||||
.alert-severity-3 { background: rgba(255,149,0,0.15); }
|
||||
.alert-severity-2 { background: rgba(90,200,250,0.15); }
|
||||
.alert-severity-1 { background: var(--bg-input); }
|
||||
.alert-content { flex: 1; }
|
||||
.alert-title { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
|
||||
.alert-message { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
|
||||
.alert-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }
|
||||
.alert-unread .alert-title::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
|
||||
|
||||
/* ─── Empty State ─── */
|
||||
.empty-state {
|
||||
padding: 60px 24px;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.empty-state p { font-size: 14px; margin-top: 8px; }
|
||||
|
||||
/* ─── Responsive ─── */
|
||||
@media (max-width: 1200px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } .charts-row { grid-template-columns: 1fr; } }
|
||||
@media (max-width: 768px) { .sidebar { display: none; } .main-content { margin-left: 0; } .metrics-grid { grid-template-columns: 1fr; } }
|
||||
|
||||
/* ─── Detail Views ─── */
|
||||
.detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
|
||||
.btn-back { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 14px; font-weight: 600; padding: 4px 8px; border-radius: 4px; transition: var(--transition); }
|
||||
.btn-back:hover { background: var(--bg-input); color: var(--text-primary); }
|
||||
|
||||
.detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
|
||||
.detail-sidebar { padding: 24px; }
|
||||
.stat-group { margin-bottom: 16px; }
|
||||
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; margin-bottom: 4px; }
|
||||
.stat-value { font-size: 15px; font-weight: 600; color: var(--text-primary); }
|
||||
.stat-value.small { font-size: 12px; font-family: 'Cascadia Code', monospace; word-break: break-all; opacity: 0.8; }
|
||||
|
||||
.outcome-row { margin-bottom: 12px; padding: 12px; background: var(--bg-input); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
|
||||
.outcome-row span { font-size: 13px; font-weight: 600; }
|
||||
.outcome-row strong { font-size: 15px; color: var(--accent); }
|
||||
|
||||
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 4px; }
|
||||
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s ease; }
|
||||
|
||||
.market-img-container img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
|
||||
.outcomes-list { padding: 16px 24px; }
|
||||
Reference in New Issue
Block a user