body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min-content;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1 { margin-bottom: 5px; color: #1a73e8; }
p { margin-top: 0; color: #666; }

#btn-start {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

#btn-start:hover { background-color: #1557b0; }

#webcam-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    background: #000;
    width: 320px;
    height: 320px;
}

#webcam-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

#status-box {
    font-size: 24px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background-color: #ccc;
    text-align: center;
}

.status-ok { background-color: #34a853 !important; color: white; }
.status-alerta { background-color: #ea4335 !important; color: white; animation: piscar 0.5s infinite alternate; }
.status-fundo { background-color: #757575 !important; color: white; }
.status-erro { background-color: #b3261e !important; color: white; font-size: 16px !important; text-transform: none !important; }

@keyframes piscar {
    from { opacity: 1; } to { opacity: 0.7; }
}

#label-container { font-size: 14px; color: #555; text-align: left; width: 320px; }
.label-bar { display: flex; justify-content: space-between; margin: 4px 0; }
