/* Sizing System Styles */
#sizing-system-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sizing-step {
    transition: all 0.3s ease;
}

.sizing-step.hidden {
    display: none;
}

.sizing-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.sizing-btn.primary {
    background: #000;
    color: white;
}

.sizing-btn.primary:hover {
    background: #333;
}

.sizing-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.sizing-btn.secondary:hover {
    background: #e0e0e0;
}

/* Camera Styles */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#camera-feed {
    width: 100%;
    height: auto;
    display: block;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.pose-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 400px;
    border: 2px dashed rgba(255,255,255,0.7);
    border-radius: 100px;
}

.camera-controls {
    text-align: center;
    margin-top: 20px;
}

/* Results Styles */
.size-recommendations {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.size-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.size-item .category {
    font-weight: 600;
    color: #333;
}

.size-item .size {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.measurement-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

/* Profile Styles */
.user-sizes-profile {
    max-width: 600px;
    margin: 0 auto;
}

.last-updated {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.size-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.size-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.size-card h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommended-size {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.profile-actions {
    text-align: center;
    margin-top: 30px;
}

/* Loading and States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-message h3 {
    color: #22c55e;
    margin-bottom: 10px;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 6px;
}

/* Guidelines */
.guidelines {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.guidelines ul {
    list-style: none;
    padding: 0;
}

.guidelines li {
    padding: 8px 0;
    font-size: 16px;
}

.reference-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    #sizing-system-container {
        padding: 10px;
    }
    
    .camera-container {
        border-radius: 8px;
    }
    
    .size-cards {
        grid-template-columns: 1fr;
    }
    
    .sizing-btn {
        width: 100%;
        margin: 5px 0;
    }
}