أداة تحديد نوع الجسم - النسخة المعدلة ⚠️ إرشادات الاستخدام: استخدم شريط قياس ناعم قف بوضعية استرخاء خذ القياسات بالسنتميتر أدخل الأرقام بدون كسور عرض الكتفين (سم): محيط الصدر (سم): محيط الخصر (سم): محيط الأرداف (سم): اكتشف نوع جسمك .bt-calculator-ar { font-family: 'Arial Arabic', Tahoma, sans-serif; direction: rtl; max-width: 800px; margin: 2rem auto; padding: 25px; background: #fff9f9; border: 2px solid #ffdfdf; border-radius: 15px; } .bt-instructions { background: #fff3f3; padding: 20px; margin-bottom: 25px; border-right: 4px solid #ff6b6b; } .bt-input-group { margin-bottom: 20px; } .bt-input-group label { display: block; margin-bottom: 8px; color: #5c5c5c; } .bt-input-group input { width: 95% !important; padding: 12px !important; border: 2px solid #e0e0e0 !important; border-radius: 8px !important; font-size: 16px; } .bt-calculate-btn { background: #ff6b6b !important; width: 100%; padding: 15px !important; font-size: 18px !important; transition: 0.3s !important; } .bt-calculate-btn:hover { background: #ff5252 !important; } .bt-result { margin-top: 25px; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } document.addEventListener('DOMContentLoaded', function() { window.bodyTypeCalculator = function() { // إعادة تعيين الأنماط document.querySelectorAll('.bt-input-group input').forEach(input => { input.style.border = '2px solid #e0e0e0'; }); // التحقق من المدخلات const inputs = { shoulders: document.getElementById('bt_shoulders'), bust: document.getElementById('bt_bust'), waist: document.getElementById('bt_waist'), hips: document.getElementById('bt_hips') }; let isValid = true; for (const key in inputs) { if (!inputs[key].value || inputs[key].value 0.8) { bodyType = 'جسم تفاحة 🍎'; } else if (Math.abs(measurements.shoulders - measurements.hips) < 5 && ratios.waistHip > 0.8) { bodyType = 'جسم مستطيل 📦'; } else { bodyType = 'جسم مختلط أو غير نمطي 🔄'; } // عرض النتيجة document.getElementById('bt-result').innerHTML = ` ✅ النتيجة: نوع جسمك هو: ${bodyType} ملاحظة: هذه النتيجة تقريبية - دقة النتائج تعتمد على دقة القياسات `; }; });