-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewtab.html
More file actions
561 lines (505 loc) · 33.9 KB
/
Copy pathnewtab.html
File metadata and controls
561 lines (505 loc) · 33.9 KB
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Tab</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' data-name='Layer 1' viewBox='0 0 24 24' fill='%23ffffff'><path d='M12 14.685c-1.149 0-2.085.985-2.085 2.196v6.076a50 50 0 0 0 4.17 0v-6.076c0-1.211-.936-2.196-2.085-2.196'/><path d='M21.085 6.758a1 1 0 0 0-.308-.377l-.564-.418V3.505a1.5 1.5 0 1 0-3 0v.315C14.939 2.26 12.842 1 12 1c-1.299 0-5.49 2.927-8.778 5.382-.133.1-.24.231-.31.383-.047.102-1.154 2.562-1.154 7.578 0 2.165.202 5.37.432 6.858a1 1 0 0 0 .698.804c.098.03 1.842.548 5.027.825v-5.948c0-2.314 1.832-4.196 4.085-4.196s4.085 1.882 4.085 4.196v5.948c3.185-.276 4.928-.795 5.025-.824a1 1 0 0 0 .697-.804c.231-1.498.435-4.703.435-6.858 0-5.059-1.11-7.483-1.157-7.584Z'/></svg>">
<link rel="stylesheet" href="css/variables.css">
<script src="preload.js"></script>
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/ui.css">
<link rel="stylesheet" href="css/search.css">
<link rel="stylesheet" href="css/shortcuts.css">
<link rel="stylesheet" href="css/pomodoro.css">
<link rel="stylesheet" href="css/panel.css">
</head>
<body>
<div id="main-content">
<div id="pomodoro-widget" class="pos-top-left">
<div class="pomodoro-top-row">
<button id="pomo-minus-btn" aria-label="Decrease Time">
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor"><path d="M19 13H5v-2h14v2z"/></svg>
</button>
<span id="pomodoro-time">25:00</span>
<button id="pomo-plus-btn" aria-label="Increase Time">
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
</button>
</div>
<div class="pomodoro-bottom-row">
<button id="pomodoro-toggle-btn" aria-label="Start/Pause Timer">
<svg id="pomodoro-icon-play" viewBox="0 0 24 24" width="20" height="20" fill="currentColor">
<path d="M7 4.512c0-1.745 1.884-2.839 3.39-1.97l9.467 5.467c1.517.876 1.517 3.096 0 3.972l-9.467 5.467c-1.506.87-3.39-.225-3.39-1.97V4.512z"/>
</svg>
<svg id="pomodoro-icon-pause" viewBox="0 0 24 24" width="20" height="20" fill="currentColor" style="display: none;">
<rect x="6" y="4" width="4" height="16" rx="1"></rect>
<rect x="14" y="4" width="4" height="16" rx="1"></rect>
</svg>
</button>
<button id="pomo-restart-btn" aria-label="Restart Timer">
<svg viewBox="0 0 24 24" width="18" height="18" fill="currentColor"><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"/></svg>
</button>
<button id="pomo-skip-btn" aria-label="Skip Session">
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor"><path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/></svg>
</button>
</div>
</div>
<div id="clock-widget">
<div id="time-display"></div>
<div id="date-display"></div>
</div>
<div id="search-container">
<div id="search-box">
<div class="engine-selector-wrapper">
<button id="search-engine-btn" title="Change Search Engine" aria-label="Change Search Engine">
<img id="current-engine-icon" src="" alt="Engine">
<span class="engine-dropdown-icon">▼</span>
</button>
<div id="engine-dropdown-menu" class="hidden"></div>
</div>
<div class="search-divider"></div>
<input type="text" id="search-input" placeholder="Search the web..." autocomplete="off" spellcheck="false" autofocus>
</div>
</div>
<div id="grid-container">
<div class="add-shortcut-container" id="add-btn-container">
<button class="add-shortcut-btn" id="add-btn" aria-label="Add Shortcut">+</button>
<span class="add-shortcut-text">Add shortcut</span>
</div>
</div>
</div>
<button id="lock-btn" title="Lock Layout" aria-label="Toggle Layout Lock">
<svg id="animated-lock" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20">
<path class="lock-shackle" d="M17 8V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2h1.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H17z"/>
<path class="lock-body" d="M18 8H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>
</svg>
</button>
<button id="customize-btn" title="Customize this page" aria-label="Open Settings">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20px" height="20px"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>
</button>
<div id="side-panel">
<div class="panel-header">
<h2 id="panel-title">Customize Cleo</h2>
<button id="close-panel-btn" aria-label="Close Panel">×</button>
</div>
<div class="search-pill-container">
<input type="text" id="panel-search-input" placeholder="Search settings..." autocomplete="off" spellcheck="false">
<span id="search-match-count" class="match-count">0/0</span>
<div class="pill-divider"></div>
<button id="search-prev-btn" class="pill-btn" disabled title="Previous match" aria-label="Previous Match">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M18 15l-6-6-6 6"/></svg>
</button>
<button id="search-next-btn" class="pill-btn" disabled title="Next match" aria-label="Next Match">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M6 9l6 6 6-6"/></svg>
</button>
<button id="search-clear-btn" class="pill-btn" disabled title="Clear search" aria-label="Clear Search">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M18 6L6 18M6 6l12 12"/></svg>
</button>
</div>
<div class="panel-content">
<div class="panel-section">
<h3>Theme Presets</h3>
<div class="theme-preset-grid">
<button class="theme-preset-btn" data-theme="default">
<div class="swatches"><span style="background:#F0EEE9"></span><span style="background:#D3E4F1"></span></div>
<span>Cleo Default</span>
</button>
<button class="theme-preset-btn" data-theme="slate">
<div class="swatches"><span style="background:#0F172A"></span><span style="background:#8AB4F8"></span></div>
<span>Midnight Slate</span>
</button>
<button class="theme-preset-btn" data-theme="obsidian">
<div class="swatches"><span style="background:#1C1917"></span><span style="background:#D97706"></span></div>
<span>Warm Obsidian</span>
</button>
<button class="theme-preset-btn" data-theme="oled">
<div class="swatches"><span style="background:#000000"></span><span style="background:#C58AF9"></span></div>
<span>OLED Void</span>
</button>
</div>
</div>
<div class="panel-section">
<h3>Global UI Styling</h3>
<div class="toggle-row">
<h3>Frosted Glass Effect</h3>
<label class="switch">
<input type="checkbox" id="global-glass-toggle" checked aria-label="Toggle Global Glass">
<span class="slider"></span>
</label>
</div>
<div class="input-group" style="margin-top: 15px;">
<div style="display: flex; justify-content: space-between; align-items: center;">
<label for="global-radius-num" style="margin-bottom: 0;">Corner Roundness (px)</label>
<input type="number" id="global-radius-num" min="0" max="50" class="panel-input" style="width: 60px; padding: 4px 8px; text-align: center;">
</div>
<input type="range" id="global-radius-slider" min="0" max="50" style="width: 100%; margin-top: 10px;">
</div>
<div class="input-group" style="margin-top: 15px;">
<div style="display: flex; justify-content: space-between; align-items: center;">
<label for="global-opacity-num" style="margin-bottom: 0;">Widget Transparency (%)</label>
<input type="number" id="global-opacity-num" min="0" max="100" class="panel-input" style="width: 60px; padding: 4px 8px; text-align: center;">
</div>
<input type="range" id="global-opacity-slider" min="0" max="100" style="width: 100%; margin-top: 10px;">
</div>
</div>
<div class="panel-section">
<h3>Global Colors</h3>
<div class="bg-options">
<div class="color-picker-wrapper">
<div class="color-input-group">
<div class="color-picker-container">
<input type="color" id="bg-color-picker" value="#000000" aria-label="Background Color">
<svg class="color-edit-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>
</div>
<input type="text" id="bg-color-text" class="hex-input" value="#000000" maxlength="7" spellcheck="false" aria-label="Background Hex">
</div>
<span>Background</span>
</div>
<button id="bg-image-btn" class="panel-btn" style="margin-bottom: 20px;">Change wallpaper</button>
<input type="file" id="bg-image-input" accept="image/*" style="display: none;">
</div>
<div class="color-picker-wrapper">
<div class="color-input-group">
<div class="color-picker-container">
<input type="color" id="accent-color-picker" value="#8ab4f8" aria-label="Accent Color">
<svg class="color-edit-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>
</div>
<input type="text" id="accent-color-text" class="hex-input" value="#8ab4f8" maxlength="7" spellcheck="false" aria-label="Accent Hex">
</div>
<span>Accent Color</span>
</div>
<div class="input-group" style="margin-top: 15px;">
<label for="global-font-select">Font Style</label>
<select id="global-font-select" class="panel-select">
<optgroup label="Modern & Clean (Sans-Serif)">
<option value="system-ui, -apple-system, sans-serif">System Default</option>
<option value="Arial, Helvetica, sans-serif">Arial / Helvetica</option>
<option value="Verdana, Geneva, sans-serif">Verdana</option>
<option value="Tahoma, Geneva, sans-serif">Tahoma</option>
<option value="'Trebuchet MS', Helvetica, sans-serif">Trebuchet MS</option>
</optgroup>
<optgroup label="Classic & Elegant (Serif)">
<option value="'Times New Roman', Times, serif">Times New Roman</option>
<option value="Georgia, serif">Georgia</option>
<option value="Garamond, serif">Garamond</option>
</optgroup>
<optgroup label="Code & Typewriter (Monospace)">
<option value="Consolas, Monaco, monospace">Consolas / Monaco</option>
<option value="'Courier New', Courier, monospace">Courier New</option>
</optgroup>
<optgroup label="Decorative">
<option value="Impact, Charcoal, sans-serif">Impact</option>
<option value="'Comic Sans MS', cursive, sans-serif">Comic Sans</option>
</optgroup>
</select>
</div>
</div>
<div class="panel-section">
<h3>Clock & Date</h3>
<div class="toggle-row">
<h3>Enable Clock</h3>
<label class="switch">
<input type="checkbox" id="show-clock-toggle" checked aria-label="Toggle Clock">
<span class="slider"></span>
</label>
</div>
<div id="clock-options-group" style="border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px;">
<div class="input-group">
<label for="time-format-select">Time Format</label>
<select id="time-format-select" class="panel-select">
<option value="12hr">12-hour</option>
<option value="24hr">24-hour</option>
</select>
</div>
<div class="toggle-row" style="margin-top: 15px;">
<h3>Show seconds</h3>
<label class="switch">
<input type="checkbox" id="show-seconds-toggle" aria-label="Toggle Seconds">
<span class="slider"></span>
</label>
</div>
<div class="toggle-row" id="show-date-row" style="margin-top: 15px;">
<h3>Show date</h3>
<label class="switch">
<input type="checkbox" id="show-date-toggle" checked aria-label="Toggle Date">
<span class="slider"></span>
</label>
</div>
<div class="input-group" style="margin-top: 15px;">
<label for="date-format-select">Date Format</label>
<select id="date-format-select" class="panel-select">
<option value="full">Weekday, Month Date (Friday, August 7)</option>
<option value="short">Short (Aug 7, 2026)</option>
<option value="ddmm">DD/MM/YYYY (07/08/2026)</option>
<option value="mmdd">MM/DD/YYYY (08/07/2026)</option>
</select>
</div>
<div class="input-group" style="margin-top: 15px;">
<label for="date-position-select">Date Position</label>
<select id="date-position-select" class="panel-select">
<option value="below">Below clock</option>
<option value="above">Above clock</option>
</select>
</div>
<div class="input-group" style="margin-top: 15px;">
<label for="clock-color-mode-select">Clock Color Theme</label>
<select id="clock-color-mode-select" class="panel-select">
<option value="monochrome">Monochrome Auto (Black/White)</option>
<option value="dynamic">Dynamic Auto (Complementary Color)</option>
<option value="custom">Custom Color...</option>
</select>
</div>
<div class="color-picker-wrapper" id="clock-color-wrapper" style="margin-top: 10px; display: none;">
<div class="color-input-group">
<div class="color-picker-container">
<input type="color" id="clock-color-picker" value="#ffffff" aria-label="Clock Color">
<svg class="color-edit-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>
</div>
<input type="text" id="clock-color-text" class="hex-input" value="#ffffff" maxlength="7" spellcheck="false" aria-label="Clock Hex">
</div>
<span>Pick Color</span>
</div>
</div>
</div>
<div class="panel-section">
<h3>Pomodoro Timer</h3>
<div class="toggle-row">
<h3>Enable Timer</h3>
<label class="switch">
<input type="checkbox" id="show-pomodoro-toggle" checked aria-label="Toggle Pomodoro">
<span class="slider"></span>
</label>
</div>
<div id="pomodoro-options-group" style="border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px;">
<div class="input-group">
<label for="pomodoro-position-select">Position</label>
<select id="pomodoro-position-select" class="panel-select">
<option value="top-left">Top Left</option>
<option value="top-right">Top Right</option>
</select>
</div>
<div class="input-group" style="margin-top: 15px;">
<label for="pomodoro-color-mode-select">Background Color Theme</label>
<select id="pomodoro-color-mode-select" class="panel-select">
<option value="monochrome">Monochrome Auto (Black/White)</option>
<option value="accent">Matches Accent Color</option>
<option value="custom">Custom Color...</option>
</select>
</div>
<div class="color-picker-wrapper" id="pomodoro-bg-picker-wrapper" style="margin-top: 15px; display: none;">
<div class="color-input-group">
<div class="color-picker-container">
<input type="color" id="pomodoro-bg-picker" value="#f0eee9" aria-label="Pomodoro Background">
<svg class="color-edit-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>
</div>
<input type="text" id="pomodoro-bg-text" class="hex-input" value="#f0eee9" maxlength="7" spellcheck="false" aria-label="Pomodoro Background Hex">
</div>
<span>Background Color</span>
</div>
<div class="toggle-row" style="margin-top: 15px;">
<h3>Show border outline</h3>
<label class="switch">
<input type="checkbox" id="pomodoro-border-toggle" aria-label="Toggle Pomodoro Border">
<span class="slider"></span>
</label>
</div>
<div class="input-group" style="margin-top: 15px;">
<div style="display: flex; justify-content: space-between; align-items: center;">
<label for="pomodoro-focus-num" style="margin-bottom: 0;">Focus Time (minutes)</label>
<input type="number" id="pomodoro-focus-num" min="25" max="120" value="25" class="panel-input" style="width: 60px; padding: 4px 8px; text-align: center;">
</div>
<input type="range" id="pomodoro-focus-slider" min="25" max="120" value="25" style="width: 100%; margin-top: 10px;">
</div>
<div class="input-group" style="margin-top: 15px;">
<div style="display: flex; justify-content: space-between; align-items: center;">
<label for="pomodoro-break-num" style="margin-bottom: 0;">Break Time (minutes)</label>
<input type="number" id="pomodoro-break-num" min="5" max="30" value="5" class="panel-input" style="width: 60px; padding: 4px 8px; text-align: center;">
</div>
<input type="range" id="pomodoro-break-slider" min="5" max="30" value="5" style="width: 100%; margin-top: 10px;">
</div>
</div>
</div>
<div class="panel-section">
<h3>Search Bar</h3>
<div class="toggle-row">
<h3>Enable Search</h3>
<label class="switch">
<input type="checkbox" id="show-search-toggle" checked aria-label="Toggle Search">
<span class="slider"></span>
</label>
</div>
<div id="search-options-group" style="border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px;">
<div class="input-group">
<label for="search-engine-select">Search Engine</label>
<select id="search-engine-select" class="panel-select">
<option value="https://www.google.com/search?q=">Google</option>
<option value="https://www.google.com/search?udm=14&q=">Google Web (Clean)</option>
<option value="https://www.bing.com/search?q=">Bing</option>
<option value="https://duckduckgo.com/?q=">DuckDuckGo</option>
<option value="https://search.yahoo.com/search?p=">Yahoo</option>
<option value="https://search.brave.com/search?q=">Brave</option>
<option value="https://www.startpage.com/sp/search?query=">Startpage</option>
<option value="https://kagi.com/search?q=">Kagi</option>
<option value="https://www.qwant.com/?q=">Qwant</option>
<option value="https://www.ecosia.org/search?q=">Ecosia</option>
</select>
</div>
<div class="input-group" style="margin-top: 15px;">
<label for="search-color-mode-select">Bar Color Theme</label>
<select id="search-color-mode-select" class="panel-select">
<option value="auto">Auto (Matches Background)</option>
<option value="accent">Matches Accent Color</option>
<option value="custom">Custom Color...</option>
</select>
</div>
<div class="color-picker-wrapper" id="search-color-wrapper" style="margin-top: 10px; display: none;">
<div class="color-input-group">
<div class="color-picker-container">
<input type="color" id="search-color-picker" value="#202124" aria-label="Search Color">
<svg class="color-edit-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>
</div>
<input type="text" id="search-color-text" class="hex-input" value="#202124" maxlength="7" spellcheck="false" aria-label="Search Hex">
</div>
<span>Pick Color</span>
</div>
<div class="toggle-row" style="margin-top: 15px;">
<h3>Show border outline</h3>
<label class="switch">
<input type="checkbox" id="show-search-border-toggle" checked aria-label="Toggle Search Border">
<span class="slider"></span>
</label>
</div>
</div>
</div>
<div class="panel-section">
<h3>Web Shortcuts</h3>
<div class="toggle-row">
<h3>Enable Shortcuts</h3>
<label class="switch">
<input type="checkbox" id="show-shortcuts-toggle" checked aria-label="Toggle Shortcuts">
<span class="slider"></span>
</label>
</div>
<div id="shortcut-options-group" style="border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 15px;">
<div class="input-group">
<label for="shortcut-type-select">Shortcut Source</label>
<select id="shortcut-type-select" class="panel-select">
<option value="custom">My Curated Shortcuts</option>
<option value="topSites">Most Visited Sites</option>
</select>
</div>
<div class="input-group" id="max-shortcuts-group" style="margin-top: 15px;">
<label for="max-shortcuts-select">Grid Size Limit</label>
<select id="max-shortcuts-select" class="panel-select">
<option value="10">1 Row (10 max)</option>
<option value="20">2 Rows (20 max)</option>
<option value="30">3 Rows (30 max)</option>
<option value="40">4 Rows (40 max)</option>
<option value="50">5 Rows (50 max)</option>
</select>
</div>
<div class="input-group" style="margin-top: 15px;">
<label for="shortcut-color-mode-select">Tile Color Theme</label>
<select id="shortcut-color-mode-select" class="panel-select">
<option value="auto">Auto (Matches Background)</option>
<option value="accent">Matches Accent Color</option>
<option value="custom">Custom Color...</option>
</select>
</div>
<div class="color-picker-wrapper" id="shortcut-color-wrapper" style="margin-top: 10px; display: none;">
<div class="color-input-group">
<div class="color-picker-container">
<input type="color" id="shortcut-color-picker" value="#303134" aria-label="Shortcut Color">
<svg class="color-edit-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>
</div>
<input type="text" id="shortcut-color-text" class="hex-input" value="#303134" maxlength="7" spellcheck="false" aria-label="Shortcut Hex">
</div>
<span>Pick Color</span>
</div>
<div class="toggle-row" id="show-labels-row" style="margin-top: 15px;">
<h3>Show shortcut names</h3>
<label class="switch">
<input type="checkbox" id="show-labels-toggle" checked aria-label="Toggle Shortcut Labels">
<span class="slider"></span>
</label>
</div>
<div class="input-group" style="margin-top: 15px; border-top: 1px solid var(--border-color); padding-top: 15px;">
<button id="restore-hidden-btn" class="panel-btn" style="margin-bottom: 0;">Restore hidden sites</button>
</div>
</div>
</div>
<div class="panel-section">
<h3>Advanced UI</h3>
<div class="toggle-row" style="margin-bottom: 20px;">
<h3>Show UI shadows</h3>
<label class="switch">
<input type="checkbox" id="show-shadows-toggle" checked aria-label="Toggle UI Shadows">
<span class="slider"></span>
</label>
</div>
<div class="input-group">
<label for="scrollbar-visibility-select">Scrollbar Visibility</label>
<select id="scrollbar-visibility-select" class="panel-select">
<option value="always">Always Show</option>
<option value="hover">Show on Hover</option>
</select>
</div>
<div class="input-group" style="margin-top: 15px;">
<label for="scrollbar-color-mode-select">Scrollbar Color Theme</label>
<select id="scrollbar-color-mode-select" class="panel-select">
<option value="auto" selected>Auto (Matches Background)</option>
<option value="accent">Matches Accent Color</option>
<option value="custom">Custom Color...</option>
</select>
</div>
<div class="color-picker-wrapper" id="scrollbar-color-wrapper" style="margin-top: 10px; display: none;">
<div class="color-input-group">
<div class="color-picker-container">
<input type="color" id="scrollbar-color-picker" value="#8ab4f8" aria-label="Scrollbar Color">
<svg class="color-edit-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>
</div>
<input type="text" id="scrollbar-color-text" class="hex-input" value="#8ab4f8" maxlength="7" spellcheck="false" aria-label="Scrollbar Hex">
</div>
<span>Pick Color</span>
</div>
<div class="toggle-row" style="margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 15px;">
<h3>Show layout lock button</h3>
<label class="switch">
<input type="checkbox" id="show-lock-btn-toggle" checked aria-label="Toggle Lock Button">
<span class="slider"></span>
</label>
</div>
</div>
<div class="panel-section">
<h3>Backup & Restore</h3>
<p style="font-size: 12px; color: var(--text-secondary); margin-bottom: 15px; line-height: 1.4;">Export your layout, shortcuts, and colors to a file, or restore them from a previous backup.</p>
<button id="export-btn" class="panel-btn">Export Settings</button>
<button id="import-btn" class="panel-btn" style="margin-bottom: 0;">Import Settings</button>
<input type="file" id="import-input" accept=".json" style="display: none;" aria-hidden="true">
</div>
<div class="panel-section">
<button id="reset-all-btn" class="panel-btn" style="color: #ff6b6b; border-color: rgba(255,107,107,0.5); margin-bottom: 0;">Reset all settings</button>
</div>
</div>
</div>
<div id="modal-backdrop" class="hidden">
<div id="add-modal">
<h2 id="modal-title">Add shortcut</h2>
<div class="input-group">
<label for="site-name">Name</label>
<input type="text" id="site-name" autocomplete="off" spellcheck="false">
</div>
<div class="input-group">
<label for="site-url">URL</label>
<input type="text" id="site-url" autocomplete="off" spellcheck="false">
</div>
<div class="modal-actions">
<button id="cancel-btn">Cancel</button>
<button id="done-btn">Done</button>
</div>
</div>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>