116 lines
1.8 KiB
CSS
116 lines
1.8 KiB
CSS
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background-color: #f4f7f6;
|
|
margin: 0;
|
|
padding: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.container {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
|
|
max-width: 900px;
|
|
width: 100%;
|
|
}
|
|
|
|
h1 {
|
|
color: #2c3e50;
|
|
text-align: center;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.subtitle {
|
|
text-align: center;
|
|
color: #7f8c8d;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.main-content {
|
|
display: flex;
|
|
gap: 30px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.camera-section, .info-section {
|
|
flex: 1;
|
|
min-width: 300px;
|
|
}
|
|
|
|
#webcam-container {
|
|
background: #000;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
height: 300px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.controls {
|
|
margin-top: 15px;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
button {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
#start-btn {
|
|
background: #27ae60;
|
|
color: white;
|
|
flex: 2;
|
|
}
|
|
|
|
#start-btn:hover { background: #219150; }
|
|
|
|
#stop-btn {
|
|
background: #e74c3c;
|
|
color: white;
|
|
flex: 1;
|
|
}
|
|
|
|
#stop-btn:disabled { background: #bdc3c7; cursor: not-allowed; }
|
|
|
|
#label-container {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
color: #2980b9;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#status {
|
|
padding: 10px;
|
|
background: #ebf5fb;
|
|
border-radius: 5px;
|
|
color: #2c3e50;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.history-section h3 {
|
|
border-bottom: 2px solid #ecf0f1;
|
|
padding-bottom: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
#history-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#history-list li {
|
|
padding: 8px;
|
|
border-bottom: 1px solid #f1f1f1;
|
|
font-size: 0.9rem;
|
|
}
|