mirror of
https://github.com/FxPouya/FxMathQuantWebApp.git
synced 2026-07-27 18:27:44 +00:00
817 lines
14 KiB
CSS
817 lines
14 KiB
CSS
/* FxMathQuant Web - Modern Dark Theme */
|
|
|
|
:root {
|
|
--bg-primary: #0a0e27;
|
|
--bg-secondary: #151932;
|
|
--bg-card: #1a1f3a;
|
|
--bg-hover: #252b4a;
|
|
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #a0aec0;
|
|
--text-muted: #718096;
|
|
|
|
--accent-primary: #667eea;
|
|
--accent-secondary: #764ba2;
|
|
--accent-success: #48bb78;
|
|
--accent-danger: #f56565;
|
|
--accent-warning: #ed8936;
|
|
|
|
--border-color: #2d3748;
|
|
--shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
|
--shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
|
|
|
|
--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-primary);
|
|
background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f3a 100%);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
background: rgba(26, 31, 58, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding: 20px 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo h1 {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.logo .subtitle {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.btn-icon {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: var(--bg-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
padding: 40px 0;
|
|
min-height: calc(100vh - 200px);
|
|
}
|
|
|
|
.section {
|
|
display: none;
|
|
animation: fadeIn 0.5s ease;
|
|
}
|
|
|
|
.section.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.section-header {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.section-header p {
|
|
color: var(--text-secondary);
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Upload Zone */
|
|
.upload-zone {
|
|
background: var(--bg-card);
|
|
border: 2px dashed var(--border-color);
|
|
border-radius: 16px;
|
|
padding: 60px 40px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.upload-zone:hover {
|
|
border-color: var(--accent-primary);
|
|
background: var(--bg-hover);
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.upload-zone.dragover {
|
|
border-color: var(--accent-success);
|
|
background: rgba(72, 187, 120, 0.1);
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 64px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.upload-zone h3 {
|
|
font-size: 24px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.upload-zone p {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* Data Preview */
|
|
.data-preview {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.data-preview.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.data-info {
|
|
display: flex;
|
|
gap: 30px;
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.data-info span {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.table-container {
|
|
overflow-x: auto;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
thead {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
th {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Configuration */
|
|
.config-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.config-card {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.config-card h3 {
|
|
font-size: 20px;
|
|
margin-bottom: 20px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.form-group small {
|
|
display: block;
|
|
margin-top: 5px;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.range-inputs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.range-inputs input {
|
|
flex: 1;
|
|
}
|
|
|
|
.range-inputs span {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary,
|
|
.btn-secondary,
|
|
.btn-success,
|
|
.btn-danger {
|
|
padding: 12px 30px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: inline-block;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--accent-success);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--accent-danger);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover,
|
|
.btn-success:hover,
|
|
.btn-danger:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
border-radius: 6px;
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-small:hover {
|
|
background: var(--accent-secondary);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: center;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
/* Progress */
|
|
.progress-container {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 40px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.progress-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-secondary);
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.progress-bar-container {
|
|
background: var(--bg-secondary);
|
|
height: 12px;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
|
|
width: 0%;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-log {
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 13px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.progress-log::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.progress-log::-webkit-scrollbar-track {
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.progress-log::-webkit-scrollbar-thumb {
|
|
background: var(--accent-primary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Strategy Cards */
|
|
.strategies-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.strategy-card {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 25px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--border-color);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.strategy-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow-lg);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.strategy-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.strategy-name {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.strategy-metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.metric {
|
|
background: var(--bg-secondary);
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.metric-label {
|
|
display: block;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.metric-value {
|
|
display: block;
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.metric-value.positive {
|
|
color: var(--accent-success);
|
|
}
|
|
|
|
.metric-value.negative {
|
|
color: var(--accent-danger);
|
|
}
|
|
|
|
.strategy-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.strategy-actions button {
|
|
flex: 1;
|
|
padding: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
width: 90%;
|
|
max-width: 900px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-lg);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 25px 30px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-header h2 {
|
|
font-size: 24px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 32px;
|
|
cursor: pointer;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 30px;
|
|
}
|
|
|
|
.metrics-grid-detailed {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 15px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.metric-detailed {
|
|
background: var(--bg-secondary);
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.metric-detailed .metric-label {
|
|
display: block;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.metric-detailed .metric-value {
|
|
display: block;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chart-section {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.chart-section h3 {
|
|
font-size: 18px;
|
|
margin-bottom: 15px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.chart-section canvas {
|
|
height: 300px !important;
|
|
}
|
|
|
|
.rules-section h3 {
|
|
font-size: 18px;
|
|
margin-bottom: 15px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.rules-list {
|
|
background: var(--bg-secondary);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.rule-item {
|
|
padding: 8px 0;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.parameters-box {
|
|
background: var(--bg-secondary);
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Form Select */
|
|
.form-select {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.form-select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border-color);
|
|
padding: 30px 0;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.config-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.strategies-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.progress-stats {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 24px;
|
|
}
|
|
}
|
|
|
|
/* Comparison View */
|
|
.comparison-container {
|
|
display: flex;
|
|
gap: 20px;
|
|
overflow-x: auto;
|
|
padding: 20px 0;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.comparison-item {
|
|
flex: 0 0 400px;
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 25px;
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.comparison-item h3 {
|
|
margin-bottom: 20px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
/* Checkbox Style */
|
|
.strategy-select {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 15px;
|
|
width: 24px;
|
|
height: 24px;
|
|
cursor: pointer;
|
|
accent-color: var(--accent-success);
|
|
}
|
|
|
|
.strategy-card {
|
|
position: relative;
|
|
}
|
|
|
|
/* Trades Table in Modal */
|
|
.trades-section {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.trades-table-container {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.trades-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.trades-table th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--bg-card);
|
|
z-index: 10;
|
|
}
|
|
|
|
.trades-table td,
|
|
.trades-table th {
|
|
padding: 10px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-footer-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Badge for trade types */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes pulse {
|
|
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.loading {
|
|
animation: pulse 2s ease-in-out infinite;
|
|
} |