@umituz/web-virtual 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,415 @@
1
+ import * as THREE from 'three'
2
+ import type { WorldPreset, WorldEntity, WorldZone } from '../core/types'
3
+ import { MaterialPalette } from '../engine/materials'
4
+ import { buildOfficeArchitecture } from '../entities/architecture/OfficeArchitectureBuilder'
5
+ import { createModernWorkstation, createExecutiveDesk, createConferenceTable } from '../entities/furniture/DeskBuilder'
6
+ import { createFicusPlant } from '../entities/props/PlantBuilder'
7
+ import { createStylizedAvatar } from '../entities/people/AvatarBuilder'
8
+
9
+ export const DEFAULT_OFFICE_ZONES: WorldZone[] = [
10
+ {
11
+ id: 'executive',
12
+ name: 'Yönetim & Strateji Ofisi',
13
+ color: '#8b5cf6',
14
+ description: 'Şirket liderliği, genel müdür ve stratejik danışmanlık çalışma alanı.',
15
+ cameraFocus: [11, 1.2, -5.5],
16
+ },
17
+ {
18
+ id: 'meeting',
19
+ name: 'Konferans & Müşteri Salonu',
20
+ color: '#06b6d4',
21
+ description: 'Müşteri görüşmeleri, büyük strateji toplantıları ve lansman odası.',
22
+ cameraFocus: [11, 1.2, 4.5],
23
+ },
24
+ {
25
+ id: 'creative',
26
+ name: 'Kreatif & İçerik Stüdyosu',
27
+ color: '#ec4899',
28
+ description: 'Görsel tasarım, video prodüksiyon ve yaratıcı metin geliştirme alanı.',
29
+ cameraFocus: [-6, 1.0, -6.5],
30
+ },
31
+ {
32
+ id: 'tech',
33
+ name: 'Yazılım & Teknoloji Merkezi',
34
+ color: '#3b82f6',
35
+ description: 'Sistem geliştirme, veri analitiği ve platform mühendisliği istasyonu.',
36
+ cameraFocus: [-6, 1.0, -1.8],
37
+ },
38
+ {
39
+ id: 'growth',
40
+ name: 'Büyüme & Dijital Pazarlama',
41
+ color: '#10b981',
42
+ description: 'Performans reklamları, SEO, e-posta otomasyonu ve büyüme operasyonları.',
43
+ cameraFocus: [-6, 1.0, 3.2],
44
+ },
45
+ {
46
+ id: 'operations',
47
+ name: 'Operasyon & Finans Masası',
48
+ color: '#f59e0b',
49
+ description: 'Bütçe, fatura, kurumsal arşiv ve operasyonel kalite kontrol merkezi.',
50
+ cameraFocus: [-6, 1.0, 7.8],
51
+ },
52
+ ]
53
+
54
+ // 17 standard desk positions matching the reference architectural layout
55
+ export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
56
+ // 1. Genel Müdür / Executive Suite
57
+ {
58
+ id: 'slot-1',
59
+ type: 'person',
60
+ name: 'Genel Müdür (CEO)',
61
+ role: 'Şirket Direktörü & Orkestratör',
62
+ department: 'Yönetim',
63
+ zoneId: 'executive',
64
+ status: 'idle',
65
+ pinNumber: 1,
66
+ position: [11, 0, -5.5],
67
+ rotation: [0, 0, 0],
68
+ avatarColor: '#1e293b',
69
+ avatarHair: '#0f172a',
70
+ },
71
+ // Row 1 (Creative & Ads)
72
+ {
73
+ id: 'slot-2',
74
+ type: 'person',
75
+ name: 'Performans Pazarlama Uzmanı',
76
+ role: 'Ads & Kampanya Optimizasyonu',
77
+ department: 'Pazarlama',
78
+ zoneId: 'growth',
79
+ status: 'idle',
80
+ pinNumber: 2,
81
+ position: [-13, 0, -6.8],
82
+ rotation: [0, 0, 0],
83
+ avatarColor: '#0284c7',
84
+ },
85
+ {
86
+ id: 'slot-3',
87
+ type: 'person',
88
+ name: 'Kreatif Direktör',
89
+ role: 'Görsel Kimlik & Tasarım',
90
+ department: 'Kreatif',
91
+ zoneId: 'creative',
92
+ status: 'idle',
93
+ pinNumber: 3,
94
+ position: [-9, 0, -6.8],
95
+ rotation: [0, 0, 0],
96
+ avatarColor: '#db2777',
97
+ },
98
+ {
99
+ id: 'slot-4',
100
+ type: 'person',
101
+ name: 'Reklam Yöneticisi',
102
+ role: 'Bütçe & Dönüşüm Stratejisi',
103
+ department: 'Pazarlama',
104
+ zoneId: 'growth',
105
+ status: 'idle',
106
+ pinNumber: 4,
107
+ position: [-5, 0, -6.8],
108
+ rotation: [0, 0, 0],
109
+ avatarColor: '#2563eb',
110
+ },
111
+ {
112
+ id: 'slot-5',
113
+ type: 'person',
114
+ name: 'E-Posta Pazarlama Uzmanı',
115
+ role: 'CRM & Bülten Akışları',
116
+ department: 'Pazarlama',
117
+ zoneId: 'growth',
118
+ status: 'idle',
119
+ pinNumber: 5,
120
+ position: [-1, 0, -6.8],
121
+ rotation: [0, 0, 0],
122
+ avatarColor: '#7c3aed',
123
+ },
124
+
125
+ // Row 2 (Content, Video, Management)
126
+ {
127
+ id: 'slot-6',
128
+ type: 'person',
129
+ name: 'Sosyal Medya Yöneticisi',
130
+ role: 'Topluluk & Gönderi Takvimi',
131
+ department: 'Kreatif',
132
+ zoneId: 'creative',
133
+ status: 'idle',
134
+ pinNumber: 6,
135
+ position: [-13, 0, -2.0],
136
+ rotation: [0, 0, 0],
137
+ avatarColor: '#ea580c',
138
+ },
139
+ {
140
+ id: 'slot-7',
141
+ type: 'person',
142
+ name: 'Ajans Operasyon Lideri',
143
+ role: 'Süreç & İş Akışı Takibi',
144
+ department: 'Operasyon',
145
+ zoneId: 'operations',
146
+ status: 'idle',
147
+ pinNumber: 7,
148
+ position: [-9, 0, -2.0],
149
+ rotation: [0, 0, 0],
150
+ avatarColor: '#059669',
151
+ },
152
+ {
153
+ id: 'slot-8',
154
+ type: 'person',
155
+ name: 'Video & Motion Producer',
156
+ role: 'Reels, Kurgu & Animasyon',
157
+ department: 'Kreatif',
158
+ zoneId: 'creative',
159
+ status: 'idle',
160
+ pinNumber: 8,
161
+ position: [-5, 0, -2.0],
162
+ rotation: [0, 0, 0],
163
+ avatarColor: '#dc2626',
164
+ },
165
+ {
166
+ id: 'slot-9',
167
+ type: 'person',
168
+ name: 'Dijital Ajans Yöneticisi',
169
+ role: 'Ekip Koordinasyonu',
170
+ department: 'Yönetim',
171
+ zoneId: 'executive',
172
+ status: 'idle',
173
+ pinNumber: 9,
174
+ position: [-1, 0, -2.0],
175
+ rotation: [0, 0, 0],
176
+ avatarColor: '#4f46e5',
177
+ },
178
+
179
+ // Row 3 (Copywriter, Research, SEO)
180
+ {
181
+ id: 'slot-10',
182
+ type: 'person',
183
+ name: 'Metin Yazarı & Copywriter',
184
+ role: 'Landing & Reklam Metinleri',
185
+ department: 'Kreatif',
186
+ zoneId: 'creative',
187
+ status: 'idle',
188
+ pinNumber: 10,
189
+ position: [-13, 0, 2.8],
190
+ rotation: [0, 0, 0],
191
+ avatarColor: '#0891b2',
192
+ },
193
+ {
194
+ id: 'slot-11',
195
+ type: 'person',
196
+ name: 'Pazar Araştırmacısı',
197
+ role: 'Rakip & Trend Analizi',
198
+ department: 'Pazarlama',
199
+ zoneId: 'growth',
200
+ status: 'idle',
201
+ pinNumber: 11,
202
+ position: [-9, 0, 2.8],
203
+ rotation: [0, 0, 0],
204
+ avatarColor: '#16a34a',
205
+ },
206
+ {
207
+ id: 'slot-12',
208
+ type: 'person',
209
+ name: 'Marka Stratejisti',
210
+ role: 'Konumlandırma & Mesajlaşma',
211
+ department: 'Yönetim',
212
+ zoneId: 'executive',
213
+ status: 'idle',
214
+ pinNumber: 12,
215
+ position: [-5, 0, 2.8],
216
+ rotation: [0, 0, 0],
217
+ avatarColor: '#9333ea',
218
+ },
219
+ {
220
+ id: 'slot-13',
221
+ type: 'person',
222
+ name: 'SEO & Organik Büyüme',
223
+ role: 'Arama Motoru & İçerik Dağıtımı',
224
+ department: 'Pazarlama',
225
+ zoneId: 'growth',
226
+ status: 'idle',
227
+ pinNumber: 13,
228
+ position: [-1, 0, 2.8],
229
+ rotation: [0, 0, 0],
230
+ avatarColor: '#0284c7',
231
+ },
232
+
233
+ // Front Hub (Art Direction & Design)
234
+ {
235
+ id: 'slot-14',
236
+ type: 'person',
237
+ name: 'Görsel Tasarımcı (UI/UX)',
238
+ role: 'Arayüz & Web Tasarımı',
239
+ department: 'Teknoloji',
240
+ zoneId: 'tech',
241
+ status: 'idle',
242
+ pinNumber: 14,
243
+ position: [-10, 0, 7.5],
244
+ rotation: [0, 0, 0],
245
+ avatarColor: '#e11d48',
246
+ },
247
+ {
248
+ id: 'slot-15',
249
+ type: 'person',
250
+ name: 'Görsel Yönetmen (Midjourney)',
251
+ role: 'Yapay Zeka Sanatçısı',
252
+ department: 'Kreatif',
253
+ zoneId: 'creative',
254
+ status: 'idle',
255
+ pinNumber: 15,
256
+ position: [-4, 0, 7.5],
257
+ rotation: [0, 0, 0],
258
+ avatarColor: '#475569',
259
+ },
260
+
261
+ // Meeting Room Desks / Client Relations
262
+ {
263
+ id: 'slot-16',
264
+ type: 'person',
265
+ name: 'Bilgi Kütüphanecisi & QA',
266
+ role: 'Süreç Doğrulama & Dokümantasyon',
267
+ department: 'Operasyon',
268
+ zoneId: 'operations',
269
+ status: 'idle',
270
+ pinNumber: 16,
271
+ position: [7.5, 0, 7.5],
272
+ rotation: [0, -Math.PI / 4, 0],
273
+ avatarColor: '#ca8a04',
274
+ },
275
+ {
276
+ id: 'slot-17',
277
+ type: 'person',
278
+ name: 'Müşteri İlişkileri Lideri',
279
+ role: 'Onboarding & İletişim',
280
+ department: 'Operasyon',
281
+ zoneId: 'meeting',
282
+ status: 'idle',
283
+ pinNumber: 17,
284
+ position: [13.5, 0, 7.5],
285
+ rotation: [0, Math.PI / 4, 0],
286
+ avatarColor: '#059669',
287
+ },
288
+ ]
289
+
290
+ export const officePreset: WorldPreset = {
291
+ id: 'preset-office-hq',
292
+ name: 'Modern Corporate Agency Headquarters',
293
+ type: 'office',
294
+ description: '17-desk architectural floorplan with executive suite, meeting conference room, and open workstations.',
295
+ dimensions: {
296
+ width: 36,
297
+ height: 6,
298
+ depth: 20,
299
+ },
300
+ camera: {
301
+ position: [26, 24, 26],
302
+ target: [0, 0, 0],
303
+ fov: 40,
304
+ near: 0.1,
305
+ far: 250,
306
+ enableDamping: true,
307
+ dampingFactor: 0.05,
308
+ minDistance: 8,
309
+ maxDistance: 65,
310
+ maxPolarAngle: Math.PI / 2 - 0.05,
311
+ },
312
+ lighting: {
313
+ ambientColor: '#ffffff',
314
+ ambientIntensity: 0.85,
315
+ sunColor: '#fff5ea',
316
+ sunIntensity: 1.1,
317
+ sunPosition: [20, 30, 15],
318
+ nightAmbientColor: '#1e293b',
319
+ nightAmbientIntensity: 0.35,
320
+ nightSunColor: '#60a5fa',
321
+ nightSunIntensity: 0.4,
322
+ shadows: true,
323
+ },
324
+ theme: {
325
+ name: 'corporate-glass',
326
+ floorColor: '#e2e8f0',
327
+ woodFloorColor: '#b48a58',
328
+ wallColor: '#cbd5e1',
329
+ wallFrameColor: '#0f172a',
330
+ glassColor: '#93c5fd',
331
+ glassOpacity: 0.28,
332
+ accentColor: '#3b82f6',
333
+ backgroundColor: '#0f172a',
334
+ nightBackgroundColor: '#020617',
335
+ },
336
+ zones: DEFAULT_OFFICE_ZONES,
337
+ defaultEntities: DEFAULT_OFFICE_ENTITIES,
338
+
339
+ buildScene: (scene: THREE.Scene, options) => {
340
+ const materials = new MaterialPalette()
341
+
342
+ // 1. Build Base Architecture (Floors, Glass perimeter, partitions, whiteboard)
343
+ const arch = buildOfficeArchitecture(materials, {
344
+ width: 36,
345
+ depth: 20,
346
+ theme: options.theme,
347
+ })
348
+ scene.add(arch)
349
+
350
+ // 2. Executive Suite Desk (Slot 1)
351
+ const execDesk = createExecutiveDesk(materials, { entityId: 'slot-1' })
352
+ execDesk.position.set(11, 0, -5.5)
353
+ scene.add(execDesk)
354
+
355
+ // 3. Conference Table in Meeting Room (Center of east parquet wing)
356
+ const confTable = createConferenceTable(materials)
357
+ confTable.position.set(11, 0, 2.5)
358
+ scene.add(confTable)
359
+
360
+ // 4. Meeting Room Desks (Slots 16 & 17)
361
+ const desk16 = createModernWorkstation(materials, { entityId: 'slot-16', dualMonitor: false })
362
+ desk16.position.set(7.5, 0, 7.5)
363
+ desk16.rotation.y = -Math.PI / 4
364
+ scene.add(desk16)
365
+
366
+ const desk17 = createModernWorkstation(materials, { entityId: 'slot-17', dualMonitor: true })
367
+ desk17.position.set(13.5, 0, 7.5)
368
+ desk17.rotation.y = Math.PI / 4
369
+ scene.add(desk17)
370
+
371
+ // 5. Open Office Desks (Slots 2-15)
372
+ const workstationSlots: Array<{ id: string; pos: [number, number, number]; dual: boolean }> = [
373
+ { id: 'slot-2', pos: [-13, 0, -6.8], dual: false },
374
+ { id: 'slot-3', pos: [-9, 0, -6.8], dual: true },
375
+ { id: 'slot-4', pos: [-5, 0, -6.8], dual: false },
376
+ { id: 'slot-5', pos: [-1, 0, -6.8], dual: true },
377
+ { id: 'slot-6', pos: [-13, 0, -2.0], dual: false },
378
+ { id: 'slot-7', pos: [-9, 0, -2.0], dual: true },
379
+ { id: 'slot-8', pos: [-5, 0, -2.0], dual: true },
380
+ { id: 'slot-9', pos: [-1, 0, -2.0], dual: false },
381
+ { id: 'slot-10', pos: [-13, 0, 2.8], dual: false },
382
+ { id: 'slot-11', pos: [-9, 0, 2.8], dual: false },
383
+ { id: 'slot-12', pos: [-5, 0, 2.8], dual: true },
384
+ { id: 'slot-13', pos: [-1, 0, 2.8], dual: true },
385
+ { id: 'slot-14', pos: [-10, 0, 7.5], dual: true },
386
+ { id: 'slot-15', pos: [-4, 0, 7.5], dual: true },
387
+ ]
388
+
389
+ for (const ws of workstationSlots) {
390
+ const desk = createModernWorkstation(materials, {
391
+ entityId: ws.id,
392
+ dualMonitor: ws.dual,
393
+ hasLaptop: true,
394
+ })
395
+ desk.position.set(ws.pos[0], ws.pos[1], ws.pos[2])
396
+ scene.add(desk)
397
+ }
398
+
399
+ // 6. Architectural Ficus Indoor Plants
400
+ const plantCoords: [number, number][] = [
401
+ [-17, -9],
402
+ [-17, 9],
403
+ [2, -9],
404
+ [2, 9],
405
+ [17, -9],
406
+ [17, 9],
407
+ ]
408
+
409
+ for (const coord of plantCoords) {
410
+ const plant = createFicusPlant(materials)
411
+ plant.position.set(coord[0], 0, coord[1])
412
+ scene.add(plant)
413
+ }
414
+ },
415
+ }
@@ -0,0 +1,111 @@
1
+ import * as THREE from 'three'
2
+ import type { WorldPreset, WorldEntity, WorldZone } from '../core/types'
3
+ import { MaterialPalette } from '../engine/materials'
4
+
5
+ export const DEFAULT_SCHOOL_ZONES: WorldZone[] = [
6
+ {
7
+ id: 'lecture_hall',
8
+ name: 'Ana Amfi & Derslik',
9
+ color: '#6366f1',
10
+ description: 'Etkileşimli akıllı tahta ve öğrenci sıraları alanı.',
11
+ cameraFocus: [-6, 1.2, 0],
12
+ },
13
+ {
14
+ id: 'stem_lab',
15
+ name: 'STEM & Robotik Laboratuvarı',
16
+ color: '#06b6d4',
17
+ description: 'Deney masaları ve prototipleme istasyonu.',
18
+ cameraFocus: [6, 1.0, -3],
19
+ },
20
+ {
21
+ id: 'library',
22
+ name: 'Kütüphane & Çalışma Salonu',
23
+ color: '#8b5cf6',
24
+ description: 'Sessiz araştırma ve kitaplık bölümü.',
25
+ cameraFocus: [6, 1.0, 4],
26
+ },
27
+ ]
28
+
29
+ export const DEFAULT_SCHOOL_ENTITIES: WorldEntity[] = [
30
+ {
31
+ id: 'teacher-1',
32
+ type: 'person',
33
+ name: 'Prof. Deniz — Bölüm Başkanı',
34
+ role: 'Ders Anlatımı & Mentorluk',
35
+ department: 'Akademik',
36
+ zoneId: 'lecture_hall',
37
+ status: 'working',
38
+ pinNumber: 1,
39
+ position: [-6, 0, -4],
40
+ avatarColor: '#4338ca',
41
+ },
42
+ {
43
+ id: 'student-1',
44
+ type: 'person',
45
+ name: 'Zeynep — Lisansüstü Araştırmacı',
46
+ role: 'STEM Deney Uygulayıcısı',
47
+ department: 'Araştırma',
48
+ zoneId: 'stem_lab',
49
+ status: 'idle',
50
+ pinNumber: 2,
51
+ position: [6, 0, -3],
52
+ avatarColor: '#0891b2',
53
+ },
54
+ ]
55
+
56
+ export const schoolPreset: WorldPreset = {
57
+ id: 'preset-school',
58
+ name: 'Modern University & Academy Campus',
59
+ type: 'school',
60
+ description: 'Educational environment featuring lecture halls, science labs, and collaborative study spaces.',
61
+ dimensions: {
62
+ width: 36,
63
+ height: 6,
64
+ depth: 20,
65
+ },
66
+ camera: {
67
+ position: [25, 23, 25],
68
+ target: [0, 0, 0],
69
+ fov: 40,
70
+ },
71
+ lighting: {
72
+ ambientColor: '#ffffff',
73
+ ambientIntensity: 0.85,
74
+ sunColor: '#fffbeb',
75
+ sunIntensity: 1.15,
76
+ shadows: true,
77
+ },
78
+ theme: {
79
+ name: 'academic-campus',
80
+ floorColor: '#e0e7ff',
81
+ woodFloorColor: '#d97706',
82
+ wallColor: '#f8fafc',
83
+ wallFrameColor: '#1e1b4b',
84
+ glassColor: '#c7d2fe',
85
+ accentColor: '#4f46e5',
86
+ backgroundColor: '#0f172a',
87
+ },
88
+ zones: DEFAULT_SCHOOL_ZONES,
89
+ defaultEntities: DEFAULT_SCHOOL_ENTITIES,
90
+
91
+ buildScene: (scene: THREE.Scene, options) => {
92
+ const materials = new MaterialPalette()
93
+
94
+ // Floor
95
+ const floor = new THREE.Mesh(
96
+ new THREE.PlaneGeometry(36, 20),
97
+ materials.getTileFloor(options.theme?.floorColor || '#e0e7ff'),
98
+ )
99
+ floor.rotation.x = -Math.PI / 2
100
+ floor.receiveShadow = true
101
+ scene.add(floor)
102
+
103
+ // Teacher podium / Smartboard
104
+ const board = new THREE.Mesh(
105
+ new THREE.BoxGeometry(4.5, 2.2, 0.08),
106
+ materials.getMonitorScreenMaterial(true, '#1e1b4b'),
107
+ )
108
+ board.position.set(-6, 2.0, -9)
109
+ scene.add(board)
110
+ },
111
+ }
@@ -0,0 +1,190 @@
1
+ /* @umituz/web-virtual Stylesheet */
2
+
3
+ .wv-container {
4
+ position: relative;
5
+ width: 100%;
6
+ height: 100%;
7
+ overflow: hidden;
8
+ background-color: #0f172a;
9
+ user-select: none;
10
+ }
11
+
12
+ .wv-canvas {
13
+ width: 100%;
14
+ height: 100%;
15
+ display: block;
16
+ }
17
+
18
+ /* Floating Pins Overlay */
19
+ .wv-pins-overlay {
20
+ position: absolute;
21
+ inset: 0;
22
+ pointer-events: none;
23
+ overflow: hidden;
24
+ }
25
+
26
+ .wv-pin-anchor {
27
+ position: absolute;
28
+ top: 0;
29
+ left: 0;
30
+ pointer-events: auto;
31
+ will-change: transform;
32
+ transform-origin: center bottom;
33
+ transform: translate3d(-9999px, -9999px, 0);
34
+ transition: opacity 0.15s ease-out;
35
+ }
36
+
37
+ .wv-pin-chip {
38
+ position: relative;
39
+ transform: translate(-50%, -100%);
40
+ display: inline-flex;
41
+ align-items: center;
42
+ gap: 6px;
43
+ padding: 4px 8px;
44
+ border-radius: 9999px;
45
+ background-color: rgba(255, 255, 255, 0.94);
46
+ backdrop-filter: blur(8px);
47
+ border: 1px solid rgba(203, 213, 225, 0.8);
48
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
49
+ font-family: inherit;
50
+ font-size: 11px;
51
+ font-weight: 600;
52
+ color: #0f172a;
53
+ cursor: pointer;
54
+ white-space: nowrap;
55
+ transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
56
+ }
57
+
58
+ .wv-pin-chip:hover {
59
+ transform: translate(-50%, -100%) scale(1.08);
60
+ background-color: #ffffff;
61
+ border-color: #3b82f6;
62
+ z-index: 50;
63
+ }
64
+
65
+ .wv-pin-chip.is-selected {
66
+ border-color: #3b82f6;
67
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4), 0 6px 16px rgba(0, 0, 0, 0.2);
68
+ }
69
+
70
+ .wv-pin-circle {
71
+ position: relative;
72
+ transform: translate(-50%, -100%);
73
+ width: 28px;
74
+ height: 28px;
75
+ border-radius: 9999px;
76
+ background-color: rgba(255, 255, 255, 0.94);
77
+ backdrop-filter: blur(8px);
78
+ border: 1px solid rgba(203, 213, 225, 0.85);
79
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ font-size: 11px;
84
+ font-weight: 700;
85
+ color: #1e293b;
86
+ cursor: pointer;
87
+ transition: transform 0.12s ease, background-color 0.15s ease;
88
+ }
89
+
90
+ .wv-pin-circle:hover {
91
+ transform: translate(-50%, -100%) scale(1.15);
92
+ background-color: #ffffff;
93
+ border-color: #3b82f6;
94
+ z-index: 50;
95
+ }
96
+
97
+ .wv-pin-circle.is-selected {
98
+ border-color: #3b82f6;
99
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
100
+ }
101
+
102
+ .wv-status-pip {
103
+ width: 7px;
104
+ height: 7px;
105
+ border-radius: 9999px;
106
+ flex-shrink: 0;
107
+ }
108
+
109
+ .wv-status-pip.idle {
110
+ background-color: #22c55e;
111
+ }
112
+
113
+ .wv-status-pip.running,
114
+ .wv-status-pip.working {
115
+ background-color: #3b82f6;
116
+ box-shadow: 0 0 6px #3b82f6;
117
+ animation: wv-pulse 1.4s infinite ease-in-out;
118
+ }
119
+
120
+ .wv-status-pip.awaiting_approval {
121
+ background-color: #f59e0b;
122
+ }
123
+
124
+ .wv-status-pip.failed {
125
+ background-color: #ef4444;
126
+ }
127
+
128
+ .wv-status-pip.offline {
129
+ background-color: #94a3b8;
130
+ }
131
+
132
+ @keyframes wv-pulse {
133
+ 0%, 100% { transform: scale(1); opacity: 1; }
134
+ 50% { transform: scale(1.35); opacity: 0.75; }
135
+ }
136
+
137
+ /* Floating Controls Toolbar */
138
+ .wv-controls-toolbar {
139
+ position: absolute;
140
+ top: 14px;
141
+ right: 14px;
142
+ display: flex;
143
+ align-items: center;
144
+ gap: 6px;
145
+ padding: 4px;
146
+ background-color: rgba(15, 23, 42, 0.85);
147
+ backdrop-filter: blur(12px);
148
+ border: 1px solid rgba(255, 255, 255, 0.12);
149
+ border-radius: 10px;
150
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
151
+ z-index: 40;
152
+ }
153
+
154
+ .wv-btn {
155
+ display: inline-flex;
156
+ align-items: center;
157
+ justify-content: center;
158
+ height: 32px;
159
+ padding: 0 10px;
160
+ font-size: 12px;
161
+ font-weight: 500;
162
+ border-radius: 6px;
163
+ border: 1px solid transparent;
164
+ color: #cbd5e1;
165
+ background: transparent;
166
+ cursor: pointer;
167
+ transition: all 0.15s ease;
168
+ }
169
+
170
+ .wv-btn:hover {
171
+ background-color: rgba(255, 255, 255, 0.1);
172
+ color: #ffffff;
173
+ }
174
+
175
+ .wv-btn.is-active {
176
+ background-color: #2563eb;
177
+ color: #ffffff;
178
+ }
179
+
180
+ .wv-btn-icon {
181
+ width: 32px;
182
+ padding: 0;
183
+ }
184
+
185
+ .wv-divider {
186
+ width: 1px;
187
+ height: 18px;
188
+ background-color: rgba(255, 255, 255, 0.15);
189
+ margin: 0 2px;
190
+ }