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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* {
|
| 2 |
+
margin: 0;
|
| 3 |
+
padding: 0;
|
| 4 |
+
box-sizing: border-box;
|
| 5 |
+
font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
body {
|
| 9 |
+
background-color: #f5f5f5;
|
| 10 |
+
color: #333;
|
| 11 |
+
overflow-x: hidden;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
.app-container {
|
| 15 |
+
display: flex;
|
| 16 |
+
flex-direction: column;
|
| 17 |
+
height: 100vh;
|
| 18 |
+
max-width: 1600px;
|
| 19 |
+
margin: 0 auto;
|
| 20 |
+
background-color: white;
|
| 21 |
+
box-shadow: 0 0 20px rgba(0,0,0,0.1);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
/* Header Styles */
|
| 25 |
+
.header {
|
| 26 |
+
display: flex;
|
| 27 |
+
justify-content: space-between;
|
| 28 |
+
align-items: center;
|
| 29 |
+
padding: 15px 25px;
|
| 30 |
+
background-color: #fff;
|
| 31 |
+
border-bottom: 1px solid #e0e0e0;
|
| 32 |
+
height: 60px;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.logo {
|
| 36 |
+
display: flex;
|
| 37 |
+
align-items: center;
|
| 38 |
+
gap: 10px;
|
| 39 |
+
font-size: 20px;
|
| 40 |
+
font-weight: bold;
|
| 41 |
+
color: #ea4335;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.logo i {
|
| 45 |
+
font-size: 24px;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.search-bar {
|
| 49 |
+
display: flex;
|
| 50 |
+
align-items: center;
|
| 51 |
+
background-color: #f1f3f4;
|
| 52 |
+
border-radius: 24px;
|
| 53 |
+
padding: 8px 16px;
|
| 54 |
+
width: 300px;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.search-bar input {
|
| 58 |
+
border: none;
|
| 59 |
+
background: transparent;
|
| 60 |
+
width: 100%;
|
| 61 |
+
padding: 5px;
|
| 62 |
+
font-size: 14px;
|
| 63 |
+
outline: none;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
/* Main Content Layout */
|
| 67 |
+
.content {
|
| 68 |
+
display: flex;
|
| 69 |
+
flex: 1;
|
| 70 |
+
overflow: hidden;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
/* Email List Styles */
|
| 74 |
+
.email-list {
|
| 75 |
+
flex: 1;
|
| 76 |
+
overflow-y: auto;
|
| 77 |
+
border-right: 1px solid #e0e0e0;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
.email-item {
|
| 81 |
+
padding: 15px 20px;
|
| 82 |
+
border-bottom: 1px solid #f1f3f4;
|
| 83 |
+
cursor: pointer;
|
| 84 |
+
transition: background-color 0.2s;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.email-item:hover {
|
| 88 |
+
background-color: #f8f9fa;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.email-item.selected {
|
| 92 |
+
background-color: #e8f0fe;
|
| 93 |
+
border-left: 4px solid #4285f4;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.email-header {
|
| 97 |
+
display: flex;
|
| 98 |
+
justify-content: space-between;
|
| 99 |
+
margin-bottom: 5px;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.email-sender {
|
| 103 |
+
font-weight: bold;
|
| 104 |
+
color: #202124;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
.email-time {
|
| 108 |
+
color: #5f6368;
|
| 109 |
+
font-size: 13px;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
.email-subject {
|
| 113 |
+
font-weight: 500;
|
| 114 |
+
color: #202124;
|
| 115 |
+
margin-bottom: 5px;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
.email-snippet {
|
| 119 |
+
color: #5f6368;
|
| 120 |
+
font-size: 14px;
|
| 121 |
+
white-space: nowrap;
|
| 122 |
+
overflow: hidden;
|
| 123 |
+
text-overflow: ellipsis;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
/* Webcam Overlay Styles */
|
| 127 |
+
.webcam-container {
|
| 128 |
+
position: fixed;
|
| 129 |
+
bottom: 20px;
|
| 130 |
+
right: 20px;
|
| 131 |
+
width: 320px;
|
| 132 |
+
height: 240px;
|
| 133 |
+
border-radius: 12px;
|
| 134 |
+
overflow: hidden;
|
| 135 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
| 136 |
+
z-index: 100;
|
| 137 |
+
background-color: #000;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
#webcam {
|
| 141 |
+
width: 100%;
|
| 142 |
+
height: 100%;
|
| 143 |
+
object-fit: cover;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
.gesture-guide {
|
| 147 |
+
position: fixed;
|
| 148 |
+
bottom: 20px;
|
| 149 |
+
left: 20px;
|
| 150 |
+
background-color: rgba(0,0,0,0.7);
|
| 151 |
+
color: white;
|
| 152 |
+
padding: 15px;
|
| 153 |
+
border-radius: 12px;
|
| 154 |
+
max-width: 300px;
|
| 155 |
+
z-index: 100;
|
| 156 |
+
backdrop-filter: blur(5px);
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
.gesture-guide h3 {
|
| 160 |
+
margin-bottom: 10px;
|
| 161 |
+
color: #4285f4;
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
.gesture-item {
|
| 165 |
+
display: flex;
|
| 166 |
+
align-items: center;
|
| 167 |
+
margin-bottom: 8px;
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
.gesture-icon {
|
| 171 |
+
width: 30px;
|
| 172 |
+
height: 30px;
|
| 173 |
+
background-color: #4285f4;
|
| 174 |
+
border-radius: 50%;
|
| 175 |
+
display: flex;
|
| 176 |
+
align-items: center;
|
| 177 |
+
justify-content: center;
|
| 178 |
+
margin-right: 10px;
|
| 179 |
+
color: white;
|
| 180 |
+
font-weight: bold;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
/* Action Feedback */
|
| 184 |
+
.action-feedback {
|
| 185 |
+
position: fixed;
|
| 186 |
+
top: 20px;
|
| 187 |
+
left: 50%;
|
| 188 |
+
transform: translateX(-50%);
|
| 189 |
+
padding: 15px 25px;
|
| 190 |
+
border-radius: 8px;
|
| 191 |
+
color: white;
|
| 192 |
+
font-weight: bold;
|
| 193 |
+
z-index: 200;
|
| 194 |
+
opacity: 0;
|
| 195 |
+
transition: opacity 0.3s;
|
| 196 |
+
min-width: 300px;
|
| 197 |
+
text-align: center;
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
.action-feedback.show {
|
| 201 |
+
opacity: 1;
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
.action-feedback.delete {
|
| 205 |
+
background-color: #ea4335;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
.action-feedback.archive {
|
| 209 |
+
background-color: #34a853;
|
| 210 |
}
|
| 211 |
|
| 212 |
+
.action-feedback.summary {
|
| 213 |
+
background-color: #4285f4;
|
|
|
|
| 214 |
}
|
| 215 |
|
| 216 |
+
/* Selected Email Highlight */
|
| 217 |
+
.selection-highlight {
|
| 218 |
+
position: absolute;
|
| 219 |
+
border: 3px solid #4285f4;
|
| 220 |
+
border-radius: 8px;
|
| 221 |
+
pointer-events: none;
|
| 222 |
+
z-index: 50;
|
| 223 |
+
animation: pulse 1.5s infinite;
|
| 224 |
}
|
| 225 |
|
| 226 |
+
@keyframes pulse {
|
| 227 |
+
0% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4); }
|
| 228 |
+
70% { box-shadow: 0 0 0 10px rgba(66, 133, 244, 0); }
|
| 229 |
+
100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0); }
|
|
|
|
|
|
|
| 230 |
}
|
| 231 |
|
| 232 |
+
/* Gesture Visualization */
|
| 233 |
+
.gesture-visualization {
|
| 234 |
+
position: fixed;
|
| 235 |
+
top: 0;
|
| 236 |
+
left: 0;
|
| 237 |
+
width: 100%;
|
| 238 |
+
height: 100%;
|
| 239 |
+
pointer-events: none;
|
| 240 |
+
z-index: 40;
|
| 241 |
}
|
| 242 |
+
|
| 243 |
+
.hand-landmarks {
|
| 244 |
+
position: absolute;
|
| 245 |
+
width: 100%;
|
| 246 |
+
height: 100%;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
.hand-landmarks .landmark {
|
| 250 |
+
position: absolute;
|
| 251 |
+
width: 8px;
|
| 252 |
+
height: 8px;
|
| 253 |
+
background-color: #4285f4;
|
| 254 |
+
border-radius: 50%;
|
| 255 |
+
transform: translate(-50%, -50%);
|
| 256 |
+
z-index: 100;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
.hand-landmarks .landmark.index-tip {
|
| 260 |
+
background-color: #34a853;
|
| 261 |
+
width: 12px;
|
| 262 |
+
height: 12px;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
.gesture-path {
|
| 266 |
+
position: absolute;
|
| 267 |
+
width: 100%;
|
| 268 |
+
height: 100%;
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
.gesture-path .point {
|
| 272 |
+
position: absolute;
|
| 273 |
+
width: 4px;
|
| 274 |
+
height: 4px;
|
| 275 |
+
background-color: #ff0000;
|
| 276 |
+
border-radius: 50%;
|
| 277 |
+
transform: translate(-50%, -50%);
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
/* Debug Panel */
|
| 281 |
+
.debug-panel {
|
| 282 |
+
position: fixed;
|
| 283 |
+
top: 20px;
|
| 284 |
+
right: 20px;
|
| 285 |
+
background-color: rgba(0,0,0,0.7);
|
| 286 |
+
color: #0f0;
|
| 287 |
+
padding: 15px;
|
| 288 |
+
border-radius: 12px;
|
| 289 |
+
max-width: 300px;
|
| 290 |
+
z-index: 100;
|
| 291 |
+
font-family: monospace;
|
| 292 |
+
font-size: 12px;
|
| 293 |
+
line-height: 1.4;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
.debug-panel h3 {
|
| 297 |
+
color: #4285f4;
|
| 298 |
+
margin-bottom: 10px;
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
.debug-item {
|
| 302 |
+
margin-bottom: 5px;
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
.debug-label {
|
| 306 |
+
display: inline-block;
|
| 307 |
+
width: 120px;
|
| 308 |
+
color: #aaa;
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
.debug-value {
|
| 312 |
+
color: #fff;
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
/* Status Indicator */
|
| 316 |
+
.status-indicator {
|
| 317 |
+
position: fixed;
|
| 318 |
+
bottom: 30px;
|
| 319 |
+
right: 30px;
|
| 320 |
+
width: 20px;
|
| 321 |
+
height: 20px;
|
| 322 |
+
border-radius: 50%;
|
| 323 |
+
z-index: 200;
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
.status-indicator.ready {
|
| 327 |
+
background-color: #34a853;
|
| 328 |
+
box-shadow: 0 0 10px #34a853;
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.status-indicator.processing {
|
| 332 |
+
background-color: #fbbc05;
|
| 333 |
+
animation: blink 1s infinite;
|
| 334 |
+
}
|
| 335 |
+
|
| 336 |
+
.status-indicator.error {
|
| 337 |
+
background-color: #ea4335;
|
| 338 |
+
animation: blink 0.5s infinite;
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
@keyframes blink {
|
| 342 |
+
50% { opacity: 0.5; }
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
/* For mobile responsiveness */
|
| 346 |
+
@media (max-width: 768px) {
|
| 347 |
+
.webcam-container {
|
| 348 |
+
width: 240px;
|
| 349 |
+
height: 180px;
|
| 350 |
+
bottom: 10px;
|
| 351 |
+
right: 10px;
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
.gesture-guide, .debug-panel {
|
| 355 |
+
max-width: 240px;
|
| 356 |
+
font-size: 0.9em;
|
| 357 |
+
padding: 10px;
|
| 358 |
+
}
|
| 359 |
+
}
|