File size: 5,394 Bytes
9b7d64e
76fc93a
9b7d64e
 
76fc93a
9b7d64e
 
 
 
76fc93a
 
 
 
 
 
 
 
 
 
 
 
 
 
9b7d64e
 
 
76fc93a
 
9b7d64e
 
 
76fc93a
9b7d64e
 
 
76fc93a
9b7d64e
 
 
 
76fc93a
9b7d64e
 
76fc93a
9b7d64e
76fc93a
9b7d64e
 
 
76fc93a
9b7d64e
76fc93a
9b7d64e
 
76fc93a
 
9b7d64e
 
 
76fc93a
9b7d64e
 
 
 
76fc93a
9b7d64e
 
 
76fc93a
 
9b7d64e
 
 
 
 
 
 
 
 
76fc93a
9b7d64e
 
 
 
 
76fc93a
9b7d64e
 
 
76fc93a
9b7d64e
76fc93a
9b7d64e
 
 
76fc93a
9b7d64e
76fc93a
9b7d64e
 
76fc93a
 
9b7d64e
 
 
76fc93a
9b7d64e
 
 
 
76fc93a
9b7d64e
 
 
76fc93a
9b7d64e
 
 
 
 
 
 
 
 
 
76fc93a
9b7d64e
 
 
76fc93a
9b7d64e
 
 
76fc93a
9b7d64e
 
 
 
 
 
 
76fc93a
9b7d64e
76fc93a
 
 
 
 
 
 
 
9b7d64e
 
 
 
 
 
 
 
 
 
76fc93a
9b7d64e
 
 
 
 
 
 
 
 
 
76fc93a
 
9b7d64e
 
 
 
 
 
 
 
 
76fc93a
9b7d64e
 
 
76fc93a
9b7d64e
 
 
76fc93a
 
9b7d64e
 
 
 
 
 
76fc93a
9b7d64e
76fc93a
9b7d64e
 
76fc93a
9b7d64e
 
 
 
 
 
 
 
 
 
 
 
76fc93a
9b7d64e
 
 
 
 
76fc93a
 
9b7d64e
 
 
 
 
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
/* ============================================================================ */
/* Form Elements - Modern Minimal Design                                      */
/* ============================================================================ */

/* ---------- Select ---------- */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--page-bg, #fff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-color, inherit);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 6px;
}

select:hover,
select:focus {
  border-color: var(--primary-color, #7c3aed);
}

select:focus {
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Checkbox ---------- */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color, rgba(0, 0, 0, 0.2));
  border-radius: 3px;
  background-color: var(--page-bg, #fff);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

input[type="checkbox"]:hover {
  border-color: var(--primary-color, #7c3aed);
}

input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

input[type="checkbox"]:checked {
  background-color: var(--primary-color, #7c3aed);
  border-color: var(--primary-color, #7c3aed);
}

input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid var(--on-primary, #fff);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Radio ---------- */
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color, rgba(0, 0, 0, 0.2));
  border-radius: 50%;
  background-color: var(--page-bg, #fff);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

input[type="radio"]:hover {
  border-color: var(--primary-color, #7c3aed);
}

input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

input[type="radio"]:checked {
  border-color: var(--primary-color, #7c3aed);
}

input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color, #7c3aed);
}

input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Text inputs ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--page-bg, #fff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-color, inherit);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
textarea:hover {
  border-color: var(--primary-color, #7c3aed);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color, #7c3aed);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="number"]:disabled,
input[type="url"]:disabled,
input[type="search"]:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Label ---------- */
label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-color, inherit);
  cursor: pointer;
  margin-bottom: 0;
  line-height: 1.4;
  user-select: none;
}

/* ---------- Form layout helpers ---------- */
.form-group {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label {
  margin-bottom: 0;
}

.form-group.vertical {
  flex-direction: column;
  align-items: flex-start;
}

.form-group.vertical label {
  margin-bottom: 4px;
}

.form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.form-inline label {
  margin-bottom: 0;
}