File size: 2,695 Bytes
416e152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --background-color: #f1f5f9;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.left-panel, .right-panel {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.camera-section, .upload-section, .preview-section {
    margin-bottom: 30px;
}

video, #preview {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-upload {
    margin: 20px 0;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload label {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-upload label:hover {
    background-color: var(--secondary-color);
}

button {
    width: 100%;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

button:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.separator {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-top: 2px solid #e2e8f0;
}

.separator span {
    padding: 0 20px;
    color: #64748b;
    font-weight: 500;
}

.result-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
}