* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

h2 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.2em;
}

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

.webcam-container,
.image-container {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#webcam-wrapper {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    background: #000;
    border-radius: 4px;
}

#webcam-wrapper canvas {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 400px;
    border-radius: 4px;
}

#startButton {
    width: 100%;
    padding: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

#startButton:hover:not(:disabled) {
    background: #555;
}

#startButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#pose-image-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 4px;
    border: 1px solid #eee;
    margin: 0 auto;
}

#pose-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

#no-image-text {
    color: #999;
    font-size: 1em;
}

.result-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#label-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.prediction-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #eee;
}

.label-name {
    font-weight: bold;
    min-width: 120px;
    color: #333;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #333;
    transition: width 0.3s ease;
}

.percentage {
    min-width: 50px;
    text-align: right;
    font-weight: bold;
    color: #666;
}

.pose-name {
    padding: 15px;
    background: #333;
    color: white;
    border-radius: 4px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.1em;
    }

    .container {
        padding: 15px;
    }

    .label-name {
        min-width: 80px;
        font-size: 0.9em;
    }

    .percentage {
        min-width: 45px;
        font-size: 0.9em;
    }

    .pose-name {
        font-size: 1.1em;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 10px;
        border-radius: 4px;
    }

    h1 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .webcam-container,
    .image-container,
    .result-section {
        padding: 15px;
    }

    .prediction-bar {
        padding: 6px;
        gap: 8px;
    }

    .label-name {
        min-width: 70px;
        font-size: 0.85em;
    }

    .percentage {
        min-width: 40px;
        font-size: 0.85em;
    }

    .progress-bar {
        height: 18px;
    }

    .pose-name {
        font-size: 1em;
        padding: 10px;
    }

    #startButton {
        padding: 10px;
        font-size: 14px;
    }
}
