/**
 * Charts Components — Elemental Runes v8
 * Styling for Chart.js charts and stat displays
 */

/* Chart containers */
.chart-container {
    background: var(--panel);
    border-radius: 2px;
    padding: 15px;
    margin: 10px 0;
}

canvas {
    max-width: 100%;
    height: auto;
}

/* Stat selector for war_damage charts */
.stat-selector {
    background: var(--panel);
    border-radius: 2px;
    color: var(--text-bright);
    font-family: 'Onest', sans-serif;
    border: 1px solid var(--edge);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 620px;
}

.stat-selector-header {
    position: sticky;
    top: 0;
    background: var(--panel);
    padding: 10px;
    border-bottom: 1px solid var(--edge);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-deselect-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: var(--font-size-xs);
    background: var(--stone);
    border: 1px solid var(--edge);
    color: var(--text-mid);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-deselect-btn:hover {
    background: var(--panel-light);
    color: var(--text-bright);
    border-color: var(--edge-light);
}

.stat-deselect-btn i {
    font-size: 12px;
}

.stat-selector-list {
    padding: 12px 15px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--edge) var(--void);
}

.stat-selector-list label {
    display: flex;
    align-items: center;
    padding: 3px 0;
    margin: 0;
    color: var(--text-mid);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.3;
    font-size: var(--font-size-sm);
}

.stat-selector-list label:hover {
    color: var(--text-bright);
}

.stat-selector-list input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

/* WebKit scrollbar styling for stat selector list */
.stat-selector-list::-webkit-scrollbar {
    width: 8px;
}

.stat-selector-list::-webkit-scrollbar-track {
    background: var(--void);
    border-radius: 2px;
}

.stat-selector-list::-webkit-scrollbar-thumb {
    background-color: var(--edge);
    border-radius: 2px;
    border: 2px solid var(--void);
}

.stat-selector-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--edge-light);
}

/* Chart backgrounds */
#pointsLineChart,
#war_player {
    background: var(--panel);
    border-radius: 2px;
    padding: 10px;
}
