﻿/* Chart Dashboard Styles */
.chart-dashboard {
    padding: 20px;
    background: #0d1117;
    min-height: 100vh;
    color: #c9d1d9;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #30363d;
}

    .dashboard-header h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 600;
    }

.dashboard-controls {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #238636;
    color: white;
}

    .btn-primary:hover {
        background: #2ea043;
    }

.btn-secondary {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
}

    .btn-secondary:hover {
        background: #30363d;
    }

.btn-warning {
    background: #f85149;
    color: white;
}

.btn-danger {
    background: #da3633;
    color: white;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Chart Configuration Panel */
.chart-config-panel {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

    .chart-config-panel h3 {
        margin-top: 0;
        color: #f0f6fc;
    }

.config-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 6px;
        font-size: 14px;
        color: #8b949e;
    }

    .form-group input,
    .form-group select {
        padding: 8px;
        background: #0d1117;
        border: 1px solid #30363d;
        border-radius: 6px;
        color: #c9d1d9;
        font-size: 14px;
    }

.provider-config {
    grid-column: span 2;
    padding: 15px;
    background: #0d1117;
    border-radius: 6px;
    margin-top: 10px;
}

    .provider-config h4 {
        margin-top: 0;
        color: #58a6ff;
    }

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    gap: 30px;
}

.chart-wrapper {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0d1117;
    border-bottom: 1px solid #30363d;
}

    .chart-header h4 {
        margin: 0;
        color: #f0f6fc;
    }

.chart-actions {
    display: flex;
    gap: 10px;
}

/* Arbitrage Chart Component */
.arbitrage-chart-container {
    position: relative;
}

/*.chart-view {
    width: 100%;
    height: 400px;
    background: #1e222d;
}*/

.chart-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #0d1117;
    border-top: 1px solid #30363d;
}

    .chart-stats .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

.stat.bid {
    color: #26a69a;
}

.stat.ask {
    color: #ef5350;
}

.stat.spread {
    color: #2962ff;
}

.stat.points {
    color: #8b949e;
}

/* Loading and Error States */
.chart-loading,
.chart-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: #8b949e;
}

.chart-error {
    color: #f85149;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .config-form {
        grid-template-columns: 1fr;
    }

    .provider-config {
        grid-column: span 1;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
