-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
5598 lines (5198 loc) · 274 KB
/
index.html
File metadata and controls
5598 lines (5198 loc) · 274 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
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>Advanced Fitness Dashboard</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.5.0/lz-string.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jsqr@1.4.0/dist/jsQR.min.js"></script>
<!-- Google Fonts: Montserrat for headings, Nunito for body, Bebas Neue for aggressive gym heading -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Nunito:wght@400;600&family=Bebas+Neue&display=swap" rel="stylesheet">
<link rel="manifest" href="manifest.webmanifest">
<meta name="theme-color" content="#F8FAF9">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="Lifting Tracker">
<meta name="format-detection" content="telephone=no">
<style>
html { -webkit-text-size-adjust: 100%; }
:root {
--finisher-bg: #fff1f0;
--finisher-border: #f87171;
--finisher-text: #b91c1c;
--suggestion-red: #ef4444;
--success: #10b981; /* green-500 */
--background: #F8FAF9;
--surface-1: #FDFDFD;
--surface-2: #F3F4F6;
--primary: #475569; /* slate-600 */
--primary-light: #94a3b8; /* slate-400 */
--secondary: #64748b; /* slate-500 */
--accent: #a3e635; /* lime-400, subtle accent */
--text-on-bg: #23272A;
--text-on-surface: #23272A;
--text-muted: #6B7280;
--border-color: #E2E8F0;
--shadow: 0 2px 8px rgba(44, 62, 80, 0.04);
--spacing-8: 8px;
--spacing-16: 16px;
--spacing-24: 24px;
--spacing-32: 32px;
--border-radius: 10px;
}
/* Dark mode color scheme */
[data-theme="dark"] {
--finisher-bg: #4C1D1D;
--finisher-border: #DC2626;
--finisher-text: #FCA5A5;
--suggestion-red: #F87171;
--success: #34D399; /* green-400 for dark mode */
--background: #0F1419;
--surface-1: #1A1F2E;
--surface-2: #252B3B;
--primary: #94A3B8;
--primary-light: #64748B;
--secondary: #94A3B8;
--accent: #A3E635;
--text-on-bg: #E5E7EB;
--text-on-surface: #E5E7EB;
--text-muted: #9CA3AF;
--border-color: #374151;
--shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
/* Smooth color transitions for theme switching */
* {
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Prevent transition on animations and transforms */
*:is(.btn, .tab-bar-btn)::after,
.toast,
.skeleton {
transition: none;
}
*, *::before, *::after {
box-sizing: border-box;
}
body {
font-family: 'Nunito', Arial, sans-serif;
background: var(--background);
color: var(--text-on-bg);
line-height: 1.7;
margin: 0;
}
/* Quick Log Modal: scrollable for mobile */
#quick-log-modal .modal-scroll {
max-height: 80vh;
overflow-y: auto;
padding-bottom: 8px;
}
@media (max-width: 480px) {
#quick-log-modal .modal-scroll { max-height: 70vh; }
}
/* What's New Modal Styles */
#whats-new-modal {
display: none;
position: fixed;
top: 0; left: 0; width: 100vw; height: 100vh;
background: rgba(0,0,0,0.25);
z-index: 2100;
align-items: flex-end;
justify-content: center;
}
#whats-new-modal .modal-content {
background: #fff;
padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
border-radius: 14px 14px 0 0;
max-width: 640px;
width: 100vw;
margin: 0;
box-shadow: 0 -6px 24px rgba(44,62,80,0.16);
text-align: left;
max-height: 90vh;
overflow-y: auto;
}
#whats-new-modal h2 {
margin-top: 0;
color: var(--primary);
font-size: 1.35em;
}
#whats-new-modal ul {
margin: 16px 0 0 0;
padding-left: 20px;
}
#whats-new-modal button {
margin-top: 24px;
width: 100%;
}
/* Base layout */
.container {
max-width: 960px;
margin: 0 auto;
padding: 16px;
}
header {
position: static;
padding: 12px 16px;
background: var(--surface-1);
border-bottom: 1px solid var(--border-color);
box-shadow: none;
}
header h1 {
font-family: 'Bebas Neue', 'Montserrat', Arial, sans-serif;
font-weight: 400;
font-size: 1.95em;
letter-spacing: 1px;
text-transform: uppercase;
margin: 8px 0 16px 0;
color: var(--primary);
line-height: 1;
}
.section {
background: var(--surface-1);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: var(--spacing-16);
margin-bottom: var(--spacing-24);
box-shadow: var(--shadow);
}
.input-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--spacing-16);
}
@media (max-width: 640px) {
.input-grid { grid-template-columns: 1fr; }
}
.input-group {
display: flex;
flex-direction: column;
}
.input-group label {
font-size: 1em;
color: var(--primary);
margin-bottom: var(--spacing-8);
font-weight: 600;
letter-spacing: 0.5px;
}
input[type="number"], input[type="text"], select {
width: 100%;
padding: var(--spacing-8) var(--spacing-16);
background-color: var(--surface-2);
border: 1px solid var(--border-color);
color: var(--text-on-bg);
border-radius: 8px;
font-size: 1.1em;
font-family: 'Nunito', Arial, sans-serif;
transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus {
border-color: var(--primary);
box-shadow: 0 0 0 2px var(--primary-light);
outline: none;
}
.btn {
background: var(--primary);
color: #fff;
border: none;
padding: var(--spacing-8) var(--spacing-16);
font-size: 1.1em;
font-weight: bold;
border-radius: 6px;
cursor: pointer;
transition: background 0.2s, box-shadow 0.2s;
text-align: center;
box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
}
.btn:hover {
background: var(--secondary);
color: #fff;
box-shadow: 0 4px 16px rgba(44, 62, 80, 0.08);
}
.btn-secondary {
background: var(--accent);
color: var(--primary);
}
.btn-secondary:hover {
background: #d9f99d;
color: var(--primary);
}
#measurements-section .btn { margin-top: var(--spacing-16); }
/* Remove old nav button styles for tab navigation */
/* Bottom tab bar styles */
.tab-bar {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background: var(--surface-2);
border-top: 1px solid var(--border-color);
display: flex;
justify-content: space-around;
align-items: center;
height: calc(60px + env(safe-area-inset-bottom, 0px));
padding-bottom: env(safe-area-inset-bottom, 0px);
z-index: 100;
box-shadow: 0 -2px 8px rgba(44,62,80,0.04);
}
.tab-bar-btn {
flex: 1;
text-align: center;
background: none;
border: none;
color: var(--primary);
font-family: 'Montserrat', Arial, sans-serif;
font-size: 1em;
font-weight: 700;
padding: 0;
cursor: pointer;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: background 0.2s, color 0.2s;
}
.tab-bar-btn.active {
color: var(--accent);
background: rgba(163,230,53,0.10);
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.tab-bar-btn svg {
display: block;
margin: 0 auto 2px auto;
height: 24px;
width: 24px;
}
/* Increase tap target for bottom nav on phones */
.tab-bar-btn { min-height: 56px; }
@media (min-width: 768px) {
.tab-bar { max-width: 900px; left: 50%; transform: translateX(-50%); }
}
/* (Removed) Bottom Action Bar styles */
.phase-content.active { display: block; }
.workout-day {
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
margin-bottom: var(--spacing-24);
background: var(--surface-1);
box-shadow: none;
}
.workout-day summary {
padding: var(--spacing-16);
font-size: 1.3em;
font-weight: bold;
cursor: pointer;
color: var(--primary);
font-family: 'Montserrat', Arial, sans-serif;
}
.workout-day[open] summary { border-bottom: 2px solid var(--primary); }
.workout-content {
padding: var(--spacing-16);
display: flex;
flex-direction: column;
gap: var(--spacing-16);
}
/* Stats: mobile-friendly tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }
.table-scroll thead th { position: sticky; top: 0; background: #f3f4f6; z-index: 1; }
/* Collapsible section styling */
.stats-accordion details { border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--surface-1); margin-bottom: var(--spacing-16); }
.stats-accordion summary { list-style: none; cursor: pointer; padding: var(--spacing-16); font-weight: 700; font-size: 1.1em; display: flex; align-items: center; gap: 8px; color: var(--primary); }
.stats-accordion summary::before { content: '\25B6'; display: inline-block; transform: rotate(0deg); transition: transform 0.2s; color: var(--primary); }
.stats-accordion details[open] summary::before { transform: rotate(90deg); }
.stats-accordion .section-body { padding: 0 var(--spacing-16) var(--spacing-16); }
@media (max-width: 480px) {
h2 { font-size: 1.25em; }
h3 { font-size: 1.1em; }
.table-scroll table { min-width: 520px; }
/* Hide Type column in past workouts for narrower screens */
#past-workouts-table table th:nth-child(3),
#past-workouts-table table td:nth-child(3) { display: none; }
}
.exercise-card {
background: var(--surface-2);
border-radius: var(--border-radius);
padding: var(--spacing-24);
box-shadow: none;
}
.exercise-card.finisher {
background: var(--finisher-bg);
border: 2px solid var(--finisher-border);
color: var(--finisher-text);
}
.suggestion {
font-size: 1em;
color: var(--suggestion-red);
margin-top: var(--spacing-8);
font-style: italic;
font-weight: 700;
}
/* Chart.js canvas tweaks */
.chart-container {
width: 100%;
max-width: 100vw;
min-width: 0;
overflow-x: auto;
padding: 0 4px;
}
.chart-container canvas {
background: var(--surface-2);
border-radius: 8px;
box-shadow: none;
width: 100% !important;
height: 220px !important;
max-width: 100vw;
min-width: 0;
}
@media (max-width: 767px) {
.chart-container { padding: 0 2px; }
.chart-container canvas { height: 160px !important; }
}
#qr-share-container canvas,
#qr-share-container img {
max-width: min(320px, 80vw);
max-height: min(320px, 80vw);
width: auto;
height: auto;
aspect-ratio: 1 / 1;
image-rendering: pixelated;
}
/* Phase navigation: clearer active state */
.phase-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-8); margin: var(--spacing-16) 0; }
.phase-btn { background: var(--surface-2); color: var(--primary); border: 1px solid var(--border-color); border-radius: 10px; }
.phase-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* More noticeable pastel green backgrounds for phases */
#workout-section.phase-1 { background: #fafcf7; /* ultra subtle green tint */ }
#workout-section.phase-2 { background: #f7fcfa; /* ultra subtle mint tint */ }
#workout-section.phase-3 { background: #f7fbfc; /* ultra subtle aqua tint */ }
/* Mobile: allow tables to scroll horizontally */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }
/* Mobile card styles for small screens */
.mobile-pw-card, .mobile-measure-card {
background: #fff;
border: 1px solid var(--border-color);
border-radius: 10px;
padding: 10px 12px;
margin-bottom: 10px;
box-shadow: 0 2px 8px rgba(44,62,80,0.04);
display: flex;
flex-direction: column;
gap: 6px;
}
.mobile-pw-card .pw-top { display:flex;justify-content:space-between;align-items:center;gap:8px; }
.mobile-pw-card .pw-meta { display:flex;gap:8px;flex-wrap:wrap;color:var(--text-muted);font-size:0.95em }
.mobile-measure-card .measure-grid { display:flex;gap:8px;flex-wrap:wrap; }
@media (max-width: 767px) {
.table-scroll table { font-size: 0.9em; }
.table-scroll th, .table-scroll td { padding: 4px 8px; }
}
/* Improve tap targets on mobile */
.btn, .tab-bar-btn, .phase-btn { min-height: 48px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
input, select { min-height: 44px; }
/* Avoid content sitting under fixed tab bar */
/* Ensure content does not sit behind action + tab bars */
#main-pastworkouts { padding-bottom: 92px; }
#main-dashboard { padding-bottom: 92px; }
body { overscroll-behavior-y: contain; }
summary { -webkit-tap-highlight-color: transparent; }
/* Enhanced touch feedback - ripple effect on buttons */
@keyframes ripple {
0% { transform: scale(0); opacity: 0.6; }
100% { transform: scale(2.5); opacity: 0; }
}
.btn { position: relative; overflow: hidden; }
.btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
background: rgba(255,255,255,0.5);
border-radius: 50%;
transform: translate(-50%, -50%) scale(0);
pointer-events: none;
}
.btn:active::after {
animation: ripple 0.6s ease-out;
}
/* Tab bar enhanced touch feedback */
.tab-bar-btn:active {
transform: scale(0.95);
transition: transform 0.1s ease;
}
/* Toast notification system */
.toast {
position: fixed;
bottom: calc(80px + env(safe-area-inset-bottom, 0px));
left: 50%;
transform: translateX(-50%) translateY(100px);
background: #1F2937;
color: #fff;
padding: 12px 24px;
border-radius: 24px;
box-shadow: 0 4px 16px rgba(0,0,0,0.3);
z-index: 3000;
font-size: 0.95em;
font-weight: 600;
opacity: 0;
transition: transform 0.3s ease, opacity 0.3s ease;
pointer-events: none;
max-width: 90vw;
text-align: center;
}
.toast.show {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
.toast.success { background: #059669; }
.toast.error { background: #DC2626; }
/* Loading spinner */
.spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(255,255,255,0.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Skeleton loading states */
.skeleton {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200% 100%;
animation: loading 1.5s ease-in-out infinite;
border-radius: 8px;
}
@keyframes loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.skeleton-text {
height: 16px;
margin: 8px 0;
}
.skeleton-card {
height: 100px;
margin: 12px 0;
}
/* Modal drag handle */
.modal-drag-handle {
width: 36px;
height: 4px;
background: #D1D5DB;
border-radius: 2px;
margin: 0 auto 16px;
cursor: grab;
}
.modal-drag-handle:active {
cursor: grabbing;
}
/* Smooth modal animations */
#exercise-picker-modal,
#quick-log-modal,
#create-plan-modal,
#qr-share-modal,
#qr-scan-modal,
#whats-new-modal {
animation: fadeIn 0.2s ease-out;
}
#exercise-picker-modal > div,
#quick-log-modal > div,
#create-plan-modal > div,
#whats-new-modal > div {
animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#qr-share-modal > div,
#qr-scan-modal > div {
animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
@keyframes scaleIn {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
/* Improved form validation feedback */
input:invalid:not(:placeholder-shown) {
border-color: #EF4444;
background: #FEF2F2;
}
input:valid:not(:placeholder-shown) {
border-color: #10B981;
}
/* Better focus states for accessibility */
input:focus, select:focus, button:focus {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Improve exercise list item touch targets */
#exercise-list button {
min-height: 56px;
padding: 12px 16px;
touch-action: manipulation;
}
/* Pull to refresh indicator */
.pull-refresh-indicator {
position: absolute;
top: -60px;
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: top 0.3s ease;
}
.pull-refresh-indicator.visible {
top: 20px;
}
/* Weight input with +/- buttons */
.weight-input-wrapper {
display: flex;
align-items: center;
gap: 4px;
}
.weight-input-wrapper input {
flex: 1;
text-align: center;
}
.weight-btn {
min-width: 36px;
min-height: 36px;
padding: 0;
font-size: 1.2em;
font-weight: bold;
border-radius: 8px;
border: 1px solid var(--border-color);
background: var(--surface-2);
color: var(--primary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.weight-btn:active {
background: var(--accent);
transform: scale(0.95);
}
/* Favorites star button */
.favorite-btn {
background: none;
border: none;
font-size: 1.3em;
cursor: pointer;
padding: 4px;
color: var(--text-muted);
}
.favorite-btn.active {
color: #facc15;
}
.favorite-btn:hover {
transform: scale(1.1);
}
/* Recent exercises section */
.recent-exercises-section {
background: var(--surface-2);
border-radius: 8px;
padding: 8px 12px;
margin-bottom: 12px;
}
.recent-exercises-section h4 {
margin: 0 0 8px 0;
font-size: 0.9em;
color: var(--text-muted);
}
.recent-exercise-chip {
display: inline-block;
background: var(--surface-1);
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 6px 12px;
margin: 2px 4px 2px 0;
font-size: 0.9em;
cursor: pointer;
transition: all 0.2s;
}
.recent-exercise-chip:hover {
background: var(--accent);
color: var(--primary);
}
/* Streak counter badge */
.streak-badge {
display: inline-flex;
align-items: center;
gap: 6px;
background: linear-gradient(135deg, #f97316, #ea580c);
color: white;
padding: 8px 16px;
border-radius: 20px;
font-weight: bold;
font-size: 0.95em;
box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}
.streak-badge .streak-icon {
font-size: 1.2em;
}
/* Weekly summary card */
.weekly-summary-card {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.summary-stat {
background: var(--surface-2);
border-radius: 12px;
padding: 16px;
text-align: center;
}
.summary-stat .stat-value {
font-size: 1.8em;
font-weight: bold;
color: var(--primary);
}
.summary-stat .stat-label {
font-size: 0.85em;
color: var(--text-muted);
margin-top: 4px;
}
/* Rest timer overlay */
.rest-timer-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
z-index: 3100;
align-items: center;
justify-content: center;
flex-direction: column;
}
.rest-timer-display {
font-size: 6em;
font-weight: bold;
color: var(--accent);
font-family: 'Montserrat', sans-serif;
}
.rest-timer-label {
font-size: 1.5em;
color: white;
margin-top: 16px;
}
.rest-timer-skip {
margin-top: 32px;
padding: 12px 32px;
}
/* Undo toast with action button */
.toast.with-action {
display: flex;
align-items: center;
gap: 12px;
padding-right: 12px;
}
.toast .undo-btn {
background: rgba(255,255,255,0.2);
border: none;
color: white;
padding: 6px 12px;
border-radius: 16px;
font-weight: 600;
cursor: pointer;
}
.toast .undo-btn:hover {
background: rgba(255,255,255,0.3);
}
/* Delete button in tables */
.delete-entry-btn {
background: none;
border: none;
color: #ef4444;
cursor: pointer;
padding: 4px;
border-radius: 4px;
}
.delete-entry-btn:hover {
background: rgba(239, 68, 68, 0.1);
}
/* PR badge */
.pr-badge {
display: inline-block;
background: linear-gradient(135deg, #fbbf24, #f59e0b);
color: #1f2937;
font-size: 0.75em;
padding: 2px 8px;
border-radius: 10px;
font-weight: bold;
margin-left: 6px;
}
/* Export button in stats */
.export-btn {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.9em;
}
/* ========== MOBILE OPTIMIZATIONS FOR 720p+ PHONES ========== */
/* Larger touch targets for all interactive elements */
@media (max-width: 767px) {
/* Increase base font size for better readability on HD+ screens */
html {
font-size: 17px;
}
/* Larger input fields */
input[type="number"], input[type="text"], select {
min-height: 52px;
font-size: 1.1em;
padding: 12px 16px;
}
/* Larger buttons with better touch targets */
.btn {
min-height: 52px;
padding: 14px 20px;
font-size: 1.05em;
}
/* Larger weight +/- buttons */
.weight-btn {
min-width: 48px;
min-height: 48px;
font-size: 1.5em;
}
/* More spacing in input grid for thumb-friendly tapping */
.input-grid {
gap: 16px;
}
/* Larger exercise list items */
#exercise-list > div {
min-height: 64px !important;
padding: 14px 12px !important;
}
/* Bigger favorite stars */
.favorite-btn {
font-size: 1.6em;
padding: 8px;
min-width: 44px;
min-height: 44px;
}
/* Larger recent exercise chips */
.recent-exercise-chip {
padding: 10px 16px;
font-size: 1em;
min-height: 44px;
display: inline-flex;
align-items: center;
}
/* Better header layout */
header h1 {
font-size: 1.6em;
margin: 4px 0 8px 0;
}
/* Compact header on mobile */
header {
padding: 8px 12px;
}
/* Remove margin from container on mobile for more space */
.container {
padding: 12px;
}
/* Sections with better mobile padding */
.section {
padding: 14px;
margin-bottom: 16px;
border-radius: 12px;
}
/* Larger tab bar for easier thumb reach */
.tab-bar {
height: calc(70px + env(safe-area-inset-bottom, 0px));
}
.tab-bar-btn {
min-height: 70px;
font-size: 0.85em;
}
.tab-bar-btn svg {
height: 28px;
width: 28px;
margin-bottom: 4px;
}
/* Adjust content padding for larger tab bar */
#main-quicklog {
padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}
#main-pastworkouts {
padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
}
/* Larger summary stat cards */
.summary-stat {
padding: 14px 12px;
}
.summary-stat .stat-value {
font-size: 1.6em;
}
.summary-stat .stat-label {
font-size: 0.8em;
}
/* Bigger streak badge */
.streak-badge {
padding: 10px 18px;
font-size: 1em;
}
/* Mobile cards with more padding */
.mobile-pw-card, .mobile-measure-card {
padding: 14px 16px;
gap: 10px;
}
/* Delete button larger touch target */
.delete-entry-btn {
padding: 10px;
min-width: 44px;
min-height: 44px;
}
.delete-entry-btn svg {
width: 20px;
height: 20px;
}
/* Toast positioned better on mobile */
.toast {
bottom: calc(90px + env(safe-area-inset-bottom, 0px));
padding: 14px 20px;
font-size: 1em;
max-width: 92vw;
}
/* Rest timer bigger on mobile */
.rest-timer-display {
font-size: 5em;
}
.rest-timer-label {
font-size: 1.3em;
}
.rest-timer-skip {
min-height: 56px;
padding: 16px 40px;
font-size: 1.1em;
}
}
/* Extra small phones (under 360px width) */
@media (max-width: 360px) {
html {
font-size: 15px;
}
.weekly-summary-card {
grid-template-columns: repeat(2, 1fr);
}
}
/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
.tab-bar {
height: 56px;
}
.tab-bar-btn {
min-height: 56px;
flex-direction: row;
gap: 8px;
}
.tab-bar-btn svg {
margin-bottom: 0;
}
#main-quicklog, #main-pastworkouts {
padding-bottom: 70px !important;
}
}
/* Smooth scrolling for exercise list */
#exercise-list {
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
}
/* Better active states for mobile (visual feedback) */
@media (hover: none) and (pointer: coarse) {
.btn:active {
transform: scale(0.97);
opacity: 0.9;
}