File size: 2,108 Bytes
09edf62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/* ============================================================
   Linear Regression Playground - Specific Styles
   ============================================================ */

/* Main chart takes full width */
#mainChart {
    height: 100% !important;
    width: 100% !important;
}

/* Custom checkbox styling */
.control-group label.control-label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.control-group label.control-label:has(input[type="checkbox"]):hover {
    background-color: var(--color-surface-alt);
}

.checkbox-input {
    margin-right: var(--space-sm);
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

/* Stats panel styling */
.metrics-display {
    padding: var(--space-md);
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.metric-value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Dragging state for points */
.canvas-container {
    position: relative;
}

/* Button variations */
.button-start {
    width: 100%;
    margin: var(--space-xs) 0;
}

/* Hint box styling */
.chart-hint {
    background: var(--color-accent-light);
    border-left: 3px solid var(--color-accent);
    padding: var(--space-sm) var(--space-md);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.chart-hint strong {
    color: var(--color-text-primary);
}

/* Canvas cursor states */
#mainChart {
    cursor: crosshair;
}

#mainChart.dragging {
    cursor: grabbing;
}

#mainChart.hover-point {
    cursor: grab;
}