File size: 5,077 Bytes
26fca56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Global styles for both light and dark themes */
:root {
  --background-color-light: #f7f9fc;
  --text-color-light: #333;
  --panel-background-light: #ffffff;
  --button-background-light: #4a90e2;
  --button-hover-light: #357abd;
  --event-card-background-light: #f0f4fa;
  --event-card-border-left-light: #4a90e2;
  --modal-background-light: rgba(0, 0, 0, 0.4);
  --input-background-light: #ffffff;
  --input-border-light: #ccc;
  --input-text-light: #333;

  --background-color-dark: #181818;
  --text-color-dark: #e0e0e0;
  --panel-background-dark: #2e2e2e;
  --button-background-dark: #4a90e2;
  --button-hover-dark: #357abd;
  --event-card-background-dark: #252525;
  --event-card-border-left-dark: #4a90e2;
  --modal-background-dark: rgba(0, 0, 0, 0.6);
  --input-background-dark: #333;
  --input-border-dark: #444;
  --input-text-dark: #e0e0e0;
}

/* Default light theme */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background-color-light);
  color: var(--text-color-light);
}

.container {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.left-panel,
.right-panel {
  flex: 1;
  min-width: 300px;
  background: var(--panel-background-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h2, h3 {
  color: var(--text-color-light);
  margin-bottom: 16px;
}

input[type="text"],
input[type="datetime-local"],
button {
  width: 100%;
  margin: 8px 0 0 -12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--input-border-light);
  font-size: 1rem;
  background-color: var(--input-background-light);
  color: var(--input-text-light);
}

button {
  background-color: var(--button-background-light);
  color: white;
  border: none;
  cursor: pointer;
  margin-inline: 0px;
  transition: background 0.3s ease;
}

button:hover {
  background-color: var(--button-hover-light);
}

#event-list {
  margin-top: 20px;
}

.event-card {
  background: var(--event-card-background-light);
  border-left: 6px solid var(--event-card-border-left-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.event-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
}

.event-card p {
  margin: 4px 0;
}

.edit-btn, .delete-btn {
  margin-top: 8px;
  margin-right: 8px;
  background-color: #e2e8f0;
  color: #333;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
}

.edit-btn:hover {
  background-color: #d0e2ff;
}

.delete-btn:hover {
  background-color: #ffe1e1;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.search-bar input[type="text"] {
  flex-grow: 1;
  min-width: 200px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--input-border-light);
  font-size: 1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--panel-background-light);
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Reminder styles */
.reminders {
  margin-top: 40px;
}

.reminder-item {
  background: var(--event-card-background-light);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Styling the toggle switch */
.switch {
  --false: #63a2ff;
  --true: #373737;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

input[type=checkbox] {
  appearance: none;
  height: 2.1rem;
  width: 3.5rem;
  background-color: #fafafa;
  position: relative;
  border: 1px royalblue solid;
  border-radius: 1em;
  cursor: pointer;
}

input[type=checkbox]::before {
  content: '';
  display: block;
  height: 1.9em;
  width: 1.9em;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: calc(1.9em / 2 + .3em);
  background-color: var(--false);
  border-radius: 1em;
  transition: .3s ease;
}

input[type=checkbox]:checked::before {
  background-color: var(--true);
  left: calc(100% - (1.9em / 2 + .3em));
}

/* Dark Theme */
[data-theme="dark"] {
  --background-color-light: var(--background-color-dark);
  --text-color-light: var(--text-color-dark);
  --panel-background-light: var(--panel-background-dark);
  --button-background-light: var(--button-background-dark);
  --button-hover-light: var(--button-hover-dark);
  --event-card-background-light: var(--event-card-background-dark);
  --event-card-border-left-light: var(--event-card-border-left-dark);
  --modal-background-light: var(--modal-background-dark);
  --input-background-light: var(--input-background-dark);
  --input-border-light: var(--input-border-dark);
  --input-text-light: var(--input-text-dark);
}