/* Basic layout: video and canvas stacked, Ollama response below */
.container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}
video, canvas {
    width: 100%;
    max-width: 640px;
    height: auto;
    background: transparent;
    display: block;
    margin: 10px auto;
    position: relative;
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
    /* Default: no border */
    border: none;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}
.ollama-response {
    margin-top: 20px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    min-height: 40px;
    font-family: monospace;
    white-space: pre-wrap;
}
.controls {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
button {
    margin: 0;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
    min-width: 80px;
    box-sizing: border-box;
}
/* Pose feedback classes */
.pose-match {
    border: 4px solid #4CAF50 !important;
    animation: pulse 2s infinite;
}
.pose-mismatch {
    border: 4px solid #F44336 !important;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}