File size: 5,830 Bytes
6027554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dd1b723
6027554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dd1b723
6027554
dd1b723
 
6027554
 
 
 
 
 
 
dd1b723
 
6027554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ab9f226
 
6027554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dd1b723
 
 
6027554
 
ab9f226
 
6027554
dd1b723
 
6027554
 
dd1b723
6027554
 
 
 
dd1b723
6027554
 
 
 
 
 
 
ab9f226
 
6027554
 
 
ab9f226
 
6027554
 
 
 
 
ab9f226
dd1b723
6027554
 
dd1b723
 
6027554
 
 
dd1b723
 
6027554
 
 
 
 
 
 
dd1b723
 
6027554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dd1b723
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
/* style.css content here */
/* General Reset and Variables */
:root {
    --color-primary: #1a73e8; /* Google blue for a modern look */
    --color-secondary: #5f6368;
    --color-background: #f1f3f4; /* Light gray background */
    --color-surface: #ffffff;
    --color-text: #202124;
    --color-success: #34a853; /* Google green */
    --color-error: #ea4335; /* Google red */
    --font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --padding-unit: 1.25rem;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

header {
    background-color: var(--color-surface);
    border-bottom: 1px solid #dadce0;
    padding: var(--padding-unit) 5%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin: 0;
    font-weight: 500;
}

.anycoder-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.anycoder-link:hover {
    background-color: #e8f0fe;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
}

.explanation {
    background-color: #e7f2ff;
    color: #1a4d95;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid #c5e3ff;
    font-size: 0.95rem;
}

/* Controls and Interface Grid */
.controls {
    margin-bottom: 1.5rem;
}

.interface-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.input-panel, .output-panel, .controls {
    background-color: var(--color-surface);
    padding: var(--padding-unit);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 400;
}

/* Input Styles */
.input-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dadce0;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--color-primary);
}

/* File Input Custom Styling */
.file-label {
    background-color: var(--color-secondary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    display: inline-block;
    font-weight: 500;
}

.file-label:hover {
    background-color: #4a4d51;
}

#image-upload {
    display: none;
}

/* Button */
#classify-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    margin-top: 1rem;
    font-weight: 500;
}

#classify-button:hover:not(:disabled) {
    background-color: #0c61e0;
}

#classify-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Output Area */
#image-preview-container {
    height: 300px;
    border: 1px solid #dadce0;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #fcfcfc;
}

#image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-text {
    color: var(--color-secondary);
    font-style: italic;
}

#status {
    font-weight: 400;
    margin-bottom: 1rem;
    padding: 10px;
    background-color: #e6f4ea; /* Light success background */
    border-radius: 4px;
    color: #1e8e3e;
}

/* Classification Results Styling */
#classification-results {
    margin-top: 1rem;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.label-text {
    width: 25%;
    font-weight: 400;
}

.score-bar-container {
    flex-grow: 1;
    height: 15px;
    background-color: #e8f0fe;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.score-bar {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.score-text {
    width: 50px;
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
}

/* Device Toggle */
.device-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
}

#device-select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #dadce0;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .interface-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.5rem;
    }
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    .anycoder-link {
        margin-bottom: 0.5rem;
    }
    main {
        padding: 0 1rem;
    }
    .label-text {
        width: auto;
        min-width: 30%;
        margin-right: 0.5rem;
    }
    .score-bar-container {
        margin: 0 0.5rem;
    }
}