File size: 2,532 Bytes
e1cc3bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#graph {
  width: 100%;
  height: 100vh;
}

#popup {
  display: none;
  position: fixed;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 200px;
  max-width: 400px;
}

.popup-title {
  font-weight: 600;
  margin-bottom: 12px;
  word-wrap: break-word;
  color: var(--text-color);
}

.popup-error {
  display: none;
  color: var(--node-error);
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.popup-buttons {
  display: flex;
  gap: 8px;
}

.popup-buttons button {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.popup-buttons button:hover {
  opacity: 0.9;
}

#open-btn {
  background-color: var(--node-default);
  color: white;
}

#expand-btn {
  background-color: var(--node-expanded);
  color: white;
}

/* Disabled state for buttons */
.popup-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Controls container */
#controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  z-index: 100;
}

/* Reset button */
#reset-graph {
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.15s;
}

#reset-graph:hover {
  background: var(--border-color);
}

#reset-graph:active {
  background: var(--border-color);
  opacity: 0.8;
}

/* Zoom controls */
#zoom-controls {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#zoom-controls button {
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

#zoom-controls button:hover {
  background: var(--border-color);
}

#zoom-controls button:active {
  background: var(--border-color);
  opacity: 0.8;
}

#zoom-in {
  border-radius: 4px 4px 0 0;
  border-bottom: none;
}

#zoom-out {
  border-radius: 0 0 4px 4px;
}