-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
153 lines (127 loc) · 5.83 KB
/
Copy pathstyles.css
File metadata and controls
153 lines (127 loc) · 5.83 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
:root{
--bg:#f7fcff;
--card:#cbeefd;
--accent:#ffcb6b;
--accent-2:#7ad6ff;
--muted:#6b7280;
--soft:#e6f7ff;
--primary:#3b82f6;
--glass: rgba(255,255,255,0.7);
--shadow: 0 8px 20px rgba(21,32,43,0.08);
--radius:16px;
--radius-sm:10px;
--ease:cubic-bezier(.22,.9,.34,1);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
background: linear-gradient(180deg,var(--bg) 0%, #f0fbff 100%);
color:#0f172a;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
padding:20px;
}
.app-header{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
margin-bottom:18px;
}
.brand h1{
margin:0;
font-size:20px;
letter-spacing:0.4px;
}
.subtitle{margin:0;color:var(--muted);font-size:12px}
.header-right{display:flex;align-items:center;gap:12px}
.current-time{font-weight:600;padding:6px 10px;border-radius:999px;background:var(--soft);box-shadow:var(--shadow)}
.level-btn{border:0;background:none;padding:0;cursor:pointer}
.level-circle{
display:inline-grid;place-items:center;width:54px;height:54px;border-radius:50%;
background:linear-gradient(135deg,var(--accent) 0%, var(--accent-2) 100%);
color:#082032;font-weight:700;box-shadow:0 6px 18px rgba(59,130,246,0.18);
transform:translateZ(0);transition:transform .18s var(--ease)
}
.level-btn:active .level-circle{transform:scale(.96)}
.container{display:grid;grid-template-columns:1fr 380px;gap:20px;align-items:start;max-width:1100px;margin:auto}
.left-pane, .right-pane{background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85));padding:18px;border-radius:var(--radius);box-shadow:var(--shadow)}
.add-task-form{display:flex;gap:8px;margin-bottom:12px}
.add-task-form input[type="text"]{flex:1;padding:10px;border-radius:10px;border:0;background:#fff;box-shadow:inset 0 1px 0 rgba(0,0,0,0.03)}
.add-task-form select{padding:10px;border-radius:10px;border:0;background:#fff}
.btn{border:0;padding:8px 12px;border-radius:10px;background:transparent;cursor:pointer}
.btn.primary{background:var(--primary);color:#fff;box-shadow:0 6px 14px rgba(59,130,246,0.12)}
h2{margin:6px 0 12px 0;font-size:16px}
.task-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.task-item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:linear-gradient(180deg,#fff,#f7fdff);box-shadow:0 4px 12px rgba(2,6,23,0.04)}
.task-title{flex:1;font-weight:600}
.task-meta{font-size:12px;color:var(--muted)}
.task-actions{display:flex;gap:6px}
.chip{padding:6px 8px;border-radius:999px;font-size:12px;background:#eef9ff;color:#05324a}
.meal-panel{display:flex;flex-direction:column;gap:12px}
.meal-info{display:flex;gap:12px;align-items:center}
.remaining{flex:1}
.pts-remaining{font-size:18px;font-weight:700}
.meal-range{font-size:12px;color:var(--muted)}
.chart-wrap{position:relative;width:120px;height:120px}
.chart{width:100%;height:100%;transform:rotate(-90deg)}
.chart-center{position:absolute;inset:0;display:grid;place-items:center;font-weight:700;pointer-events:none}
.meal-actions{display:flex;gap:8px}
#eat-meal-btn[disabled]{opacity:.45;cursor:not-allowed}
.history-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.history-item{display:flex;justify-content:space-between;padding:8px;border-radius:8px;background:linear-gradient(180deg,#fff,#fbffff);font-size:13px;color:var(--muted)}
.app-footer{max-width:1100px;margin:16px auto 0;display:flex;justify-content:space-between;color:var(--muted);font-size:12px}
/* modal */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(6,12,20,0.35)}
.modal[aria-hidden="false"]{display:flex}
.modal-content{background:linear-gradient(180deg,#fff,#f7fdff);padding:18px;border-radius:14px;min-width:320px;max-width:640px;box-shadow:0 18px 40px rgba(2,6,23,0.12)}
.modal-content fieldset{border:0;margin:8px 0;padding:0}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
/* small utilities */
.muted{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* responsive */
@media (max-width:900px){
.container{grid-template-columns:1fr; padding-bottom:60px}
.chart-wrap{width:96px;height:96px}
}
/* kurzgesagt-like decorative shapes */
.decor {
position:absolute;pointer-events:none;opacity:0.18;filter:blur(6px)
}
.decor.circle {width:180px;height:180px;border-radius:50%;background:radial-gradient(circle at 30% 30%, var(--accent), transparent 40%) }
.decor.slab {width:240px;height:120px;border-radius:28px;background:linear-gradient(90deg,#bfefff,#ffefc1)}
/* small animation */
.pulse{animation:pulse 2.6s infinite}
@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.02)}100%{transform:scale(1)}}
/* Accessibility focus */
:focus{outline:3px solid rgba(59,130,246,0.18);outline-offset:3px}
/* task difficulty colors */
.difficulty-easy{background:linear-gradient(90deg,#eafff7,#e6fbff)}
.difficulty-medium{background:linear-gradient(90deg,#fff7e6,#fff1f0)}
.difficulty-hard{background:linear-gradient(90deg,#fff0f7,#fbe9ff)}
/* small helpers for inline labels */
.label-inline{font-size:12px;color:var(--muted);margin-left:8px}
/* footer credit small */
.app-footer small{opacity:.9}
/* Inline edit styles */
.inline-edit {
border: 1px solid #ddd !important;
background: #fff !important;
outline: none !important;
padding: 2px 4px !important;
border-radius: 4px !important;
width: 100% !important;
}
/* Difficulty picker modal */
.difficulty-form select {
width: 100%;
padding: 10px;
border-radius: 8px;
border: 0;
background: linear-gradient(180deg, #fff, #f7fcff);
font-size: 16px;
margin-bottom: 16px;
}