body {
    margin: 0;
    overflow: hidden;
    font-family: sans-serif;
    color: white;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#controls-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    z-index: 10; 
}

h3, h4 {
    margin-top: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.control-group button {
    margin: 4px;
    padding: 8px 12px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.control-group button:hover {
    background-color: #666;
}

/* Webcam Container Styles */
#webcam-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 240px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 20;
    background: #000;
    border: 2px solid #444;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.input_video {
    display: block; /* TEMP: Show the raw video for debugging */
    width: 100%;
    height: 100%;
    transform: scaleX(-1); /* Mirror effect */
}

.output_canvas {
    position: absolute; /* Place canvas over video for drawing */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1); /* Mirror effect */
}

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none;
}

.status-badge.active {
    background: rgba(0, 255, 0, 0.6);
    content: "🖐️ Active";
}

.gesture-hint p {
    font-size: 0.9em;
    margin: 5px 0;
    color: #ccc;
}