/* styles.css */

/* Chart container styles */
.chart-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Chart axes styles */
.x-axis path,
.y-axis path,
.x-axis line,
.y-axis line {
    stroke: #ccc;
    stroke-width: 1px;
    shape-rendering: crispEdges;
}

.x-axis text,
.y-axis text {
    fill: #666;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Scatter plot styles */
.dots circle {
    transition: all 0.2s ease;
}

.dots circle:hover {
    fill: #1a73e8;
    r: 6;
}

/* Line chart styles */
.line {
    transition: all 0.2s ease;
}

.line:hover {
    stroke-width: 3px;
}

.threshold-line {
    pointer-events: none;
}

/* Slider container styles */
.slider-container {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 10px;
    position: relative;
}

/* Slider track styles */
.track {
    cursor: pointer;
    stroke-linecap: round;
    transition: stroke 0.2s ease;
}

.track:hover {
    stroke: #ddd;
}

.track-active {
    cursor: pointer;
    stroke-linecap: round;
    transition: all 0.2s ease;
}

/* Slider handle styles */
.handle {
    cursor: grab;
    transition: all 0.2s ease;
}

.handle:hover {
    r: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.handle.active {
    cursor: grabbing;
    r: 10;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3)) !important;
}

/* Slider label styles */
.label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
        padding: 15px;
        margin: 15px 0;
    }

    .slider-container {
        padding: 8px;
    }

    .x-axis text,
    .y-axis text,
    .label {
        font-size: 11px;
    }

    .handle {
        r: 6;
    }

    .handle:hover,
    .handle.active {
        r: 8;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .chart-container {
        background: #1e1e1e;
        border-color: #333;
    }

    .x-axis path,
    .y-axis path,
    .x-axis line,
    .y-axis line {
        stroke: #444;
    }

    .x-axis text,
    .y-axis text,
    .label {
        fill: #aaa;
    }

    .track {
        stroke: #444;
    }

    .track:hover {
        stroke: #555;
    }

    .threshold-line {
        stroke: #ff6b6b;
    }
}